Mass_update - print log

This commit is contained in:
“VeLiTi”
2024-03-29 07:38:18 +01:00
parent 712fdfca26
commit bf09deef7f
2 changed files with 15 additions and 1 deletions

View File

@@ -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();
}

View File

@@ -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 ?? '' ).'