Skip to content

Commit

Permalink
WIP support to multilanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
FraGoTe committed Feb 22, 2016
1 parent a64e4a8 commit 35c8f72
Show file tree
Hide file tree
Showing 460 changed files with 27,888 additions and 170 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/nbproject/private/
/includes/config.php
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions .idea/wis.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

357 changes: 357 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions add_group.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@
<?php include_once('layouts/header.php'); ?>
<div class="login-page">
<div class="text-center">
<h3>Add new user Group</h3>
<h3><?php echo text()->translate('Add new user Group'); ?></h3>
</div>
<?php echo display_msg($msg); ?>
<form method="post" action="add_group.php" class="clearfix">
<div class="form-group">
<label for="name" class="control-label">Group Name</label>
<label for="name" class="control-label"><?php echo text()->translate('Group Name'); ?></label>
<input type="name" class="form-control" name="group-name">
</div>
<div class="form-group">
<label for="level" class="control-label">Group Level</label>
<label for="level" class="control-label"><?php echo text()->translate('Group Level'); ?></label>
<input type="number" class="form-control" name="group-level">
</div>
<div class="form-group">
<label for="status">Status</label>
<label for="status">><?php echo text()->translate('Status'); ?></label>
<select class="form-control" name="status">
<option value="1">Active</option>
<option value="0">Deactive</option>
<option value="1"><?php echo text()->translate('Active'); ?></option>
<option value="0"><?php echo text()->translate('Deactive'); ?></option>
</select>
</div>
<div class="form-group clearfix">
<button type="submit" name="add" class="btn btn-info">Update</button>
<button type="submit" name="add" class="btn btn-info"><?php echo text()->translate('Update'); ?></button>
</div>
</form>
</div>
Expand Down
8 changes: 4 additions & 4 deletions add_product.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>Add New Product</span>
<span><?php echo text()->translate('Add New Product'); ?></span>
</strong>
</div>
<div class="panel-body">
Expand All @@ -74,7 +74,7 @@
<div class="row">
<div class="col-md-6">
<select class="form-control" name="product-categorie">
<option value="">Select Product Category</option>
<option value=""><?php echo text()->translate('Select Product Category'); ?></option>
<?php foreach ($all_categories as $cat): ?>
<option value="<?php echo (int)$cat['id'] ?>">
<?php echo $cat['name'] ?></option>
Expand All @@ -83,7 +83,7 @@
</div>
<div class="col-md-6">
<select class="form-control" name="product-photo">
<option value="">Select Product Photo</option>
<option value=""><?php echo text()->translate('Select Product Photo'); ?></option>
<?php foreach ($all_photo as $photo): ?>
<option value="<?php echo (int)$photo['id'] ?>">
<?php echo $photo['file_name'] ?></option>
Expand Down Expand Up @@ -123,7 +123,7 @@
</div>
</div>
</div>
<button type="submit" name="add_product" class="btn btn-danger">Add product</button>
<button type="submit" name="add_product" class="btn btn-danger"><?php echo text()->translate('Add product'); ?></button>
</form>
</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions add_sale.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="form-group">
<div class="input-group">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary">Find It</button>
<button type="submit" class="btn btn-primary"><?php echo text()->translate('Find It'); ?></button>
</span>
<input type="text" id="sug_input" class="form-control" name="title" placeholder="Search for product name">
</div>
Expand All @@ -61,19 +61,19 @@
<div class="panel-heading clearfix">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>Sale Eidt</span>
<span><?php echo text()->translate('Sale Edit'); ?></span>
</strong>
</div>
<div class="panel-body">
<form method="post" action="add_sale.php">
<table class="table table-bordered">
<thead>
<th> Item </th>
<th> Price </th>
<th> Qty </th>
<th> Total </th>
<th> Date</th>
<th> Action</th>
<th> <?php echo text()->translate('Item'); ?> </th>
<th> <?php echo text()->translate('Price'); ?> </th>
<th> <?php echo text()->translate('Qty'); ?> </th>
<th> <?php echo text()->translate('Total'); ?> </th>
<th> <?php echo text()->translate('Date'); ?></th>
<th> <?php echo text()->translate('Action'); ?></th>
</thead>
<tbody id="product_info"> </tbody>
</table>
Expand Down
12 changes: 6 additions & 6 deletions add_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,34 @@
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>Add New User</span>
<span><?php echo text()->translate('Add New User'); ?></span>
</strong>
</div>
<div class="panel-body">
<div class="col-md-6">
<form method="post" action="add_user.php">
<div class="form-group">
<label for="name">Name</label>
<label for="name"><?php echo text()->translate('Name'); ?></label>
<input type="text" class="form-control" name="full-name" placeholder="Full Name">
</div>
<div class="form-group">
<label for="username">Username</label>
<label for="username"><?php echo text()->translate('Username'); ?></label>
<input type="text" class="form-control" name="username" placeholder="Username">
</div>
<div class="form-group">
<label for="password">Password</label>
<label for="password"><?php echo text()->translate('Password'); ?></label>
<input type="password" class="form-control" name ="password" placeholder="Password">
</div>
<div class="form-group">
<label for="level">User Role</label>
<label for="level"><?php echo text()->translate('User Role'); ?></label>
<select class="form-control" name="level">
<?php foreach ($groups as $group ):?>
<option value="<?php echo $group['group_level'];?>"><?php echo ucwords($group['group_name']);?></option>
<?php endforeach;?>
</select>
</div>
<div class="form-group clearfix">
<button type="submit" name="add_user" class="btn btn-primary">Add User</button>
<button type="submit" name="add_user" class="btn btn-primary"><?php echo text()->translate('Add User'); ?></button>
</div>
</form>
</div>
Expand Down
39 changes: 20 additions & 19 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_user['total']; ?> </h2>
<p class="text-muted">Users</p>
<p class="text-muted"><?php echo text()->translate('Users'); ?></p>
</div>
</div>
</div>
Expand All @@ -39,7 +39,7 @@
</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_categorie['total']; ?> </h2>
<p class="text-muted">Categories</p>
<p class="text-muted"><?php echo text()->translate('Categories'); ?></p>
</div>
</div>
</div>
Expand All @@ -50,7 +50,7 @@
</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_product['total']; ?> </h2>
<p class="text-muted">Products</p>
<p class="text-muted"><?php echo text()->translate('Products'); ?></p>
</div>
</div>
</div>
Expand All @@ -61,20 +61,21 @@
</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_sale['total']; ?></h2>
<p class="text-muted">Sales</p>
<p class="text-muted"><?php echo text()->translate('Sales'); ?></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="jumbotron text-center">
<h1>Thank You! for your support and love.</h1>
<p> <strong>OSWA-INV v2</strong> way more better then <strong> v1 </strong>.
</br>If you have a question regarding the usage of this applications, please ask on <a href="https://www.facebook.com/oswapp" title="Facebook" target="_blank">Facebook</a> OSWA Fan page.</p>

