Security login changes : GWM

This commit is contained in:
bitbucket 2024-08-01 11:03:59 +05:30
parent 83e34bfba4
commit 84e31dbe18
4 changed files with 18 additions and 9 deletions

View File

@ -81,6 +81,7 @@ class Login extends BaseController
$result = $this->login_model->loginMe($email, $password);
if (!empty($result)) {
foreach ($result as $res) {
log_message('error', '#####loggin_name : ' . $res->FirstName);
$sessionData = [
@ -106,7 +107,7 @@ class Login extends BaseController
$DEPCode = $res->DEPCode;
if ($DEPCode == SECURITY) {
return redirect()->to(site_url('/Addigr'));
return redirect()->to(site_url('/dashboard'));
} else {
return redirect()->to(site_url('/dashboard'));
}

View File

@ -202,7 +202,7 @@
"info": true,
"scrollX": true,
"autoWidth": true,
"pageLength": 25,
"pageLength": 10,
"order": [[0, "desc"]], // Assuming the "Created Date" is the first column and you want to order by it in descending order
"dom": '<"top"lBf>rt<"bottom"ip><"clear">', // Custom layout
"buttons": [

View File

@ -33,6 +33,12 @@
flex-basis: 50%;
float: inline-end;
}
#REQLIST_paginate{
flex-basis: 50%;
float: inline-end;
}
</style>
<div class="content-wrapper">
<?php
@ -94,7 +100,7 @@
<div class="col-md-12">
<div class="col-md-3 col-md-offset-9" >
<p>
<div align="right" style="padding-right:10px">
<div align="right" style="padding-right:0px">
<!--<a href="<?php echo base_url(); ?>purchaseorderform/purchaseorder">
<button type="button" class="btn btn-success">Create PO</button></a> -->
<!--<input type="submit" class="btn btn-success" onclick="return Validate();" value="Create Purchase Order"> -->
@ -491,7 +497,9 @@ $(function () {
"aaSorting": [[ 2, "desc" ]],
"ordering": true,
"info": true,
"autoWidth": true
"autoWidth": true,
"pageLength": 10,
"lengthMenu": [10, 25, 50, 100]
});
});

View File

@ -185,7 +185,7 @@
height: 5px;
}
::-webkit-scrollbar-track {
background-color: #797a7c;
background-color: #f5f5f5;
}
</style>
@ -340,7 +340,7 @@
<p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">PURCHASE</p>
<!-- <p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">PURCHASE</p> -->
<!-- Requisition Starts Ends -->
<?php if ($DEPCode != HR) { ?>
<?php if ($DEPCode != SECURITY) { ?>
@ -781,7 +781,7 @@
<p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">INVENTORY</p>
<!-- <p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">INVENTORY</p> -->
<!--STOCK -->
<?php if (empty($DepAccesslist)) { ?>
<?php if ($DEPCode == PRODUCTION) { ?>
@ -910,7 +910,7 @@
<p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">PRODUCTION</p>
<!-- <p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">PRODUCTION</p> -->
<!-- INPROCESS MODULE-->
<?php if (empty($DepAccesslist)) { ?>
<?php if ($DEPCode == QUALITY) { ?>
@ -1163,7 +1163,7 @@
<p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">OTHERS</p>
<!-- <p style="color: white;padding-left: 10px;font-size: 13px;padding-top: 1px;margin-bottom: unset;">OTHERS</p> -->
<!-- Master Menus starts -->
<?php if (empty($DepAccesslist)) { ?>
<?php if ($DEPCode == FINANCE ||