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

View File

@ -202,7 +202,7 @@
"info": true, "info": true,
"scrollX": true, "scrollX": true,
"autoWidth": 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 "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 "dom": '<"top"lBf>rt<"bottom"ip><"clear">', // Custom layout
"buttons": [ "buttons": [

View File

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

View File

@ -185,7 +185,7 @@
height: 5px; height: 5px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background-color: #797a7c; background-color: #f5f5f5;
} }
</style> </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 --> <!-- Requisition Starts Ends -->
<?php if ($DEPCode != HR) { ?> <?php if ($DEPCode != HR) { ?>
<?php if ($DEPCode != SECURITY) { ?> <?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 --> <!--STOCK -->
<?php if (empty($DepAccesslist)) { ?> <?php if (empty($DepAccesslist)) { ?>
<?php if ($DEPCode == PRODUCTION) { ?> <?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--> <!-- INPROCESS MODULE-->
<?php if (empty($DepAccesslist)) { ?> <?php if (empty($DepAccesslist)) { ?>
<?php if ($DEPCode == QUALITY) { ?> <?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 --> <!-- Master Menus starts -->
<?php if (empty($DepAccesslist)) { ?> <?php if (empty($DepAccesslist)) { ?>
<?php if ($DEPCode == FINANCE || <?php if ($DEPCode == FINANCE ||