Mass_update - print log
This commit is contained in:
@@ -1114,3 +1114,16 @@ function sortTextVal(a, b) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------
|
||||||
|
// Print DIV
|
||||||
|
//------------------------------------------
|
||||||
|
function printDiv(div) {
|
||||||
|
var divContents = document.getElementById(div).innerHTML;
|
||||||
|
var a = window.open('', '', 'height=500, width=500');
|
||||||
|
a.document.write('<html>');
|
||||||
|
a.document.write('<body > ');
|
||||||
|
a.document.write(divContents);
|
||||||
|
a.document.write('</body></html>');
|
||||||
|
a.document.close();
|
||||||
|
a.print();
|
||||||
|
}
|
||||||
@@ -40,7 +40,7 @@ if ($update_allowed === 1){
|
|||||||
$total_rowID = 0;
|
$total_rowID = 0;
|
||||||
$total_not_found = 0;
|
$total_not_found = 0;
|
||||||
|
|
||||||
$output_excel_display .= '<table class="sortable">
|
$output_excel_display .= '<table>
|
||||||
<thead style="text-align: left;">
|
<thead style="text-align: left;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>'.$equipment_label2.'</th>
|
<th>'.$equipment_label2.'</th>
|
||||||
@@ -241,6 +241,7 @@ if ($update_allowed === 1){
|
|||||||
$view .= '<div class="content-block">
|
$view .= '<div class="content-block">
|
||||||
<div class="block-header">
|
<div class="block-header">
|
||||||
<i class="fa-solid fa-bars fa-sm"></i>'.$tab3.' '.$total_summary.'
|
<i class="fa-solid fa-bars fa-sm"></i>'.$tab3.' '.$total_summary.'
|
||||||
|
<button class="btn" style="float: inline-end;" onclick="printDiv(\'excel_table\')>Print</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="table order-table" id="excel_table">
|
<div class="table order-table" id="excel_table">
|
||||||
'.($order_header ?? '' ).'
|
'.($order_header ?? '' ).'
|
||||||
|
|||||||
Reference in New Issue
Block a user