Merge branch 'master' of git+ssh://mm@git.adiscon.com/git/phplogcon

This commit is contained in:
Michael Meckelein 2008-03-14 11:04:20 +01:00
commit b8d3dfee50
13 changed files with 500 additions and 144 deletions

View File

@ -1,8 +1,23 @@
/* Generic Style defintions */
#FilterOptions
.ExpansionPlus
{
background-image: url("../images/icons/navigate_plus.png");
background-repeat: no-repeat;
background-position: left center;
padding-left: 20px;
}
.ExpansionMinus
{
background-image: url("../images/icons/navigate_minus.png");
background-repeat: no-repeat;
background-position: left center;
padding-left: 20px;
}
.HiddenContent
{
visibility: hidden;
position: relative;
/* position: relative; */
display: none;
}
}

View File

@ -27,5 +27,10 @@ define('DATEMODE_ALL', 1);
define('DATEMODE_RANGE', 2);
define('DATEMODE_LASTX', 3);
define('DATE_LASTX_HOUR', 1);
define('DATE_LASTX_12HOURS', 2);
define('DATE_LASTX_24HOURS', 3);
define('DATE_LASTX_7DAYS', 4);
define('DATE_LASTX_31DAYS', 5);
// ---
?>

View File

@ -44,5 +44,10 @@ define('STR_DEBUG_ERROR_WTF', "WTF OMFG");
define('SOURCE_DISK', '1');
define('SOURCE_MYSQLDB', '2');
// ---
define('UID_UNKNOWN', -1);
// ---
?>

View File

