<?
/*
################################################################
# >>> Time Recording System #
################################################################
# > Authors: Lucian Pricop and David Sturtevant #
# > E-mail: hide@address.com #
# > Date: 17 April 2007 #
# #
# This web application allows your staff to submit their time #
# sheets on line #
################################################################
# Copyright (C) 2007 Oxford Archaeology #
# #
# 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. #
# #
# 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. #
# #
# 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. #
################################################################
*/
require("header.php");
if(isset($_SESSION["logged".$privateKey]))
header("Location: index2.php");
if(isset($_GET["ref"]) && strcmp($_GET["ref"],"")!=0)
$ref = rawurldecode(strval($_GET["ref"]));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>demo Time Recording System</title>
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/>
<link rel='stylesheet' type='text/css' href='timesheets.css' />
</head>
<body>
<div id="doc" class="yui-t1">
<div id="hd">
<h1>demo Time Recording System</h1>
</div>
<div id="welcomeSection">Welcome!</div>
<div id="bd">
<div id="yui-main">
<div class="navset" id="nav">
<div class="hd" id="menuTop">
</div>
<div class="bd" id="menuMiddle">
</div>
<div class="bd" id="menuBottom">
</div>
</div>
<div id='content'>
<div id="mainFormContainer">
<form method="post" action="logonAuthentication.php">
<table>
<tr>
<td class="mainFormText" colspan="3"><h4>Please enter your login details</h4></td>
</tr>
<tr>
<td class="mainFormText">Username</td>
<td class="mainFormControl">
<input name="username" type="text"/>
</td>
</tr>
<tr>
<td class="mainFormText">Password</td>
<td class="mainFormControl">
<input name="password" type="password"/>
</td>
</tr>
<tr>
<td class="mainFormRowText" colspan="2"><input type="submit" value="login"/></td>
</tr>
<tr>
<td class="mainFormRowText" colspan="2">
<?if(isset($_GET["status"]))
{
switch( $_GET["status"] )
{
case "loginError" :
echo "Your login was unsuccessful!";
break;
case "connectError" :
echo "Server is down, please try again later!";
break;
case "logout" :
echo "Logout was successful.";
break;
case "nosession" :
if(isset($ref))
echo "Sorry, your session has expired";
else echo " ";
break;
default : echo $_GET["status"];
break;
}
}
if(isset($ref))
{?>
<input type="hidden" name="ref" value="<?echo $ref;?>"/>
<?}?>
</td>
</tr>
</table>
</form>
<h4>User list</h4>
<ul>
<li><b>username - password - description</b></li>
<li>admin - admin - The administrator</li>
<li>projectmanager - default -</li>
<li>linemanager - default - </li>
<li>employee1 - default - just a regular employee</li>
<li>employee2 - default - just a regular employee</li>
<li>employee3 - default - just a regular employee</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<?require("footer.php");?>
</body>
</html>