Location: PHPKode > projects > EasyFest > new/admin_assignEventsToAssociate.php
<?php
	include_once("include/db_connection.php");
	session_start();
	if($_SESSION["adminloggedIn"] == FALSE){
				header("Location:admin_login.php");
				exit;
	}
	include_once("config_admin.php");
checkLoggedIn("yes");
	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>assign events to associates</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">
Assign events to <?php echo $EventAssociate;
$EventAssociate = $_GET['EventAssociate'];?>
<form id="form1" method="post" action="assigningEvents.php?EventAssociate=<?php echo  $EventAssociate ;?>"> 

<table width="550" border="0" cellpadding="2" cellspacing="2" bgcolor="#000000">
  <tr>
    <td><table width="550"  border="0" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF">
      <?php 
	   $EventAssociate = $_GET['EventAssociate'];
	  $sqlQuery = "SELECT * FROM events ";


$result = MYSQL_QUERY($sqlQuery);
$numberOfRows = MYSQL_NUM_ROWS($result);
	$i = 0;
	while ($i<$numberOfRows)
	{

		if (($i%2)==0) { $bgColor = "#FFFFFF"; } else { $bgColor = "#C3D4FF"; }

	$EventName = MYSQL_RESULT($result,$i,"EventName");

?>
      <tr>
        <td width="12" bgcolor="<?php echo $bgColor ?>">&nbsp;</td>
        <td width="399" bgcolor="<?php echo $bgColor ?>">
			  
			  <?php  echo "EventName :	", $EventName; ?><br>
              
			
       
		<td width="111" valign="top" bgcolor="<?php echo $bgColor ?>"> <input type="checkbox" name="<?php  echo  $i; ?>" value="<?php  echo  $EventName; ?>" /><br>
      
	 
      </tr>
      <?php
		$i++;

	} // end while loop
?>
    </table></td>
  </tr>
</table><input type="submit" name="submit" id="submit" value="Assign" /> </form>


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