some more GUI improvements

This commit is contained in:
Rainer Gerhards 2005-08-17 13:35:09 +00:00
parent 94526d6846
commit 34e0ce649e
7 changed files with 74 additions and 22 deletions

View File

@ -1,23 +1,31 @@
<?php
/*#### #### #### #### #### #### #### #### #### ####
/*#### #### #### #### #### #### #### #### #### ####
phpLogCon - A Web Interface to Log Data.
Copyright (C) 2004 Adiscon GmbH
Copyright (C) 2004-2005 Adiscon GmbH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Version 1.1
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
If you have questions about phpLogCon in general, please email info@adiscon.com. To learn more about phpLogCon, please visit
http://www.phplogcon.com.
You should have received a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
This Project was intiated and is maintened by Rainer Gerhards <rgerhards@hq.adiscon.com>. See AUTHORS to learn who helped make
it become a reality.
If you have questions about phpLogCon in general, please email info@adiscon.com.
To learn more about phpLogCon, please visit http://www.phplogcon.com.
*/#### #### #### #### #### #### #### #### #### ####
This Project was intiated and is maintened by Rainer Gerhards <rgerhards@hq.adiscon.com>.
See AUTHORS to learn who helped make it become a reality.
*/#### #### #### #### #### #### #### #### #### ####
// Set some defaults
@ -95,6 +103,8 @@ it become a reality.
/*
***** BEGIN VARIOUS SETTINGS *****
*/
//Set to 1 and the Header (image/introduce sentence) will be used! Set 0 to disable it.
define('_ENABLEHEADER', 1);
//Set to 1 and User Interface will be used! Set 0 to disable it.
define('_ENABLEUI', 0);
@ -103,7 +113,7 @@ it become a reality.
define('_DEFLANG', 'en');
// Use UTC time
define('_UTCtime', 1);
define('_UTCtime', 0);
// Get messages date by ReceivedAt or DeviceReportedTime
define('_DATE', 'ReceivedAt');
@ -111,6 +121,18 @@ it become a reality.
// Coloring priority
define('_COLPriority', 1);
// Custom Admin Message (appears on the homepage)
define('_AdminMessage', "Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<<br>
ja, dieser Satz steht absichtlich 8 mal untereinander :P Damit ich nicht nur eine Zeile hab, mir fiel nicht mehr ein ^^");
/*
***** END VARIOUS SETTINGS *****
*/

View File

@ -53,7 +53,7 @@ See AUTHORS to learn who helped make it become a reality.
*/
//amount of data records displayed
if($_SESSION['epp'] < 1 || $_SESSION['epp'] > 100)
if($_SESSION['epp'] < 1 || $_SESSION['epp'] > 2000)
$myEventsNavigation = new EventsNavigation(20);
else
$myEventsNavigation = new EventsNavigation($_SESSION['epp']);

View File

@ -36,5 +36,8 @@ See AUTHORS to learn who helped make it become a reality.
<option value="20" <?php if ($_SESSION["epp"] == 20) echo "selected"; ?>>20 per page</option>
<option value="25" <?php if ($_SESSION["epp"] == 25) echo "selected"; ?>>25 per page</option>
<option value="50" <?php if ($_SESSION["epp"] == 50) echo "selected"; ?>>50 per page</option>
<option value="100" <?php if ($_SESSION["epp"] == 100) echo "selected"; ?>>100 per page</option>
<option value="100" <?php if ($_SESSION["epp"] == 100) echo "selected"; ?>>100 per page</option>
<option value="500" <?php if ($_SESSION["epp"] == 500) echo "selected"; ?>>500 per page</option>
<option value="1000" <?php if ($_SESSION["epp"] == 1000) echo "selected"; ?>>1000 per page</option>
<option value="2000" <?php if ($_SESSION["epp"] == 2000) echo "selected"; ?>>2000 per page</option>
</Select>

View File

@ -136,6 +136,11 @@ See AUTHORS to learn who helped make it become a reality.
$rowIndex = 'num';
else
$rowIndex = 0;
if (_AdminMessage != "")
{
echo "<br><br><b>"._AdminMessage."</b><br>";
}
echo "<br><br><b>" . _MSGQuiInf . "</b>:";
echo "<table border='0' cellspacing='0' class=\"EventTable\"><br>";
@ -205,6 +210,20 @@ See AUTHORS to learn who helped make it become a reality.
echo "</tr>";
}
echo "</table>";
echo "<a href=\"events-display.php\"><b>[more...]</b></a>";
// 2005-08-17 by therget --->
// If any date is in the future, show a message on the homepage.
$now = date("Y-m-d g:i:s");
$sqlstatement = "SELECT COUNT(*) AS datecount FROM "._DBTABLENAME ." WHERE "._DATE." > '".$now."'";
$result = db_exec($global_Con,$sqlstatement);
$db_datecount = db_fetch_array($result, "datecount");
if ($db_datecount[0] > 0)
{
echo "<br><br><b>Note:</b> There are ".$db_datecount[0]." Events in the Database, which are in the future";
}
// <--- End 2005-08-17 by therget
}
WriteFooter();

