<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>simple e-document</title>
</head>
<body>
<p>
<?php
if (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {
echo("Do not access this file directly!");
die();
}
$NOW_TIME = time();
$NOW_Date = date("d/m/y :: H:i", $NOW_TIME);
$username = $_COOKIE['username'];
echo '<table width="100%" border="0">
<tr>
<td width="283"><img src="edoclogo.gif" alt="e-document for php" width="283" height="72" /></td><form id="form1" name="form1" method="post" action="main_out.php">
<td bgcolor="#FFFFCC"><table width="100%" border="0">
<tr>
<td><input name="op" type="radio" value="newin" /></td>
<td>Submit New Outgoing</td>
<td rowspan="4"><input type="submit" name="Submit2" value="GO" /></td>
</tr>
<tr>
<td><input name="op" type="radio" value="searchin" /></td>
<td>Search/Edit/Remove -
Outgoing</td>
</tr>
</table><br><b><a href="main_in.php">Go to Incoming Main Page</a></b></td></form>
<td nowrap="nowrap" bgcolor="#FFFF99">
<form id="form1" name="form1" method="post" action="logout.php">
<input type="hidden" name="op" value="logout"/>
<input type="hidden" name="username" value="'.$username.'"/>
Hello <b>'.$username.'</b>!';
if ($_COOKIE['access'] == "2"){
echo '<br>(Administrator) <br><a href="admin.php">Administration Page</a>';
}
if ($_COOKIE['access'] == "3"){
echo '<br>(Super Administrator) <br><a href="admin.php">Administration Page</a>';
}
echo '<br><br><input type="submit" name="Submit" value="Logout" /><br><br>Date is: <div align="right"><b>'.$NOW_Date.'</b></div></form>
</td>
</tr>
</table>
<hr>';
?>
</body>
</html>