Skip to content
Snippets Groups Projects
Commit 3fc0b6e9 authored by Peter Rotich's avatar Peter Rotich
Browse files

Rename syslogs.php to logs.php

parent fc82978a
Branches
Tags
No related merge requests found
...@@ -181,7 +181,7 @@ class AdminNav extends StaffNav{ ...@@ -181,7 +181,7 @@ class AdminNav extends StaffNav{
$subnav=array(); $subnav=array();
switch(strtolower($k)){ switch(strtolower($k)){
case 'dashboard': case 'dashboard':
$subnav[]=array('desc'=>'System Logs','href'=>'syslogs.php','iconclass'=>'logs'); $subnav[]=array('desc'=>'System Logs','href'=>'logs.php','iconclass'=>'logs');
break; break;
case 'settings': case 'settings':
$subnav[]=array('desc'=>'Settings & Preferences','href'=>'settings.php','iconclass'=>'preferences'); $subnav[]=array('desc'=>'Settings & Preferences','href'=>'settings.php','iconclass'=>'preferences');
......
...@@ -73,7 +73,7 @@ $total=db_count("SELECT count(*) $qfrom $qwhere"); ...@@ -73,7 +73,7 @@ $total=db_count("SELECT count(*) $qfrom $qwhere");
$page = ($_GET['p'] && is_numeric($_GET['p']))?$_GET['p']:1; $page = ($_GET['p'] && is_numeric($_GET['p']))?$_GET['p']:1;
//pagenate //pagenate
$pageNav=new Pagenate($total, $page, PAGE_LIMIT); $pageNav=new Pagenate($total, $page, PAGE_LIMIT);
$pageNav->setURL('syslogs.php',$qstr); $pageNav->setURL('logs.php',$qstr);
$qstr.='&order='.($order=='DESC'?'ASC':'DESC'); $qstr.='&order='.($order=='DESC'?'ASC':'DESC');
$query="$qselect $qfrom $qwhere ORDER BY $order_by LIMIT ".$pageNav->getStart().",".$pageNav->getLimit(); $query="$qselect $qfrom $qwhere ORDER BY $order_by LIMIT ".$pageNav->getStart().",".$pageNav->getLimit();
$res=db_query($query); $res=db_query($query);
...@@ -85,7 +85,7 @@ else ...@@ -85,7 +85,7 @@ else
<h2>System Logs</h2> <h2>System Logs</h2>
<div id='filter' > <div id='filter' >
<form action="syslogs.php" method="get"> <form action="logs.php" method="get">
<div style="padding-left:2px;"> <div style="padding-left:2px;">
<b>Date Span</b>: <b>Date Span</b>:
&nbsp;From&nbsp;<input class="dp" id="sd" size=15 name="startDate" value="<?php echo Format::htmlchars($_REQUEST['startDate']); ?>" autocomplete=OFF> &nbsp;From&nbsp;<input class="dp" id="sd" size=15 name="startDate" value="<?php echo Format::htmlchars($_REQUEST['startDate']); ?>" autocomplete=OFF>
...@@ -104,17 +104,17 @@ else ...@@ -104,17 +104,17 @@ else
</div> </div>
</form> </form>
</div> </div>
<form action="syslogs.php" method="POST" name="logs" onSubmit="return checkbox_checker(this,1,0);"> <form action="logs.php" method="POST" name="logs" onSubmit="return checkbox_checker(this,1,0);">
<input type="hidden" name="do" value="mass_process" > <input type="hidden" name="do" value="mass_process" >
<table class="list" border="0" cellspacing="1" cellpadding="0" width="940"> <table class="list" border="0" cellspacing="1" cellpadding="0" width="940">
<caption><?php echo $showing; ?></caption> <caption><?php echo $showing; ?></caption>
<thead> <thead>
<tr> <tr>
<th width="7">&nbsp;</th> <th width="7">&nbsp;</th>
<th width="320"><a <?php echo $title_sort; ?> href="syslogs.php?<?php echo $qstr; ?>&sort=title">Log Title</a></th> <th width="320"><a <?php echo $title_sort; ?> href="logs.php?<?php echo $qstr; ?>&sort=title">Log Title</a></th>
<th width="100"><a <?php echo $type_sort; ?> href="syslogs.php?<?php echo $qstr; ?>&sort=type">Log Type</a></th> <th width="100"><a <?php echo $type_sort; ?> href="logs.php?<?php echo $qstr; ?>&sort=type">Log Type</a></th>
<th width="200" nowrap><a <?php echo $date_sort; ?>href="syslogs.php?<?php echo $qstr; ?>&sort=date">Log Date</a></th> <th width="200" nowrap><a <?php echo $date_sort; ?>href="logs.php?<?php echo $qstr; ?>&sort=date">Log Date</a></th>
<th width="120"><a <?php echo $ip_sort; ?> href="syslogs.php?<?php echo $qstr; ?>&sort=ip">IP Address</a></th> <th width="120"><a <?php echo $ip_sort; ?> href="logs.php?<?php echo $qstr; ?>&sort=ip">IP Address</a></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
......
<?php <?php
/********************************************************************* /*********************************************************************
syslogs.php logs.php
System Logs System Logs
...@@ -42,8 +42,6 @@ if($_POST){ ...@@ -42,8 +42,6 @@ if($_POST){
} }
} }
$page='syslogs.inc.php'; $page='syslogs.inc.php';
$nav->setTabActive('dashboard'); $nav->setTabActive('dashboard');
require(STAFFINC_DIR.'header.inc.php'); require(STAFFINC_DIR.'header.inc.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment