<?php
session_start();
if(!isset($_SESSION['username']) || !isset($_SESSION['password'])){
 header("Location: index.php");
} 
 //include 'logoff.html';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PMS Member's Only</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" type="text/css" />
<link href="default.css" rel="stylesheet" type="text/css" media="all" />
<!--[if IE 6]>
<link href="default_ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript">
  function checkForm(form)
  {
    
    if(form.tentcrewID.value == "" || form.tentcrewID.value =="0") {
      alert("Input can not be Empty! or Zero, Enter A/C number");
      form.tentcrewID.focus();
      return false;
    }
	
	var re = /^[0-9]+$/;
	
    if(!re.test(form.tentcrewID.value)) {
      alert("Number Only");
      form.tentcrewID.focus();
      return false;
    }
			
    return true;
  }

</script>
</head>
<body>
<div id="header" class="container">
	<div id="logo">
		<h1><a href="#">PMS - Porter's Management System</a></h1>
	</div>
</div>

<div id="page" class="container">
	<div id="sidebar1">
		<div id="box1"><ul class="style1">
				<li class="first"><a href="select.php" class="link-style">SELECT PORTERS</a></li>
				<li><a href="addporters.php" class="link-style">ADD RECORDS</a></li>
                <li><a href="editall.php" class="link-style">Edit RECORDS</a></li>
				<li><a href="deleteporter.php" class="link-style">DELETE PORTER</a></li>
				<li><a href="#" class="link-style">UPDATE STATUS</a></li>
                               <li><a href="logout.php" class="link-style">Logout</a></li>
			</ul>
            </div>
	</div>
	<div id="content" align="center"><br />
<div class="specialselection">
<form action="indcrew.php" method="post" name="form" target="_self" onsubmit="return checkForm(this);">
Only used when you want to reset status for porter,waiter, toilet boy or tent crew who has been selected and he/she did not showup(for some excuses)  
  <fieldset><legend>
<h4>Reset Tent Crew Status</h4></legend>
<table width="650" border="0" cellpadding="1" cellspacing="1">
  <tr>
    <td width="192"><label>Tent Crew Account Number</label></td>
    <td width="227"><input name="tentcrewID" type="text" size="35" maxlength="50"  id="tentcrewID" /></td>
    <td width="167"><input name="Select" type="submit" value="Reset Tent Crew Status" /></td>
  </tr>

</table>
</fieldset>
</form>
</div><br />
	</div>
		
</div>
<div id="footer">
	<p>&copy; Private Kilimanjaro. All rights reserved. Design by <a href="#">Pamoja Web Solutions</a></p>
</div>
</body>
</html>
