<? if($_REQUEST[launch]>0) { ?>
<html>
<head>
<title>Attendance System</title>
<style>
h1 { color: #000000; }
h3 { color: #000000; }
</style>
</head>
<BODY OnLoad=form.StudentID.focus(); bgcolor="#FFFFFF">
<TABLE WIDTH="90%">
<TR>
<TD><IFRAME SRC="camimages/live.htm" WIDTH="400" HEIGHT="300"></IFRAME></TD>
<TD>
<form name="form" action="attendanceaction.php" method="post">
<p>
<h1 font-color="white">Please swipe your QuickCard</h1>
<h3>If the swipe is not working or you've lost your ID, type your student ID and click submit.</h3> </p>
<input name="StudentID" type="password" id="StudentID">
<p>
<input type="submit" name="Submit" value="Login">
</p>
</form>
</TD>
</TR>
</TABLE>
</body>
</html>
<? } else { ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>camimage</title>
<META HTTP-EQUIV ="Refresh" CONTENT = "5 ; URL=index.php?launch=<? echo time() ?>">
</head>
<body>
The attendance system will start in 5 seconds
</body>
</html>
<? } ?>