Update view_log.php
This commit is contained in:
@@ -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>';
|
||||||
|
|||||||
Reference in New Issue
Block a user