Location: PHPKode > projects > EasyFest > new/addFest.php
<?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 Fest Details</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">&nbsp;</h2>
	    <div class="entry">
	
<div align="center">Add Fest</div>
<form action="addingFest.php" method="POST" name="user_editprof" onSubmit="return validate_form(this)"> 
	  <table width="508" height="529" border="0">
        <tr>
          <td width="206" >FestName</td>
          <td width="257" height="36" >
          <input name="FestName" type="text" value="<?php echo $FestName; ?>"  size="35" maxlength="30" /></td>
       
		</tr>
        <tr>
          <td >Fest Administrator(UserName)</td>
          
          <td height="37" >
          <input name="FestAdmin" type="text"  value="<?php echo $FestAdmin; ?>"size="35" maxlength="30" /></td><td width="31"></td>
        </tr>
        <tr>
          <td >Description</td>
        <td height="40" >
           
           <input name="Description" type="text" value="<?php echo $Description; ?>" size="42 " maxlength="100" />
		        </td></tr>
		 <tr>
		   <td >Start Date</td>
          <td height="24" >
          <input name="StartDate" type="text" value="<?php echo $StartDate; ?>" size="43" maxlength="40" /></td>
        </tr>
		<tr>
		   <td >End Date</td>
          <td height="24">
          <input name="EndDate" type="text" value="<?php echo $EndDate; ?>" size="43" maxlength="40" /></td>
        </tr>
		<tr>
		   <td >End Date</td>
          <td height="24">
          <input name="EndDate" type="text" value="<?php echo $EndDate; ?>" size="43" maxlength="40" /></td>
        </tr>
		
        <tr>
          <td >Venue</td>          
          <td height="37" >
        <input name="Venue" type="text"  value="<?php echo $Venue; ?>" size="30" maxlength="45" />        </tr>
        <tr>
          <td >Budget</td>
          <td height="37">
          <input name="Budget" type="text" value="<?php echo $Budget; ?>" size="30" maxlength="25" /></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("FestName","req","Please enter your Fest Name");
 frmvalidator.addValidation("FestName","maxlen=45","Max length for FestName is 45");
 frmvalidator.addValidation("FestName","alpha_s");
 
 frmvalidator.addValidation("FestAdministrator","req","Please enter your Fest Administrator");
 frmvalidator.addValidation("FestAdministrator","maxlen=35","Max length for Fest Administrator is 45");
 frmvalidator.addValidation("FestAdministrator","alpha_s");
 
 frmvalidator.addValidation("Description","req","Please enter your Fest Description");
 frmvalidator.addValidation("Description","maxlen=200");
 frmvalidator.addValidation("Description","alpha_s");
 
 frmvalidator.addValidation("StartDate","req","Please enter Start Date of your Fest");
 frmvalidator.addValidation("EndDate","req","Please enter Start Date of your Fest");

frmvalidator.addValidation("Venue","req","Please enter your Fest Venue details");
 frmvalidator.addValidation("Venue","maxlen=45");
 frmvalidator.addValidation("Venue","alpha_s");
 
 frmvalidator.addValidation("Budget","req","Please enter your Fest Budget Information in Rupees");
frmvalidator.addValidation("Budget","maxlen=10");
 frmvalidator.addValidation("Budget","numeric");
 

</script>
                    </p>
				</div>
		  </div>
		</div>
        </div>
        <!-- end content -->
		<!-- start sidebars -->
		<!-- end sidebars -->
	  <div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end page -->
</div>
</html>
<?php
	include('footer.php');
?>

  
Return current item: EasyFest