@ -20,8 +20,10 @@
}
// ---
require_once('classes/logstreamconfig.class.php');
require_once('classes/logstreamconfigdisk.class.php');
// --- Perform necessary includes
require_once($gl_root_path . 'classes/logstreamconfig.class.php');
require_once($gl_root_path . 'classes/logstreamconfigdisk.class.php');
// ---
function InitSourceConfigs()
{

View File

@ -1,105 +1,134 @@
<?php
/*
*********************************************************************
* Copyright by Adiscon GmbH | 2008! *
* -> www.phplogcon.org <- *
* *
* Use this script at your own risk! *
* ----------------------------------------------------------------- *
* Filter Helper functions for the frontend *
* *
*********************************************************************
*/
/*
*********************************************************************
* Copyright by Adiscon GmbH | 2008! *
* -> www.phplogcon.org <- *
* *
* Use this script at your own risk! *
* ----------------------------------------------------------------- *
* Filter Helper functions for the frontend *
* *
*********************************************************************
*/
// --- Avoid directly accessing this file!
if ( !defined('IN_PHPLOGCON') )
{
die('Hacking attempt');
exit;
}
// ---
// --- Avoid directly accessing this file!
if ( !defined('IN_PHPLOGCON') )
{
die('Hacking attempt');
exit;
}
// ---
// --- Perform necessary includes
require_once($gl_root_path . 'include/constants_filters.php');
// ---
// --- Perform necessary includes
require_once($gl_root_path . 'include/constants_filters.php');
// ---
function InitFilterHelpers()
{
global $CFG, $content, $filters;
function InitFilterHelpers()
{
global $CFG, $content, $filters;
// Init Default DateMode from SESSION!
if ( isset($_SESSION['filter_datemode']) )
$filters['filter_datemode'] = intval($_SESSION['filter_datemode']);
else
$filters['filter_datemode'] = DATEMODE_ALL;
// Init Default DateMode from SESSION!
if ( isset($_SESSION['filter_datemode']) )
$filters['filter_datemode'] = intval($_SESSION['filter_datemode']);
else
$filters['filter_datemode'] = DATEMODE_ALL;
// Init TimeFilter Helper Array
$content['datemodes'][0]['ID'] = DATEMODE_ALL;
$content['datemodes'][0]['DisplayName'] = $content['LN_DATEMODE_ALL'];
if ( $filters['filter_datemode'] == DATEMODE_ALL ) { $content['datemodes'][0]['selected'] = "selected"; } else { $content['datemodes'][0]['selected'] = ""; }
$content['datemodes'][1]['ID'] = DATEMODE_RANGE;
$content['datemodes'][1]['DisplayName'] = $content['LN_DATEMODE_RANGE'];
if ( $filters['filter_datemode'] == DATEMODE_RANGE ) { $content['datemodes'][1]['selected'] = "selected"; } else { $content['datemodes'][1]['selected'] = ""; }
$content['datemodes'][2]['ID'] = DATEMODE_LASTX;
$content['datemodes'][2]['DisplayName'] = $content['LN_DATEMODE_LASTX'];
if ( $filters['filter_datemode'] == DATEMODE_LASTX ) { $content['datemodes'][2]['selected'] = "selected"; } else { $content['datemodes'][2]['selected'] = ""; }
// Init Date Range Parameters
$currentTime = time();
$currentDay = date("d", $currentTime);
$currentMonth = date("m", $currentTime);
$currentYear = date("Y", $currentTime);
// Init Year, month and day array!
for ( $i = $currentYear-5; $i <= $currentYear+5; $i++ )
$content['years'][] = $i;
for ( $i = 1; $i <= 12; $i++ )
$content['months'][] = $i;
for ( $i = 1; $i <= 31; $i++ )
$content['days'][] = $i;
// Init TimeFilter Helper Array
// $content['datemodes'][0]['ID'] = DATEMODE_ALL;
// $content['datemodes'][0]['DisplayName'] = $content['LN_DATEMODE_ALL'];
// if ( $filters['filter_datemode'] == DATEMODE_ALL ) { $content['datemodes'][0]['selected'] = "selected"; } else { $content['datemodes'][0]['selected'] = ""; }
$content['datemodes'][0]['ID'] = DATEMODE_RANGE;
$content['datemodes'][0]['DisplayName'] = $content['LN_DATEMODE_RANGE'];
if ( $filters['filter_datemode'] == DATEMODE_RANGE ) { $content['datemodes'][0]['selected'] = "selected"; } else { $content['datemodes'][0]['selected'] = ""; }
$content['datemodes'][1]['ID'] = DATEMODE_LASTX;
$content['datemodes'][1]['DisplayName'] = $content['LN_DATEMODE_LASTX'];
if ( $filters['filter_datemode'] == DATEMODE_LASTX ) { $content['datemodes'][1]['selected'] = "selected"; } else { $content['datemodes'][1]['selected'] = ""; }
// Init Date Range Parameters
$currentTime = time();
$currentDay = date("d", $currentTime);
$currentMonth = date("m", $currentTime);
$currentYear = date("Y", $currentTime);
// Init Year, month and day array!
for ( $i = $currentYear-5; $i <= $currentYear+5; $i++ )
$content['years'][] = $i;
for ( $i = 1; $i <= 12; $i++ )
$content['months'][] = $i;
for ( $i = 1; $i <= 31; $i++ )
$content['days'][] = $i;
// Init filter_daterange_from_year
if ( isset($_SESSION['filter_daterange_from_year']) )
$filters['filter_daterange_from_year'] = intval($_SESSION['filter_daterange_from_year']);
else
$filters['filter_daterange_from_year'] = $currentYear-1;
FillDateRangeArray($content['years'], "filter_daterange_from_year_list", "filter_daterange_from_year");
// Init filter_daterange_from_year
if ( isset($_SESSION['filter_daterange_from_year']) )
$filters['filter_daterange_from_year'] = intval($_SESSION['filter_daterange_from_year']);
else
$filters['filter_daterange_from_year'] = $currentYear-1;
FillDateRangeArray($content['years'], "filter_daterange_from_year_list", "filter_daterange_from_year");
// Init filter_daterange_from_month
if ( isset($_SESSION['filter_daterange_from_month']) )
$filters['filter_daterange_from_month'] = intval($_SESSION['filter_daterange_from_month']);
else
$filters['filter_daterange_from_month'] = $currentMonth;
FillDateRangeArray($content['months'], "filter_daterange_from_month_list", "filter_daterange_from_month");
// Init filter_daterange_from_month
if ( isset($_SESSION['filter_daterange_from_month']) )
$filters['filter_daterange_from_month'] = intval($_SESSION['filter_daterange_from_month']);
else
$filters['filter_daterange_from_month'] = $currentMonth;
FillDateRangeArray($content['months'], "filter_daterange_from_month_list", "filter_daterange_from_month");
// Init filter_daterange_from_day
if ( isset($_SESSION['filter_daterange_from_day']) )
$filters['filter_daterange_from_day'] = intval($_SESSION['filter_daterange_from_day']);
else
$filters['filter_daterange_from_day'] = $currentDay;
FillDateRangeArray($content['days'], "filter_daterange_from_day_list", "filter_daterange_from_day");
// Init filter_daterange_from_day
if ( isset($_SESSION['filter_daterange_from_day']) )
$filters['filter_daterange_from_day'] = intval($_SESSION['filter_daterange_from_day']);
else
$filters['filter_daterange_from_day'] = $currentDay;
FillDateRangeArray($content['days'], "filter_daterange_from_day_list", "filter_daterange_from_day");
// Init filter_daterange_to_year
if ( isset($_SESSION['filter_daterange_to_year']) )
$filters['filter_daterange_to_year'] = intval($_SESSION['filter_daterange_to_year']);
else
$filters['filter_daterange_to_year'] = $currentYear;
FillDateRangeArray($content['years'], "filter_daterange_to_year_list", "filter_daterange_to_year");
// Init filter_daterange_to_year
if ( isset($_SESSION['filter_daterange_to_year']) )
$filters['filter_daterange_to_year'] = intval($_SESSION['filter_daterange_to_year']);
else
$filters['filter_daterange_to_year'] = $currentYear;
FillDateRangeArray($content['years'], "filter_daterange_to_year_list", "filter_daterange_to_year");
// Init filter_daterange_to_month
if ( isset($_SESSION['filter_daterange_to_month']) )
$filters['filter_daterange_to_month'] = intval($_SESSION['filter_daterange_to_month']);
else
$filters['filter_daterange_to_month'] = $currentMonth;
FillDateRangeArray($content['months'], "filter_daterange_to_month_list", "filter_daterange_to_month");
// Init filter_daterange_to_month
if ( isset($_SESSION['filter_daterange_to_month']) )
$filters['filter_daterange_to_month'] = intval($_SESSION['filter_daterange_to_month']);
else
$filters['filter_daterange_to_month'] = $currentMonth;
FillDateRangeArray($content['months'], "filter_daterange_to_month_list", "filter_daterange_to_month");
// Init filter_daterange_to_day
if ( isset($_SESSION['filter_daterange_to_day']) )
$filters['filter_daterange_to_day'] = intval($_SESSION['filter_daterange_to_day']);
else
$filters['filter_daterange_to_day'] = $currentDay;
FillDateRangeArray($content['days'], "filter_daterange_to_day_list", "filter_daterange_to_day");
}
// Init filter_daterange_to_day
if ( isset($_SESSION['filter_daterange_to_day']) )
$filters['filter_daterange_to_day'] = intval($_SESSION['filter_daterange_to_day']);
else
$filters['filter_daterange_to_day'] = $currentDay;
FillDateRangeArray($content['days'], "filter_daterange_to_day_list", "filter_daterange_to_day");
// --- Define LASTX Array
// Init Default DateMode from SESSION!
if ( isset($_SESSION['filter_lastx_default']) )
$filters['filter_lastx_default'] = intval($_SESSION['filter_lastx_default']);
else
$filters['filter_lastx_default'] = DATE_LASTX_24HOURS;
$content['filter_daterange_last_x_list'][0]['ID'] = DATE_LASTX_HOUR;
$content['filter_daterange_last_x_list'][0]['DisplayName'] = $content['LN_DATE_LASTX_HOUR'];
if ( $filters['filter_lastx_default'] == DATE_LASTX_HOUR ) { $content['filter_daterange_last_x_list'][0]['selected'] = "selected"; } else { $content['filter_daterange_last_x_list'][0]['selected'] = ""; }
$content['filter_daterange_last_x_list'][1]['ID'] = DATE_LASTX_12HOURS;
$content['filter_daterange_last_x_list'][1]['DisplayName'] = $content['LN_DATE_LASTX_12HOURS'];
if ( $filters['filter_lastx_default'] == DATE_LASTX_12HOURS ) { $content['filter_daterange_last_x_list'][1]['selected'] = "selected"; } else { $content['filter_daterange_last_x_list'][1]['selected'] = ""; }
$content['filter_daterange_last_x_list'][2]['ID'] = DATE_LASTX_24HOURS;
$content['filter_daterange_last_x_list'][2]['DisplayName'] = $content['LN_DATE_LASTX_24HOURS'];
if ( $filters['filter_lastx_default'] == DATE_LASTX_24HOURS ) { $content['filter_daterange_last_x_list'][2]['selected'] = "selected"; } else { $content['filter_daterange_last_x_list'][2]['selected'] = ""; }
$content['filter_daterange_last_x_list'][3]['ID'] = DATE_LASTX_7DAYS;
$content['filter_daterange_last_x_list'][3]['DisplayName'] = $content['LN_DATE_LASTX_7DAYS'];
if ( $filters['filter_lastx_default'] == DATE_LASTX_7DAYS ) { $content['filter_daterange_last_x_list'][3]['selected'] = "selected"; } else { $content['filter_daterange_last_x_list'][3]['selected'] = ""; }
$content['filter_daterange_last_x_list'][4]['ID'] = DATE_LASTX_31DAYS;
$content['filter_daterange_last_x_list'][4]['DisplayName'] = $content['LN_DATE_LASTX_31DAYS'];
if ( $filters['filter_lastx_default'] == DATE_LASTX_31DAYS ) { $content['filter_daterange_last_x_list'][4]['selected'] = "selected"; } else { $content['filter_daterange_last_x_list'][4]['selected'] = ""; }
// ---
}
function FillDateRangeArray($sourcearray, $szArrayListName, $szFilterName) // $content['years'], "filter_daterange_from_year_list", "filter_daterange_from_year")
{

View File

@ -74,6 +74,10 @@ function CreateCurrentUrl()
}
}
}
// May can be removed later
$content['additional_url'] = ""; // "&serverid=" . $content['serverid'];
}

