This commit is contained in:
CIEF Dev Team
2018-03-20 08:19:11 +00:00
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
RewriteEngine On
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTPS} off
+1 -1
View File
@@ -555,7 +555,7 @@ function getModalStaff($id) {
<select id='position_edit' name='position_edit' class='form-control'>
<option " . ($value["position"] == 1 ? "selected" : "") . " value='1'>Admin</option>
<option " . ($value["position"] == 2 ? "selected" : "") . " value='2'>Branch Admin</option>
<option " . ($value["position"] == 3 ? "selected" : "") . " value='2'>Staff</option>
<option " . ($value["position"] == 3 ? "selected" : "") . " value='3'>Staff</option>
</select>
</div>
</div>
+1 -1
View File
@@ -130,7 +130,7 @@
<center>Name</center>
</th>
<th>
<center>Role</center>
<center>Position</center>
</th>
<?php if($_SESSION['group_id'] == 2){ ?>
<th>
+2 -1
View File
@@ -786,8 +786,9 @@ function the_company() {
$db->bind("id", $id);
$db->bind("position", $position);
$db->bind("branch", $branch);
echo $id;
// EXECUTE
$row = $db->query("UPDATE user_company SET position = :position, branch_id = :branch WHERE id = :id");
$row = $db->query("UPDATE user_company SET branch_id = :branch, position = :position WHERE id = :id");
if ($row) {
action_log($_SESSION['user_id'], "Edit Staff : ID - " . $id , "SUCCESS");
return new Response('SUCCESS', 200);