mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
-splitted search from index site
This commit is contained in:
parent
e2284774f1
commit
009cc63d1f
54
search.php
Normal file
54
search.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/*
|
||||
*********************************************************************
|
||||
* Copyright by Adiscon GmbH | 2008! *
|
||||
* -> www.phplogcon.org <- *
|
||||
* *
|
||||
* Use this script at your own risk! *
|
||||
* ----------------------------------------------------------------- *
|
||||
* Main Index File *
|
||||
* *
|
||||
* -> Loads the main PhpLogCon Site *
|
||||
* *
|
||||
* All directives are explained within this file *
|
||||
*********************************************************************
|
||||
*/
|
||||
|
||||
// *** Default includes and procedures *** //
|
||||
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($content['myserver']) )
|
||||
// $content['TITLE'] = "PhpLogCon :: Home :: Server '" . $content['myserver']['Name'] . "'"; // Title of the Page
|
||||
//else
|
||||
$content['TITLE'] = "PhpLogCon :: Search";
|
||||
// ---
|
||||
|
||||
// --- BEGIN Custom Code
|
||||
|
||||
// ---
|
||||
|
||||
// --- Parsen and Output
|
||||
InitTemplateParser();
|
||||
$page -> parser($content, "search.html");
|
||||
$page -> output();
|
||||
// ---
|
||||
|
||||
?>
|
@ -1,6 +1,7 @@
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
<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="100"><a class="topmenu1_link" href="search.php?{additional_url}" target="_top">Search</a></td>
|
||||
<td class="topmenu1" nowrap align="center" width="100"><a class="topmenu1_link" href="index.php?{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>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<br>
|
||||
</td>
|
||||
<td nowrap align="left" nowrap valign="top">
|
||||
<a href="javascript:void(0);" OnClick="togglevisibility('HiddenOptions', null);">{LN_SEARCH_ADVANCED}</a>
|
||||
<a href="search.php" target="_top">{LN_SEARCH_ADVANCED}</a>
|
||||
<br>
|
||||
<i>(sample: faciliy:local0 severity:warn)</i>
|
||||
</td>
|
||||
|
184
templates/search.html
Normal file
184
templates/search.html
Normal file
@ -0,0 +1,184 @@
|
||||
<!-- INCLUDE include_header.html -->
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="2" align="center" class="table_with_border">
|
||||
<tr>
|
||||
<!-- <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 valign="middle">
|
||||
<B> {LN_SEARCH_FILTER}</B>
|
||||
<input maxlength="2048" name="filter" size="100" title="Search" value="" class="SearchFormControl" readonly>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<form action="" method="post" name="filterdateform">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
|
||||
<tr>
|
||||
<td width="50%" valign="top" class="table_with_border">
|
||||
|
||||
<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="150" 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="150" 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="150" 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>
|
||||
-->
|
||||
</td>
|
||||
<td width="10" valign="top" nowrap> </td>
|
||||
<td width="50%" valign="top" class="table_with_border">
|
||||
|
||||
<table border="0" cellpadding="1" cellspacing="1" width="100%" align="center">
|
||||
<tr>
|
||||
<td colspan="4" align="center" valign="top" class="title">
|
||||
<strong>{LN_FILTER_OTHERS}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" class="cellmenu2" width="50%" nowrap><b>{LN_FILTER_FACILITY}</b></td>
|
||||
<td align="right" class="line1" nowrap>
|
||||
<select name="filter_facility" size="8" multiple>
|
||||
<!-- BEGIN filter_facility_list -->
|
||||
<option {selected} value="{ID}">{DisplayName}</option>
|
||||
<!-- END filter_facility_list -->
|
||||
</select>
|
||||
</td>
|
||||
<td align="left" class="cellmenu2" width="50%" nowrap><b>{LN_FILTER_SEVERITY}</b></td>
|
||||
<td align="right" class="line1" nowrap>
|
||||
<select name="filter_severity" size="8" multiple>
|
||||
<!-- BEGIN filter_severity_list -->
|
||||
<option {selected} value="{ID}">{DisplayName}</option>
|
||||
<!-- END filter_severity_list -->
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" valign="top" class="table_with_border">
|
||||
|
||||
<table border="0" cellpadding="1" cellspacing="1" width="100%" align="center">
|
||||
<tr>
|
||||
<td colspan="2" align="center" valign="top" class="title">
|
||||
<strong>{LN_FILTER_MESSAGE}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="line0" width="100%">
|
||||
<input maxlength="2048" name="filter" size="70" title="Search" value="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="10" valign="top" nowrap> </td>
|
||||
<td width="50%" valign="top" class="table_with_border">
|
||||
|
||||
<table border="0" cellpadding="1" cellspacing="1" width="100%" align="center">
|
||||
<tr>
|
||||
<td align="left" class="cellmenu2" width="150" nowrap><b>{LN_FILTER_SYSLOGTAG}</b></td>
|
||||
<td align="right" class="line1" nowrap>
|
||||
<input maxlength="2048" name="filter" size="50" title="Search" value="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" class="cellmenu2" width="150" nowrap><b>{LN_FILTER_SOURCE}</b></td>
|
||||
<td align="right" class="line1" nowrap>
|
||||
<input maxlength="2048" name="filter" size="50" title="Search" value="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" valign="top" align="center">
|
||||
<br>
|
||||
<input name="search" type="submit" value="Perform Advanced Search" class="SearchFormControl">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<br>
|
||||
|
||||
<!-- INCLUDE include_footer.html -->
|
Loading…
x
Reference in New Issue
Block a user