View File

@ -19,13 +19,36 @@ define('IN_PHPLOGCON', true);
$gl_root_path = './';
include($gl_root_path . 'include/functions_common.php');
include($gl_root_path . 'include/functions_frontendhelpers.php');
include($gl_root_path . 'include/functions_filters.php');
InitPhpLogCon();
InitSourceConfigs();
InitFrontEndDefaults(); // Only in WebFrontEnd
// Init Langauge first!
IncludeLanguageFile( $gl_root_path . '/lang/' . $LANG . '/main.php' );
// Helpers for frontend filtering!
InitFilterHelpers();
// *** *** //
// --- CONTENT Vars
if ( isset($_GET['uid']) )
{
$currentUID = intval($_GET['uid']);
}
else
$currentUID = UID_UNKNOWN;
// Init Pager variables
$content['uid_previous'] = UID_UNKNOWN;
$content['uid_next'] = UID_UNKNOWN;
$content['uid_first'] = UID_UNKNOWN;
$content['uid_last'] = UID_UNKNOWN;
// Init Sorting variables
$content['sorting'] = "";
//if ( isset($content['myserver']) )
// $content['TITLE'] = "PhpLogCon :: Home :: Server '" . $content['myserver']['Name'] . "'"; // Title of the Page
//else
@ -48,11 +71,11 @@ if ( isset($content['Sources'][$currentSourceID]) && $content['Sources'][$curren
// Create LogStream Object
$stream = $stream_config->LogStreamFactory($stream_config);
$stream->Open( array ( SYSLOG_DATE, SYSLOG_FACILITY, SYSLOG_FACILITY_TEXT, SYSLOG_SEVERITY, SYSLOG_SEVERITY_TEXT, SYSLOG_HOST, SYSLOG_SYSLOGTAG, SYSLOG_MESSAGE, SYSLOG_MESSAGETYPE ), true);
$stream->SetReadDirection(EnumReadDirection::Backward);
$uID = -1;
$uID = $currentUID;
$counter = 0;
// $stream->SetReadDirection(EnumReadDirection::Backward);
while ($stream->ReadNext($uID, $logArray) == SUCCESS && $counter <= 30)
{
@ -74,6 +97,7 @@ if ( isset($content['Sources'][$currentSourceID]) && $content['Sources'][$curren
if ( $stream->ReadNext($uID, $logArray) == SUCCESS )
{
$content['uid_next'] = $uID;
// Enable Player Pager
$content['main_pagerenabled'] = "true";
}
@ -107,8 +131,6 @@ if ( isset($content['syslogmessages']) && count($content['syslogmessages']) > 0
// ---
// --- Parsen and Output
IncludeLanguageFile( $gl_root_path . '/lang/' . $LANG . '/main.php' );
InitTemplateParser();
$page -> parser($content, "index.html");
$page -> output();

View File

@ -1,7 +1,11 @@
/*
Helper Javascript Constants
*/
const DATEMODE_ALL = 1, DATEMODE_RANGE = 2, DATEMODE_LASTX = 3;
const DATE_LASTX_HOUR = 1, DATE_LASTX_12HOURS = 2, DATE_LASTX_24HOURS = 3, DATE_LASTX_7DAYS = 4,DATE_LASTX_31DAYS = 5;
/*
Helper Javascript functions
*/
function CheckAlphaPNGImage(ImageName, ImageTrans)
@ -28,18 +32,104 @@ function NewWindow(Location, WindowName,X_width,Y_height,Option) {
}
function togglevisibility(ElementName)
/*
* Helper function to show and hide a div area
*/
function togglevisibility(ElementNameToggle, ElementNameButton)
{
var toggle = document. getElementById(ElementName);
var toggle = document.getElementById(ElementNameToggle);
// Button is optional
if (ElementNameButton != null)
{
var button = document.getElementById(ElementNameButton);
}
else
var button = null;
if (toggle.style.visibility == "visible")
{
if (button != null)
{
button.className = "topmenu2 ExpansionPlus";
}
toggle.style.visibility = "hidden";
toggle.style.display = "none";
}
else
{
if (button != null)
{
button.className = "topmenu2 ExpansionMinus";
}
toggle.style.visibility = "visible";
toggle.style.display = "inline";
}
}
/*
* Helper function to hide a div area
*/
function hidevisibility(ElementNameToggle, ElementNameButton)
{
var toggle = document.getElementById(ElementNameToggle);
// Button is optional
if (ElementNameButton != null)
{
var button = document.getElementById(ElementNameButton);
}
else
var button = null;
if (button != null)
{
button.className = "topmenu2 ExpansionPlus";
}
toggle.style.visibility = "hidden";
toggle.style.display = "none";
}
/*
* Helper function to show and hide areas of the filterview
*/
function toggleDatefiltervisibility(FormName)
{
var myform = document.getElementById(FormName);
if (myform.elements['filter_datemode'].value == DATEMODE_RANGE)
{
togglevisibility('HiddenDateFromOptions');
hidevisibility('HiddenDateLastXOptions');
}
else if (myform.elements['filter_datemode'].value == DATEMODE_LASTX)
{
togglevisibility('HiddenDateLastXOptions');
hidevisibility('HiddenDateFromOptions');
}
}
/*
* Helper function to add a date filter into the search field
*/
function addDatefilterToSearch(DateName, SearchFormName)
{
var myDateform = document.getElementById(DateName);
var mySearchform = document.getElementById(SearchFormName);
if (myDateform.elements['filter_datemode'].value == DATEMODE_RANGE)
{
mySearchform.elements['filter'].value += "date:from:" + myDateform.elements['filter_daterange_from_year'].value + "-"
+ myDateform.elements['filter_daterange_from_month'].value + "-"
+ myDateform.elements['filter_daterange_from_day'].value + ":to:"
+ myDateform.elements['filter_daterange_to_year'].value + "-"
+ myDateform.elements['filter_daterange_to_month'].value + "-"
+ myDateform.elements['filter_daterange_to_day'].value + " ";
}
else if (myDateform.elements['filter_datemode'].value == DATEMODE_LASTX)
{
mySearchform.elements['filter'].value += "date:lastx:" + myDateform.elements['filter_daterange_last_x'].value + " ";
}
}

View File

@ -24,4 +24,20 @@ $content['LN_GRID_INFOUNIT'] = "InfoUnit";
$content['LN_GRID_HOST'] = "Source";
$content['LN_GRID_MSG'] = "Message";
// Filter Options
$content['LN_FILTER_DATE'] = "Datetime Range";
$content['LN_FILTER_DATEMODE'] = "Select mode";
$content['LN_DATEMODE_ALL'] = "All time";
$content['LN_DATEMODE_RANGE'] = "Time range";
$content['LN_DATEMODE_LASTX'] = "Time x since today";
$content['LN_FILTER_DATEFROM'] = "Date range from";
$content['LN_FILTER_DATETO'] = "Date range to";
$content['LN_FILTER_DATELASTX'] = "Time since";
$content['LN_FILTER_ADD2SEARCH'] = "Add to search";
$content['LN_DATE_LASTX_HOUR'] = "Last hour";
$content['LN_DATE_LASTX_12HOURS'] = "Last 12 hours";
$content['LN_DATE_LASTX_24HOURS'] = "Last 24 hours";
$content['LN_DATE_LASTX_7DAYS'] = "Last 7 days";
$content['LN_DATE_LASTX_31DAYS'] = "Last 31 days";
?>

View File

@ -1,7 +1,6 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="topmenu1" nowrap align="center" width="100"><a class="topmenu1_link" href="" target="_top">Home</a></td>
<td class="topmenu1" nowrap align="center" width="100"><a class="topmenu1_link" href="" target="_top">Show Events</a></td>
<td class="topmenu1" nowrap align="center" width="125"><a class="topmenu1_link" href="?{additional_url}" target="_top">Show Events</a></td>
<td class="topmenu1" nowrap align="center" width="125"><a class="topmenu1_link" href="" target="_top">Show SysLogTags</a></td>
<td class="topmenu1" nowrap align="center" width="100"><a class="topmenu1_link" href="" target="_top">User Options</a></td>
<td class="topmenu1" nowrap align="center" width="125"><a class="topmenu1_link" href="" target="_top">Database Options</a></td>

View File

@ -1,46 +1,159 @@
<!-- INCLUDE include_header.html -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<table border="0" cellspacing="0" cellpadding="2" align="center">
<form action="" method="post" name="search">
<tr>
<td class="topmenu2" nowrap align="center" width="100"><a class="topmenu1_link" href="#" OnClick="togglevisibility('FilterOptions');">Filter Options</a></td>
<td class="topmenu2end" nowrap align="center" width="max">&nbsp;</td>
<!-- <td class="topmenu2 ExpansionPlus" nowrap align="center" width="105" id="advancedsearch"><a class="topmenu1_link" href="#" OnClick="togglevisibility('HiddenOptions', 'advancedsearch');">Advanced Search</a></td>-->
<td nowrap align="center" nowrap>
<B>&nbsp;Search (filter): </B>
<input maxlength="2048" name="filter" size="55" title="Search" value="" class="SearchFormControl">
<br>
<input name="search" type="submit" value="Search" class="SearchFormControl">
<input type="reset" value="Reset search" class="SearchFormControl">
<!-- <input type="button" value="Advanced Search" class="SearchFormControl" OnClick="togglevisibility('HiddenOptions', null);">-->
<br>
</td>
<td nowrap align="left" nowrap valign="top">
<a href="#" OnClick="togglevisibility('HiddenOptions', null);">Advanced Search</a>
<br>
<i>(sample: faciliy:local0 severity:warn)</i>
</td>
</tr>
</form>
</table>
<div id="FilterOptions">
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="with_border">
<div id="HiddenOptions" class="HiddenContent">
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td colspan="3" class="cellmenu1" nowrap><B>Filter Options</B></td>
<tr>
<td width="10" valign="top" nowrap>&nbsp;</td>
<td width="100%" valign="top">
<td width="50%" valign="top" class="with_border">
<form action="" method="post" name="filterdateform">
<table border="0" cellpadding="1" cellspacing="1" width="100%" align="center">
<tr>
<td colspan="2" align="center" valign="top" class="title">
<strong>{LN_FILTER_DATE}</strong></td>
</tr>
<tr>
<td align="left" class="cellmenu2" width="250" nowrap><b>{LN_FILTER_DATEMODE}</b></td>
<td align="right" class="line0" width="100%">
<select name="filter_datemode" size="1" OnChange="toggleDatefiltervisibility('filterdateform');">
<!-- BEGIN datemodes -->
<option {selected} value={ID}>{DisplayName}</option>
<!-- END datemodes -->
</select>
</td>
</tr>
</table>
<div id="HiddenDateFromOptions" class="HiddenContent">
<table border="0" cellpadding="1" cellspacing="1" bgcolor="#DDDDDD" width="100%" align="center">
<tr>
<td align="left" class="cellmenu2" width="250" nowrap><b>{LN_FILTER_DATEFROM}</b></td>
<td align="right" class="line1" width="100%">
<select name="filter_daterange_from_year" size="1">
<!-- BEGIN filter_daterange_from_year_list -->
<option {selected} value="{value}">{value}</option>
<!-- END filter_daterange_from_year_list -->
</select>
-
<select name="filter_daterange_from_month" size="1">
<!-- BEGIN filter_daterange_from_month_list -->
<option {selected} value="{value}">{value}</option>
<!-- END filter_daterange_from_month_list -->
</select>
-
<select name="filter_daterange_from_day" size="1">
<!-- BEGIN filter_daterange_from_day_list -->
<option {selected} value="{value}">{value}</option>
<!-- END filter_daterange_from_day_list -->
</select>
</td>
</tr>
<tr>
<td align="left" class="cellmenu2" width="250" nowrap><b>{LN_FILTER_DATETO}</b></td>
<td align="right" class="line0" width="100%">
<select name="filter_daterange_to_year" size="1">
<!-- BEGIN filter_daterange_to_year_list -->
<option {selected} value="{value}">{value}</option>
<!-- END filter_daterange_to_year_list -->
</select>
-
<select name="filter_daterange_to_month" size="1">
<!-- BEGIN filter_daterange_to_month_list -->
<option {selected} value="{value}">{value}</option>
<!-- END filter_daterange_to_month_list -->
</select>
-
<select name="filter_daterange_to_day" size="1">
<!-- BEGIN filter_daterange_to_day_list -->
<option {selected} value="{value}">{value}</option>
<!-- END filter_daterange_to_day_list -->
</select>
</td>
</tr>
</table>
</div>
<div id="HiddenDateLastXOptions" class="HiddenContent">
<table border="0" cellpadding="1" cellspacing="1" bgcolor="#DDDDDD" width="100%" align="center">
<tr>
<td align="left" class="cellmenu2" width="250" nowrap><b>{LN_FILTER_DATELASTX}</b></td>
<td align="right" class="line1" width="100%">
<select name="filter_daterange_last_x" size="1">
<!-- BEGIN filter_daterange_last_x_list -->
<option {selected} value="{ID}">{DisplayName}</option>
<!-- END filter_daterange_last_x_list -->
</select>
</td>
</tr>
</table>
</div>
<table border="0" cellpadding="1" cellspacing="1" bgcolor="#DDDDDD" width="100%" align="center">
<tr>
<td align="center" colspan="2">
<input type="button" value="{LN_FILTER_ADD2SEARCH}" OnClick="addDatefilterToSearch('filterdateform', 'search');">
</td>
</tr>
</table>
</form>
</td>
<td width="10" valign="top" nowrap>&nbsp;</td>
<td width="50%" valign="top">
</td>
</tr>
</table>
<br>
</div>
<br>
<script language="javascript">
// Run some needed javascript functions now!
togglevisibility('HiddenDateFromOptions', null);
</script>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="with_border">
<tr>
<td colspan="3" class="title" nowrap><B>Recent syslog messages</B></td>
</tr>
<!-- IF main_pagerenabled="true" -->
<table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="with_border">
<tr>
<td nowrap width="100%"class="line2"><I>&nbsp;{LN_GEN_MOREPAGES}</I></td>
<td nowrap width="100%"class="line2"></td>
<!-- IF main_pagerenabled="true" -->
<td nowrap width="200"class="line2"><I>&nbsp;{LN_GEN_MOREPAGES}</I></td>
<td class="cellmenu2" nowrap><B>Pager: &nbsp; </B></td>
<td class="line0" nowrap><a href="?sorting={sorting}&start={mypagebegin}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_beginning.png" width="16" title="{LN_GEN_FIRSTPAGE}"></a>&nbsp;</td>
<td class="line1" nowrap><a href="?sorting={sorting}&start={mypagebegin}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_rewind.png" width="16" title="{LN_GEN_NEXTPAGE}"></a>&nbsp;</td>
<td class="line0" nowrap><a href="?sorting={sorting}&uid={uid_first}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_beginning.png" width="16" title="{LN_GEN_FIRSTPAGE}"></a>&nbsp;</td>
<td class="line1" nowrap><a href="?sorting={sorting}&uid={uid_previous}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_rewind.png" width="16" title="{LN_GEN_PREVIOUSPAGE}"></a>&nbsp;</td>
<!-- BEGIN syslogpages -->
<td class="{cssclass}" nowrap><a href="?sorting={sorting}&start={mypagebegin}{additional_url}" target="_top">{mypagenumber}</a>&nbsp;</td>
<td class="{cssclass}" nowrap><a href="?sorting={sorting}&uid={mypagebegin}{additional_url}" target="_top">{mypagenumber}</a>&nbsp;</td>
<!-- END syslogpages -->
<td class="line0" nowrap><a href="?sorting={sorting}&start={mypagebegin}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_fast_forward.png" width="16" title="{LN_GEN_PREVIOUSPAGE}"></a>&nbsp;</td>
<td class="line1" nowrap><a href="?sorting={sorting}&start={mypagebegin}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_end.png" width="16" title="{LN_GEN_LASTPAGE}"></a>&nbsp;</td>
<td class="line0" nowrap><a href="?sorting={sorting}&uid={uid_next}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_fast_forward.png" width="16" title="{LN_GEN_NEXTPAGE}"></a>&nbsp;</td>
<td class="line1" nowrap><a href="?sorting={sorting}&uid={uid_last}{additional_url}" target="_top"><img src="{BASEPATH}images/icons/media_end.png" width="16" title="{LN_GEN_LASTPAGE}"></a>&nbsp;</td>
<!-- ENDIF main_pagerenabled="true" -->
</tr>
</table>
<!-- ENDIF main_pagerenabled="true" -->
<tr>
<td width="100%" valign="top">
@ -48,13 +161,13 @@
<!-- IF syslogmessagesenabled="true" -->
<table width="100%" cellpadding="0" cellspacing="1" border="0" align="center" class="with_border_alternate">
<tr>
<td width="25" class="cellmenu1" align="center" nowrap><B>{LN_TOP_UID}</B></td>
<td width="100" class="cellmenu1" align="center" nowrap><A HREF="?sorting={additional_url}" class="cellmenu1_link" >{LN_GRID_DATE}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting={additional_url}" class="cellmenu1_link" >{LN_GRID_FACILITY}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting={additional_url}" class="cellmenu1_link" >{LN_GRID_SEVERITY}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting={additional_url}" class="cellmenu1_link" >{LN_GRID_SYSLOGTAG}</A></td>
<td width="75" class="cellmenu1" align="center" nowrap><A HREF="?sorting={additional_url}" class="cellmenu1_link" >{LN_GRID_INFOUNIT}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting={additional_url}" class="cellmenu1_link" >{LN_GRID_HOST}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><B>{LN_TOP_UID}</B></td>
<td width="100" class="cellmenu1" align="center" nowrap><A HREF="?sorting=timereported{additional_url}" class="cellmenu1_link" >{LN_GRID_DATE}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting=syslogfacility{additional_url}" class="cellmenu1_link" >{LN_GRID_FACILITY}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting=syslogseverity{additional_url}" class="cellmenu1_link" >{LN_GRID_SEVERITY}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting=syslogtag{additional_url}" class="cellmenu1_link" >{LN_GRID_SYSLOGTAG}</A></td>
<td width="75" class="cellmenu1" align="center" nowrap><A HREF="?sorting=IUT{additional_url}" class="cellmenu1_link" >{LN_GRID_INFOUNIT}</A></td>
<td width="50" class="cellmenu1" align="center" nowrap><A HREF="?sorting=FROMHOST{additional_url}" class="cellmenu1_link" >{LN_GRID_HOST}</A></td>
<td width="100%" class="cellmenu1" align="center" nowrap><B>{LN_GRID_MSG}</B></td>
</tr>

View File

@ -203,6 +203,7 @@ font
}
.topmenu1_link, A.topmenu1_link
{
background-color: #38110E;
color: #FFDD22;
}
.topmenu1_link:hover, A.topmenu1_link:hover
@ -217,6 +218,40 @@ font
color: #FFFFFF;
background-color: #290604;
}
.topmenu2
{
height: 16px;
border:1px ridge;
border-color: #D79993 #290604 #290604 #D79993;
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #38110E;
}
.topmenu2:hover
{
color: #FFFF99;
background-color: #492D2B;
text-decoration: none;
}
.topmenu2_link, A.topmenu2_link
{
color: #FFDD22;
}
.topmenu2_link:hover, A.topmenu2_link:hover
{
color: #FFFF99;
text-decoration: none;
}
.topmenu2end
{
height: 16px;
border:1px inset;
border-color: #D79993 #290604 #D79993 #D79993;
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #290604;
}
/* Cell Columns */
.cellmenu1
@ -338,7 +373,7 @@ A.cellmenu1_link:hover
}
/* Form elements */
select, input, textarea
select, input, button, textarea
{
background-color: #0B253C;
color:#FFFFFF;
@ -347,5 +382,13 @@ select, input, textarea
border-color: #233B51 #124A7C #124A7C #233B51;
}
.SearchFormControl
{
height: 20px;
margin: 2px;
background-color: #0B253C;
color:#FFFFFF;
font:bold 10px Verdana,Arial,Helvetica,sans-serif;
border: 1px solid;
border-color: #233B51 #124A7C #124A7C #233B51;
}

View File

@ -187,9 +187,9 @@ font
/* TOP Menu Classes */
.topmenu1
{
height: 16px;
height: 20px;
border:1px ridge;
border-color: #79AABE #09506C #09506C #79AABE;
border-color: #79AABE #09506C #79AABE #79AABE;
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
@ -203,6 +203,7 @@ font
}
.topmenu1_link, A.topmenu1_link
{
background-color: #597196;
color: #FFDD22;
}
.topmenu1_link:hover, A.topmenu1_link:hover
@ -212,16 +213,16 @@ font
}
.topmenuend
{
height: 16px;
height: 20px;
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #597196;
}
.topmenu2
{
height: 16px;
height: 20px;
border:1px ridge;
border-color: #79AABE #09506C #09506C #79AABE;
border-color: #79AABE #79AABE #09506C #79AABE;
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
@ -244,10 +245,12 @@ font
}
.topmenu2end
{
height: 16px;
height: 20px;
border:1px inset;
border-color: #09506C #79AABE #09506C #09506C;
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #597196;
background-color: #6A8296;
}
@ -372,7 +375,7 @@ A.cellmenu1_link:hover
}
/* Form elements */
select, input, textarea
select, input, button, textarea
{
background-color: #E8E7E2;
color:#000000;
@ -381,3 +384,13 @@ select, input, textarea
border-color: #233B51 #124A7C #124A7C #233B51;
}
.SearchFormControl
{
height: 20px;
margin: 2px;
background-color: #E8E7E2;
color:#000000;
font:bold 10px Verdana,Arial,Helvetica,sans-serif;
border: 1px solid;
border-color: #233B51 #124A7C #124A7C #233B51;
}