<?php
include_once("include/db_connection.php");
session_start();
if($_SESSION["adminloggedIn"] == FALSE){
header("Location:admin_login.php");
exit;
}
include('header.php');
include('left1.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>add booth</title>
<meta name="keywords" content="" />
<meta name="Premium Series" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
<script language="JavaScript" src="gen_validatorv31.js" type="text/javascript"></script>
<title>Untitled Document</title>
</head>
<body>
<div id="wrapper">
<!-- start page -->
<div id="page">
<!-- start content -->
<div id="prtCnt" align="center">
<div id="content" align="center">
<div class="post">
<h2 class="title"> </h2>
<div class="entry">
<div align="center">Add Booth</div>
<form action="addingBooth.php" method="POST" name="user_editprof" onSubmit="return validate_form(this)">
<table width="508" height="529" border="0">
<tr>
<td width="206" >BoothType</td>
<td width="257" height="36" >
<input name="BoothType" type="text" value="<?php echo $BoothType; ?>" size="35" maxlength="30" /></td>
</tr>
<tr>
<td >CompanyName</td>
<td height="40" >
<input name="CompanyName" type="text" value="<?php echo $CompanyName; ?>" size="42 " maxlength="100" />
</td></tr>
<tr>
<td >CheckInDate</td>
<td height="24" >
<input name="CheckInDate" type="text" value="<?php echo $CheckInDate; ?>" size="43" maxlength="40" /></td>
</tr>
<tr>
<td >CheckOutDate</td>
<td height="24">
<input name="CheckOutDate" type="text" value="<?php echo $CheckOutDate; ?>" size="43" maxlength="40" /></td>
</tr>
<tr>
<td >Length</td>
<td height="24">
<input name="Length" type="text" value="<?php echo $Length; ?>" size="43" maxlength="40" /></td>
</tr>
<tr>
<td >Width</td>
<td height="37" >
<input name="Width" type="text" value="<?php echo $Width; ?>" size="30" maxlength="45" /> </tr>
<tr>
<td >Charge</td>
<td height="37">
<input name="Charge" type="text" value="<?php echo $Charge; ?>" size="30" maxlength="25" /></td>
</tr>
<tr>
<td >Status</td>
<td height="37">
<input name="Status" type="text" value="<?php echo $Status; ?>" size="30" maxlength="25" /></td>
</tr>
<tr>
<td >AddressCompany</td>
<td height="37">
<input name="AddressCompany" type="text" value="<?php echo $AddressCompany; ?>" size="50" maxlength="40" />
</td>
</tr>
<tr>
<td >CompanyPhoneNo</td>
<td height="37">
<input name="CompanyPhoneNo" type="text" value="<?php echo $CompanyPhoneNo; ?>" size="50" maxlength="40" />
</td>
</tr>
<tr>
<td><div align="right">
<input type="submit" name="submit" value="Add" onclick="return document.returnValue"/>
</div></td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/javascript">
var frmvalidator = new Validator("user_editprof");
frmvalidator.addValidation("BoothType","req","Please enter your BoothType");
frmvalidator.addValidation("BoothType","maxlen=45","Max length for BoothType is 45");
frmvalidator.addValidation("BoothType","alpha_s");
frmvalidator.addValidation("CompanyName","req","Please enter the company name ");
frmvalidator.addValidation("CompanyName","maxlen=45","Max length for Fest Administrator is 45");
frmvalidator.addValidation("CompanyName","alpha_s");
frmvalidator.addValidation("CheckInDate","req","Please enter Check in Date of the booth");
frmvalidator.addValidation("CheckOutDate","req","Please enter Check out Date of the booth");
frmvalidator.addValidation("Length","req","Please enter Length in integer");
frmvalidator.addValidation("Length","maxlen=10");
frmvalidator.addValidation("Length","numeric");
frmvalidator.addValidation("Width","req","Please enter Width in integer");
frmvalidator.addValidation("Width","maxlen=10");
frmvalidator.addValidation("Width","numeric");
frmvalidator.addValidation("Charge","req","Please enter the income from booth");
frmvalidator.addValidation("Charge","maxlen=10");
frmvalidator.addValidation("Charge","numeric");
frmvalidator.addValidation("Status","req","Please enter the status as an integer");
frmvalidator.addValidation("Status","maxlen=10");
frmvalidator.addValidation("Status","numeric");
frmvalidator.addValidation("AddressCompany","req","Please enter the address of the booth owning company");
frmvalidator.addValidation("AddressCompany","maxlen=200");
frmvalidator.addValidation("AddressCompany","alpha_s");
frmvalidator.addValidation("CompanyPhoneNo","req","Please enter the phone number in integer");
frmvalidator.addValidation("CompanyPhoneNo","maxlen=15");
frmvalidator.addValidation("CompanyPhoneNo","numeric");
</script>
</p>
</div>
</div>
</div>
</div>
<!-- end content -->
<!-- start sidebars -->
<!-- end sidebars -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</div>
</html>
<?php
include('footer.php');
?>