Update view_log.php

This commit is contained in:
jakani24
2024-04-26 18:22:59 +02:00
parent 82f9d5c78a
commit b68068cb5c

View File

@@ -102,8 +102,6 @@ $conn->close();
<div class="card-header"> <div class="card-header">
<h4>View log</h4> <h4>View log</h4>
</div> </div>
<!-- add pie chart with error/virus etc -->
<div id="piechart_3d" style="width: 900px; height: 500px;"></div>
<div class="card-body" style="overflow-x:auto"> <div class="card-body" style="overflow-x:auto">
<!-- table with all log entrys => delete button --> <!-- table with all log entrys => delete button -->
<?php <?php
@@ -188,7 +186,9 @@ $conn->close();
$stmt->bind_param("ssssii", $loglevel, $logtext, $machine_id, $time, $offset, $page_size); $stmt->bind_param("ssssii", $loglevel, $logtext, $machine_id, $time, $offset, $page_size);
$stmt->execute(); $stmt->execute();
$result = $stmt->get_result(); $result = $stmt->get_result();
if($current_page==1){
echo("<div id='piechart_3d' style='width: 900px; height: 500px;'></div>");
}
// Display log entries // Display log entries
echo '<table class="table" style="overflow-x:auto">'; echo '<table class="table" style="overflow-x:auto">';
echo '<thead>'; echo '<thead>';