mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
-
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$no_refresh = true;
|
$no_refresh = true;
|
||||||
|
|
||||||
$param = array();
|
$param = array();
|
||||||
|
|
||||||
if ($vars['action'] == 'expunge' && $_SESSION['userlevel'] >= '10') {
|
if ($vars['action'] == 'expunge' && $_SESSION['userlevel'] >= '10') {
|
||||||
dbQuery('TRUNCATE TABLE `syslog`');
|
dbQuery('TRUNCATE TABLE `syslog`');
|
||||||
print_message('syslog truncated');
|
print_message('syslog truncated');
|
||||||
}
|
}
|
||||||
|
|
||||||
$pagetitle[] = 'Syslog';
|
$pagetitle[] = 'Syslog';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -22,6 +26,7 @@ $pagetitle[] = 'Syslog';
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
var grid = $("#syslog").bootgrid({
|
var grid = $("#syslog").bootgrid({
|
||||||
ajax: true,
|
ajax: true,
|
||||||
templates: {
|
templates: {
|
||||||
@@ -39,6 +44,7 @@ var grid = $("#syslog").bootgrid({
|
|||||||
if ($device_id == $vars['device']) {
|
if ($device_id == $vars['device']) {
|
||||||
echo ' selected';
|
echo ' selected';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '>'.$hostname.'</option>"+';
|
echo '>'.$hostname.'</option>"+';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -54,6 +60,7 @@ var grid = $("#syslog").bootgrid({
|
|||||||
if ($data['program'] == $vars['program']) {
|
if ($data['program'] == $vars['program']) {
|
||||||
echo ' selected';
|
echo ' selected';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '>'.$data['program'].'</option>"+';
|
echo '>'.$data['program'].'</option>"+';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -68,6 +75,7 @@ var grid = $("#syslog").bootgrid({
|
|||||||
"<button type=\"submit\" class=\"btn btn-default input-sm\">Filter</button>"+
|
"<button type=\"submit\" class=\"btn btn-default input-sm\">Filter</button>"+
|
||||||
"</form></span></div>"+
|
"</form></span></div>"+
|
||||||
"<div class=\"col-sm-3 actionBar\"><p class=\"{{css.actions}}\"></p></div></div></div>"
|
"<div class=\"col-sm-3 actionBar\"><p class=\"{{css.actions}}\"></p></div></div></div>"
|
||||||
|
|
||||||
},
|
},
|
||||||
post: function ()
|
post: function ()
|
||||||
{
|
{
|
||||||
@@ -81,6 +89,7 @@ var grid = $("#syslog").bootgrid({
|
|||||||
},
|
},
|
||||||
url: "ajax_table.php"
|
url: "ajax_table.php"
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#dtpickerfrom").datetimepicker();
|
$("#dtpickerfrom").datetimepicker();
|
||||||
$("#dtpickerfrom").on("dp.change", function (e) {
|
$("#dtpickerfrom").on("dp.change", function (e) {
|
||||||
|
Reference in New Issue
Block a user