<?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" />
<script type="text/javascript">
  function checkForm(form)
  {
    
    if(form.IDNumber.value == "" || form.IDNumber.value =="0") {
      alert("Input can not be Empty! or Zero");
      form.IDNumber.focus();
      return false;
    }
	var ret = /^[0-9]+$/;
	if(!ret.test(form.IDNumber.value)) {
      alert("Numbers Only");
      form.IDNumber.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 />
<form action="delete.php" method="post" name="form" onsubmit="return checkForm(this);">
<fieldset><legend><strong>Delete Porter</strong></legend>
<div class="msgd"><?php $msg = $_GET['msg'];  //GET the message
			if($msg!='') echo '<p>'.$msg.'</p>';?></div>
<label>Enter Account Number</label><input name="IDNumber" type="text" size="30" maxlength="200" />
<input name="submit" type="submit" id="submit" value="Delete Porter" />
</fieldset>
</form><br />
<form action="deletewaiter.php" method="post" name="form" onsubmit="return checkForm(this);">
<fieldset><legend><strong>Delete Waiter</strong></legend>
<div class="msgd"><?php $msgw = $_GET['msgw'];  //GET the message
			if($msgw!='') echo '<p>'.$msgw.'</p>';?></div>
<label>Enter Account Number</label><input name="IDNumber" type="text" size="30" maxlength="200" />
<input name="submit" type="submit" id="submit" value="Delete Waiter" />
</fieldset>
</form><br />
<form action="deletecrew.php" method="post" name="form" onsubmit="return checkForm(this);">
<fieldset><legend><strong>Delete Tent Crew</strong></legend>
<div class="msgd"><?php $msgc = $_GET['msgc'];  //GET the message
			if($msgc!='') echo '<p>'.$msgc.'</p>';?></div>
<label>Enter Account Number</label><input name="IDNumber" type="text" size="30" maxlength="200" />
<input name="submit" type="submit" id="submit" value="Delete Tent Crew" />
</fieldset>
</form><br />
<form action="deleteboy.php" method="post" name="form" onsubmit="return checkForm(this);">
<fieldset><legend><strong>Delete Toilet Boy</strong></legend>
<div class="msgd"><?php $msgb = $_GET['msgb'];  //GET the message
			if($msgb!='') echo '<p>'.$msgb.'</p>';?></div>
<label>Enter Account Number</label><input name="IDNumber" type="text" size="30" maxlength="200" />
<input name="submit" type="submit" id="submit" value="Delete Toilet Boy" />
</fieldset>
</form>
<br />
<form action="deletedish.php" method="post" name="form" onsubmit="return checkForm(this);">
<fieldset><legend><strong>Delete Dishwasher</strong></legend>
<div class="msgdd"><?php $msgdd = $_GET['msgdd'];  //GET the message
			if($msgdd!='') echo '<p>'.$msgdd.'</p>';?></div>
<label>Enter Account Number</label><input name="IDNumber" type="text" size="30" maxlength="200" />
<input name="submit" type="submit" id="submit" value="Delete Dishwasher" />
</fieldset>
</form>

</div>	
</div>
<div id="footer">
	<p>&copy; Trek DMC kilimanjaro. All rights reserved. Design by <a href="www.technohosttz.com">Technohost Tanzania</a></p>
</div>
</body>
</html>
