CIM77 - Service reports alleen laatste 5

This commit is contained in:
“VeLiTi”
2024-05-16 15:56:20 +02:00
parent 7612073a5f
commit e4cc9f4ef3
6 changed files with 50 additions and 11 deletions

View File

@@ -900,16 +900,22 @@ function serviceEvents ($messages){
<td><a href="index.php?page=render_service_report&historyID='.$message->historyID.'" class="btn_link">PDF</a></td>
</tr>';
}
$view_data .= '</tbody>';
}
//CHECK IF OUTPUT IS MORE THAN X (config setting)
if (count($messages) == $page_rows_equipment_servicereporst){
$view_data .= '<tr>
<td><a href="index.php?page=servicereports&search='.$message->h_equipmentid.'" class="btn_link">'.$general_actions_more.'</a></td>
</tr>';
}
if ($view_data == ''){
$view_data = '<tr>
<td colspan="4" style="text-align:center;">'.$service_report_no_text.'</td>
</tr>';
}
$view_data .= '</tbody>';
$view_footer = '</table>';
$view = $view_header.$view_data.$view_footer;