mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/ARCHIVED-IZYIM.git
synced 2026-08-19 04:14:01 +00:00
Merge branch 'master' of https://gitlab.com/CIEFWorldwideSdnBhd/IZYIM
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
RewriteEngine On
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{HTTPS} off
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
<center>Name</center>
|
||||
</th>
|
||||
<th>
|
||||
<center>Role</center>
|
||||
<center>Position</center>
|
||||
</th>
|
||||
<?php if($_SESSION['group_id'] == 2){ ?>
|
||||
<th>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user