</div>
<div class="jumbotron text-center">
<h1>Thank You! for your support and love.</h1>
<p> <strong>OSWA-INV v2</strong> way more better then <strong> v1 </strong>.
</br>If you have a question regarding the usage of this applications, please ask on
<a href="https://www.facebook.com/oswapp" title="Facebook" target="_blank">Facebook</a> OSWA Fan page.
</p>
</div>
</div>
</div>
</div>
Expand All @@ -84,16 +85,16 @@
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>Highest Saleing Products</span>
<span><?php echo text()->translate('Highest Saleing Products'); ?></span>
</strong>
</div>
<div class="panel-body">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Title</th>
<th>Total Sold</th>
<th>Total Quantity</th>
<th><?php echo text()->translate('Title'); ?></th>
<th><?php echo text()->translate('Total Sold'); ?></th>
<th><?php echo text()->translate('Total Quantity'); ?></th>
<tr>
</thead>
<tbody>
Expand All @@ -114,17 +115,17 @@
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>LATEST SALES</span>
<span><?php echo text()->translate('LATEST SALES'); ?></span>
</strong>
</div>
<div class="panel-body">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th class="text-center" style="width: 50px;">#</th>
<th>Product Name</th>
<th>Date</th>
<th>Total Sale</th>
<th><?php echo text()->translate('Product Name'); ?></th>
<th><?php echo text()->translate('Date'); ?></th>
<th><?php echo text()->translate('Total Sale'); ?></th>
</tr>
</thead>
<tbody>
Expand All @@ -151,7 +152,7 @@
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>Recently Added Products</span>
<span><?php echo text()->translate('Recently Added Products'); ?></span>
</strong>
</div>
<div class="panel-body">
Expand Down
3 changes: 2 additions & 1 deletion ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@

}
} else {
$html ='<tr><td>product name not resgister in database</td></tr>';
$errorTxt = text()->translate('product name not resgister in database');
$html ='<tr><td>' . $errorTxt . '</td></tr>';
}

echo json_encode($html);
Expand Down
10 changes: 5 additions & 5 deletions categorie.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>Add New Categorie</span>
<span><?php echo text()->translate('Add New Categorie'); ?></span>
</strong>
</div>
<div class="panel-body">
<form method="post" action="categorie.php">
<div class="form-group">
<input type="text" class="form-control" name="categorie-name" placeholder="Categorie Name">
</div>
<button type="submit" name="add_cat" class="btn btn-primary">Add categorie</button>
<button type="submit" name="add_cat" class="btn btn-primary"><?php echo text()->translate('Add categorie'); ?></button>
</form>
</div>
</div>
Expand All @@ -58,16 +58,16 @@
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>All Categories</span>
<span><?php echo text()->translate('All Categories'); ?></span>
</strong>
</div>
<div class="panel-body">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th class="text-center" style="width: 50px;">#</th>
<th>Categories</th>
<th class="text-center" style="width: 100px;">Actions</th>
<th><?php echo text()->translate('Categories'); ?></th>
<th class="text-center" style="width: 100px;"><?php echo text()->translate('Actions'); ?></th>
</tr>
</thead>
<tbody>
Expand Down
Loading

0 comments on commit 35c8f72

Please sign in to comment.