Пример #1
2
 <?php 
require "mysql.login.php";
require "class.scoring.php";
require "college.register.php";
$s = new scoring();
$c = new college();
$u = new login();
$n = $u->getMaxUsersFromCollege($_POST['cid']);
echo "<table>";
echo "<tr><th>Contestants Name</th><th>Phone Number</th><th>Event Name</th></tr>";
$users = $u->getUsersFromCollege($_POST['cid']);
for ($j = 0; $j < $n; $j++) {
    echo "<tr><td>" . $users[$j]['username'] . " </td><td>" . $users[$j]['phone'] . " </td><td>" . $s->getEventNameFromID($users[$j]['e_id']) . "</td> </tr>";
}
echo "</table>";
Пример #2
0
	</head>
	<body>
		
		<?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 "college.register.php";
$s = new scoring();
$c = new college();
$scores = $s->getScore($event, $round);
$ename = $s->getEventNameFromID($event);
$rname = $s->getRoundNameFromID($round);
//$c->getCollegeNameFromID($cid);
?>
		<h1><?php 
echo $ename;
?>
</h1>
		<h2><?php 
echo $rname;
?>
 Score Sheet</h2>
		<h2>Sygma 2016 </h2>
		<table>
			
			<tr>
Пример #3
0
    die;
}
$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->get_users_in_event($event);
$max = $u->get_max_users_in_event($event);
?>
		<h1>Sygma 2016 Registration Form</h1>

		<h1><?php 
echo $s->getEventNameFromID($event);
?>
</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>College code</th>
			</tr>
			<?php 
for ($i = 0; $i < $max; $i++) {
    $sno = $i + 1;
    $code = $c->getCollegeCodeFromID($users[$i]['c_id']);
Пример #4
0
		<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>

				<th>Contact</th>
			</tr>
			<?php 
for ($i = 0; $i < $n; $i++) {
    $sno = $i + 1;
    $eventid = $s->getEventNameFromID($users[$i]['e_id']);
    echo "\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td  style='max-width:60px;'>" . $sno . "</td>\n\t\t\t\t\t\t\t<td>" . $users[$i]['username'] . "</td>\n\t\t\t\t\t\t\t<td>" . $eventid . "</td>\n\n\t\t\t\t\t\t\t<td>" . $users[$i]['phone'] . "</td>\n\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t";
}
?>

		</table>
		


	</body>
</html>