Location: PHPKode > projects > Php-Logging-System > phplogsys-1.1.4/includes/html_header.php
<html>
<head>
<?php
echo '<title>', $addTitle, ': ', PAGETITLE, '</title>';
?>
<link rel=stylesheet type=text/css href='css/default.css'>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" />
<META HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<!-- Begin Calendar -->
<link rel="stylesheet" type="text/css" media="all" href="cal/calendar.css" />
<script type="text/javascript" src="cal/calendar.js"></script>
<script type="text/javascript" src="cal/calendar-en.js"></script>
<script type="text/javascript" src="cal/calendar-setup.js"></script>
<!-- End Calendar -->
<!-- Begin Overlib -->
<script src="overlib/overlib.js" language="Javascript" type="text/javascript"></script>
<DIV id=overDiv	style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></DIV>
<!-- End Overlib -->
<script language="Javascript" type="text/javascript">
function expandselect(id, size){
	var obj = document.getElementById(id);
	if(obj){
		if(obj.style.maxWidth != ''){
			obj.style.maxWidth = '';
		}else{
			obj.style.maxWidth = size;
		}
	}
}
</script>
<script language="Javascript" type="text/javascript">
function addOption(input, select){
	var inputobj = document.getElementById(input);
	var selectobj = document.getElementById(select);
	var option = document.createElement('option');
	var t = document.createTextNode(inputobj.value);
	option.selected = true;
	option.appendChild(t);
	selectobj.appendChild(option);
	inputobj.value = '';
}
</script>
<script language="Javascript" type="text/javascript">
function formatDate(theDate){
	var val = theDate.getFullYear() + '-';
	if(theDate.getMonth() < 9){
		val = val + '0' + (theDate.getMonth() + 1) + '-';
	}else{
		val = val + (theDate.getMonth() + 1) + '-';
	}
	if(theDate.getDate() < 10){
		val = val + '0' + theDate.getDate();
	}else{
		val = val + theDate.getDate();
	}
	return val;
}
function set_today(){
	document.getElementById('date').value = 'today';
	document.getElementById('date2').value = 'today';
	document.getElementById('time').value = '00:00:00';
	document.getElementById('time2').value = '23:59:59';
}
function set_yesterday(){
	document.getElementById('date').value = 'yesterday';
	document.getElementById('date2').value = 'yesterday';
	document.getElementById('time').value = '00:00:00';
	document.getElementById('time2').value = '23:59:59';
}
function set_thisweek(){
	document.getElementById('time').value = '00:00:00';
	document.getElementById('time2').value = '23:59:59';
	var myDate = new Date();
	var firstDate = new Date( myDate.getTime() - (1000 * 60 * 60 * 24 * myDate.getDay()) );
	var lastDate = new Date( firstDate.getTime() + (1000 * 60 * 60 * 24 * 6) );
	document.getElementById('date').value = formatDate(firstDate);
	document.getElementById('date2').value = formatDate(lastDate);
}
</script>
<script language="Javascript" type="text/javascript">
function addmsg(){
	var tableobj = document.getElementById('msgentry');
	var num = tableobj.tBodies[0].rows.length + 1;

	var row = tableobj.tBodies[0].insertRow(-1);
	var cell = row.insertCell(-1);
	cell.innerHTML = 'Exclude <input type="checkbox" name="ExcludeMsg' + num + '" id="ExcludeMsg' + num + '" value="1" />';
	var cell = row.insertCell(-1);
	cell.innerHTML = 'RegExp <input type="checkbox" name="RegExpMsg' + num + '" id="RegExpMsg' + num + '" value="1" />';
	var cell = row.insertCell(-1);
	cell.innerHTML = '<input type=text name="msg' + num + '" id="msg' + num + '" size="75%" />';
	var cell = row.insertCell(-1);
	cell.innerHTML = '&nbsp;';

	tableobj.tBodies[0].rows[num-2].cells[3].innerHTML = '<b>AND</b>';
}
</script>
<style type="text/css">
div.sql {
	text-align: center;
}
</style>
</head>
<body>
<table class="header">
</table>
<table class="headerbottom"><tr><td>
<?
if(APACHE && (!isset($onlymodule) || $onlymodule == 'APACHE')) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=apacheform">Apache</a> ';
if(BASH && (!isset($onlymodule) || $onlymodule == 'BASH')) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=bashform">Bash</a> ';
if(IPTABLES && (!isset($onlymodule) || $onlymodule == 'IPTABLES')) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=iptablesform">Iptables</a> ';
if(SAMHAIN && (!isset($onlymodule) || $onlymodule == 'SAMHAIN')) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=samhainform">Samhain</a> ';
if(SNORT && (!isset($onlymodule) || $onlymodule == 'SNORT')) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=snortform">Snort</a> ';
if(SQUID && (!isset($onlymodule) || $onlymodule == 'SQUID')) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=squidform">Squid</a> ';
if(SYSLOG_NG && (!isset($onlymodule) || $onlymodule == 'SYSLOG_NG')) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=syslog-ngform">Syslog-ng</a> ';
if(USE_CACHE) echo '<a class="vertmenu" href="', $_SERVER["PHP_SELF"], '?pageId=cache">Cache</a> ';
?>
<a class="vertmenu" href="<?=$_SERVER["PHP_SELF"]?>?pageId=help">Help</a>
<a class="vertmenu" href="<?=$_SERVER["PHP_SELF"]?>?pageId=about">About</a>
&nbsp;</td></tr>
</table><center>
Return current item: Php-Logging-System