latest commit 17-05-2025
This commit is contained in:
parent
748f9ceb32
commit
a6920bf92f
@ -194,7 +194,7 @@
|
|||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<a data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details" class="auditor-restricted-btn"
|
<a class="edit-btn" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details" class="auditor-restricted-btn"
|
||||||
href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
||||||
<i class="fa fa-pencil-alt" data-toggle="tooltip"> </i>
|
<i class="fa fa-pencil-alt" data-toggle="tooltip"> </i>
|
||||||
|
|
||||||
@ -204,7 +204,7 @@
|
|||||||
<?php
|
<?php
|
||||||
} else if ($statusCode == PO_AMENDED ) { ?>
|
} else if ($statusCode == PO_AMENDED ) { ?>
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
<a class="edit-btn" data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
||||||
<i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Amendment Purchase Order details"></i>
|
<i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Amendment Purchase Order details"></i>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
@ -214,15 +214,16 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType
|
<a class="edit-btn" data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>">
|
||||||
. '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-eye" data-toggle="tooltip"
|
<i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i>
|
||||||
title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i>
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>"
|
<a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>" target="new">
|
||||||
target="new"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?>
|
<i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i>
|
||||||
- Click here to Print the Purchase Order details"></i>
|
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -314,3 +315,31 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#po_list').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#po_list').on('click', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<a href="<?php echo base_url() . 'emppaydate/downloadEmpLoanData/' . $record->Pay_Data_ID; ?>"><i class="fas fa-download"></i></a>
|
<a href="<?php echo base_url() . 'emppaydate/downloadEmpLoanData/' . $record->Pay_Data_ID; ?>"><i class="fas fa-download"></i></a>
|
||||||
|
|
||||||
<a href="<?php echo base_url() . 'emppaydate/editOldemppay/' . $record->Pay_Data_ID; ?>"><i class="fas fa-pencil-alt"></i></a>
|
<a class="edit-btn" href="<?php echo base_url() . 'emppaydate/editOldemppay/' . $record->Pay_Data_ID; ?>"><i class="fas fa-pencil-alt"></i></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php }
|
<?php }
|
||||||
@ -85,3 +85,31 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#datatable').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#datatable').on('click', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|||||||
@ -186,7 +186,7 @@ if (empty($Status)) {
|
|||||||
|
|
||||||
|
|
||||||
<select
|
<select
|
||||||
class="form-control"
|
class="form-control edit-btn"
|
||||||
name="selectId" id="selectId"
|
name="selectId" id="selectId"
|
||||||
onchange="showvalue('<?php echo $record->PONO ?>','<?php echo $index; ?>',this.options[this.selectedIndex].value,'<?php echo $record->Remarks ?>');"
|
onchange="showvalue('<?php echo $record->PONO ?>','<?php echo $index; ?>',this.options[this.selectedIndex].value,'<?php echo $record->Remarks ?>');"
|
||||||
style="width: 193px;">
|
style="width: 193px;">
|
||||||
@ -526,3 +526,31 @@ if (empty($Status)) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#po_release').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#po_release').on('change', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@ -264,7 +264,7 @@
|
|||||||
var table = $('#cc').DataTable({
|
var table = $('#cc').DataTable({
|
||||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
buttons: [
|
buttons: [
|
||||||
'copy', 'csv' // Export buttons
|
'excel' // Export buttons
|
||||||
],
|
],
|
||||||
pageLength: 10, // Default rows per page
|
pageLength: 10, // Default rows per page
|
||||||
lengthMenu: [
|
lengthMenu: [
|
||||||
|
|||||||
@ -173,7 +173,7 @@ if (!empty($Status)) {
|
|||||||
|
|
||||||
<td align="left" style="padding-left: 3%;"><?php echo strtoupper($record->StatusName); ?></td>
|
<td align="left" style="padding-left: 3%;"><?php echo strtoupper($record->StatusName); ?></td>
|
||||||
|
|
||||||
<td> <a data-toggle="tooltip"
|
<td> <a class="edit-btn" data-toggle="tooltip"
|
||||||
href="<?php echo base_url() . 'EditRequisitionForm?ReqNo=' . $record->ReqNo . '&ReqType=' . $record->ReqType; ?>"><i
|
href="<?php echo base_url() . 'EditRequisitionForm?ReqNo=' . $record->ReqNo . '&ReqType=' . $record->ReqType; ?>"><i
|
||||||
class="fas fa-pencil-alt" data-toggle="tooltip"
|
class="fas fa-pencil-alt" data-toggle="tooltip"
|
||||||
title="<?php echo $record->ReqNo; ?> - Click here to view Requisition details"></i> </a>
|
title="<?php echo $record->ReqNo; ?> - Click here to view Requisition details"></i> </a>
|
||||||
@ -315,3 +315,32 @@ if (!empty($Status)) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#requisition_listing').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#requisition_listing').on('click', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|||||||
@ -121,8 +121,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<a class="btn btn-primary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=resin">Resin</a>
|
<a class="btn btn-primary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=resin">Resin</a>
|
||||||
<a class="btn btn-secondary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=bag">Bag</a>
|
<a class="btn btn-secondary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=bag">Bag</a>
|
||||||
<a class="btn btn-danger btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=diesel">Diesel</a>
|
|
||||||
<a class="btn btn-success btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=gas">Gas</a>
|
<a class="btn btn-success btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=gas">Gas</a>
|
||||||
|
<a class="btn btn-danger btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=diesel">Diesel</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user