Exemple #1
0
			<section>
				<article>
					<h3>Register New Participant</h3>
					<form action ="register_p.php" method="post">
						<input type="text" name="name" placeholder="participant name"required/>
						<input type="text" name="number" placeholder="participant phone Number"required/>
						<select name="event_id" placeholder="Event" >
							<option value="1">Web Design</option>

						</select>
						<select name="college_id" placeholder="College" required>
							<?php 
$obj = new college();
$MAX_USERS = $obj->get_max_colleges();
for ($i = 0; $i < $MAX_USERS; $i++) {
    $array = $obj->college_details($i + 1);
    echo "<option value=" . $array['cid'] . ">" . $array['college_name'] . "</option>";
}
?>

						</select>
						<input type="submit" text="submit"/>
					</form>
				</article>
				<article>
					<h3>Register New Round</h3>
					<form action ="round_register.php" method="post">
						<input type="text" name="round_name" placeholder="Round Name"required/>
						<select name="eid" placeholder="event" required>
							<?php 
include "class.scoring.php";
		<?php 
if ($_SESSION['permissions'] < 1) {
    echo "<div id='error'>\n\n\t\t\t\t\t\t\t<p id='main-heading'>Error: Access Denied, you are not authorised to view this page</p>\n\t\t\t\t\t\t</div>";
    die;
}
$round = $_GET['rid'];
$event = $_GET['eid'];
require "class.scoring.php";
require "mysql.login.php";
require "college.register.php";
$s = new scoring();
$c = new college();
$u = new login();
$users = $u->getUsersFromCollege($_GET['cid']);
$n = $u->getMaxUsersFromCollege($_GET['cid']);
$college = $c->college_details($_GET['cid']);
?>
		<h1>Sygma 2016 Registration Form</h1>

		<h1><?php 
echo $college['college_name'];
?>
</h1>

		<h2>Sygma 2016 </h2>
		<table style="width:85%; margin:0 auto;">

			<tr>
				<th style="max-width:60px;">sno</th>
				<th>Participant Name</th>
				<th>Event</th>