View File

@ -38,7 +38,7 @@ define('_MSGLogSuc', 'Login erfolgreich');
define('_MSGWel', 'Willkommen bei phpLogCon');
define('_MSGChoOpt', '! Wählen sie unter den Optionen aus dem obrigen Menü aus');
define('_MSGQuiInf', 'Kurz-Info (Unter Berücksichtigung der Filtereinstellungen)');
define('_MSGTop5', 'Top fünf Logs (Unter Berücksichtigung der Filtereinstellungen)');
define('_MSGTop5', 'Letzte fünf Logs (Unter Berücksichtigung der Filtereinstellungen)');
define('_MSGNoData', 'Keine Daten gefunden');
define('_MSGDate', 'Datum');
define('_MSGFac', 'Facility');

View File

@ -37,8 +37,8 @@ define('_MSGpas', 'Password');
define('_MSGLogSuc', 'Login successfully');
define('_MSGWel', 'Welcome to phpLogCon');
define('_MSGChoOpt', '! Choose an option from the menu above');
define('_MSGQuiInf', 'Quick info (under respect of filter settings)');
define('_MSGTop5', 'Top five logs (under respect of filter settings)');
define('_MSGQuiInf', 'Quick info (filter settings apply)');
define('_MSGTop5', '5 most recent logs (filter settings apply)');
define('_MSGNoData', 'No data found');
define('_MSGDate', 'Date');
define('_MSGFac', 'Facility');

View File

@ -43,7 +43,6 @@ See AUTHORS to learn who helped make it become a reality.
*/
/*!
* Include the stylesheeh
*
*/
@ -52,6 +51,10 @@ See AUTHORS to learn who helped make it become a reality.
* generate the url for pint version
* /return The Url refer to the pint version of the current page.
*/
// very important to include config settings at beginning! (enable header setting)
// include 'config.php';
function GetPrinterURL()
{
global $PHP_SELF, $QUERY_STRING;
@ -81,10 +84,15 @@ See AUTHORS to learn who helped make it become a reality.
<table align="center" width="100%" cellspacing="0" cellpadding="0" border="0" CLASS="EventTable">
<tr>
<td width="220" align="left"><img src="<? echo _ADLibPathImage; ?>phplogcon.gif" border="0"></td>
<td align="left">
<h1>phpLogCon monitoring</h1>
</td>
<?php
if (_ENABLEHEADER == "1")
{
echo "<td width=\"220\" align=\"left\"><img src=\"",_ADLibPathImage,"phplogcon.gif\" border=\"0\"></td>
<td align=\"left\">
<h1>phpLogCon monitoring</h1>
</td>";
}
?>
</tr>
</table>