<?php
include_once("include/db_connection.php");
header("Expires: Thu, 17 May 2001 10:17:17 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
session_start();
if($_SESSION["adminloggedIn"] == FALSE){
header("Location:admin_login.php");
exit;
include_once("config.php");
}
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>Premium add booths</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>
<style type="text/css">
<!--
.style2 {
color: #343434;
font-size: 16px;
}
-->
</style>
</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"> Add Booths Information</h2><br>
<div class="entry">
<span class="style2"></span>
<form action="admin_addingBooth.php" method="POST" name="user_editprof" >
<table width="508" height="417" border="0">
<tr>
<td width="170" >BoothType</td>
<td width="328" height="10" >
<input name="BoothType" type="text" value="<?php echo $BoothType; ?>" size="40" maxlength="30" /></td>
</tr>
<tr>
<td >CompanyName</td>
<td height="10" >
<input name="CompanyName" type="text" value="<?php echo $CompanyName; ?>" size="40 " maxlength="100" />
</td></tr>
<tr>
<td >CheckInDate(DD/MM/YY)</td>
<td height="10" >
<input name="CheckInDate" type="text" value="<?php echo $CheckInDate; ?>" size="40" maxlength="40" /></td>
</tr>
<tr>
<td >CheckOutDate(DD/MM/YY)</td>
<td height="10">
<input name="CheckOutDate" type="text" value="<?php echo $CheckOutDate; ?>" size="40" maxlength="40" /></td>
</tr>
<tr>
<td >Length</td>
<td height="10">
<input name="Length" type="text" value="<?php echo $Length; ?>" size="40" maxlength="40" /></td>
</tr>
<tr>
<td >Width</td>
<td height="10" >
<input name="Width" type="text" value="<?php echo $Width; ?>" size="40" maxlength="45" /> </tr>
<tr>
<td >Charge</td>
<td height="10">
<input name="Charge" type="text" value="<?php echo $Charge; ?>" size="40" maxlength="25" /></td>
</tr>
<!--<tr>
<td >Status</td>
<td height="10">
<?php // if($status==1){?>
<input name="status" type="radio" value="1" checked >approved
<input name="status" type="radio" value="0" >rejected
<?php //}
//else{?>
<input name="status" type="radio" value="1" >approved
<input name="status" type="radio" value="0" checked >rejected
<?php //}?>
</tr>-->
<tr>
<td >AddressCompany</td>
<td height="10">
<input name="AddressCompany" type="text" value="<?php echo $AddressCompany; ?>" size="40" maxlength="40" />
</td>
</tr>
<tr>
<td >CompanyPhoneNo</td>
<td height="10">
<input name="CompanyPhoneNo" type="text" value="<?php echo $CompanyPhoneNo; ?>" size="42" maxlength="40" />
</td>
</tr>
<tr>
<td height="10">
<input type="submit" name="submit" value="Add" onclick="return document.returnValue"/>
</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');
?>