<?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("ID number must be filled and can not be zero");
      form.IDNumber.focus();
      return false;
    }
	
	    if(form.Name.value=="") {
      alert("Enter Name");
      form.Name.focus();
      return false;
    }
	

	if(form.Phone.value == "") {
      alert("Enter Phone");
      form.Phone.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">
    <div class="add"><div class="addleft"><form action="add2db.php" method="post" name="form" target="_self" onsubmit="return checkForm(this);">
<div class="msg1">Add New Porter's Record</div> 
<div class="msg"><?php $msg = $_GET['msg'];  //GET the message
			if($msg!='') echo '<p>'.$msg.'</p>';?></div>
<div class="editrow1"><div class="edleft1">Account Number:</div><div class="edright1"><input name="IDNumber" type="text" id="IDNumber" size="27" maxlength="100" /></div></div>
        <div class="editrow1"><div class="edleft1">Full Name:</div><div class="edright1"><input name="Name" type="text" id="Name" size="27" maxlength="200" /></div></div>
        <div class="editrow1"><div class="edleft1">Phone Number:</div><div class="edright1"> 
        <input name="Phone" type="text" id="Phone" size="27" maxlength="100" /></div></div>
        <div class="editrow11"><div class="edleft1"><input type="reset" name="Reset" id="button" value="  Clear  " /></div><div class="edright1">  
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <input type="submit" name="button2" id="button2" value="  Add Records  " /></div></div>
</form>
<form action="addwaiter.php" method="post" name="formwaiter" target="_self" onsubmit="return checkForm(this);">
<div class="msg1">Add New Waiter </div>
<div class="msg"><?php $msgw = $_GET['msgw'];  //GET the message
			if($msgw!='') echo '<p>'.$msgw.'</p>';?></div>
<div class="editrow1"><div class="edleft1">Account Number:</div><div class="edright1"><input name="IDNumber" type="text" id="IDNumber" size="27" maxlength="100" /></div></div>
        <div class="editrow1"><div class="edleft1">Full Name:</div><div class="edright1"><input name="Name" type="text" id="Name" size="27" maxlength="200" /></div></div>
        <div class="editrow1"><div class="edleft1">Phone Number:</div><div class="edright1"> 
        <input name="Phone" type="text" id="Phone" size="27" maxlength="100" /></div></div>
             <div class="editrow11"><div class="edleft1"><input type="reset" name="Reset" id="button" value="  Clear  " /> </div><div class="edright1"> 
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <input type="submit" name="button2" id="button2" value="  Add New Waiter" /></div></div>
</form></div><div class="addright"><form action="addcrew.php" method="post" name="formcrew" target="_self" onsubmit="return checkForm(this);">
<div class="msg1">Add New Tent Crew </div>
<div class="msg"><?php $msgc = $_GET['msgc'];  //GET the message
			if($msgc!='') echo '<p>'.$msgc.'</p>';?></div>
<div class="editrow1"><div class="edleft1">Account Number:</div><div class="edright1"><input name="IDNumber" type="text" id="IDNumber" size="27" maxlength="100" /></div></div>
        <div class="editrow1"><div class="edleft1">Full Name:</div><div class="edright1"><input name="Name" type="text" id="Name" size="27" maxlength="200" /></div></div>
        <div class="editrow1"><div class="edleft1">Phone Number:</div><div class="edright1"> 
        <input name="Phone" type="text" id="Phone" size="27" maxlength="100" /></div></div>
       
      <div class="editrow11"><div class="edleft1"><input type="reset" name="Reset" id="button" value="  Clear  " /></div><div class="edright1">  
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <input type="submit" name="button2" id="button2" value="  Add Tent Crew  " /></div></div>
</form>
<form action="addboy.php" method="post" name="formboy" target="_self" onsubmit="return checkForm(this);">
<div class="msg1">Add New Toilet Boy</div> 
<div class="msg"><?php $msgb = $_GET['msgb'];  //GET the message
			if($msgb!='') echo '<p>'.$msgb.'</p>';?></div>
<div class="editrow1"><div class="edleft1">Account Number:</div><div class="edright1"><input name="IDNumber" type="text" id="IDNumber" size="27" maxlength="100" /></div></div>
        <div class="editrow1"><div class="edleft1">Full Name:</div><div class="edright1"><input name="Name" type="text" id="Name" size="27" maxlength="200" /></div></div>
        <div class="editrow1"><div class="edleft1">Phone Number:</div><div class="edright1"> 
        <input name="Phone" type="text" id="Phone" size="27" maxlength="100" /></div></div>
             <div class="editrow11"><div class="edleft1">
        <div class="edleft1">
        <input type="reset" name="button" id="button3" value="   Clear   " />
      </div></div><div class="edright1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="submit" name="button2" id="button2" value="Add Toilet Boy" /></div></div>
</form>

<form action="adddish.php" method="post" name="formdish" target="_self" onsubmit="return checkForm(this);">
<div class="msg1">Add New Dishwasher</div> 
<div class="msg"><?php $msgzd = $_GET['msgzd'];  //GET the message
			if($msgzd!='') echo '<p>'.$msgzd.'</p>';?></div>
<div class="editrow1"><div class="edleft1">Account Number:</div><div class="edright1"><input name="IDNumber" type="text" id="IDNumber" size="27" maxlength="100" /></div></div>
        <div class="editrow1"><div class="edleft1">Full Name:</div><div class="edright1"><input name="Name" type="text" id="Name" size="27" maxlength="200" /></div></div>
        <div class="editrow1"><div class="edleft1">Phone Number:</div><div class="edright1"> 
        <input name="Phone" type="text" id="Phone" size="27" maxlength="100" /></div></div>

      <div class="editrow11"><div class="edleft1">
        <div class="edleft1">
        <input type="reset" name="button" id="button3" value="   Clear   " />
      </div></div><div class="edright1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="submit" name="button2" id="button2" value="Add Dishwasher" /></div></div>
</form>

</div></div>


	</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>
