Beispiel #1
0
</p>
		</header>
		<div id="error" style="display:none">

			<p id="main-heading">Error Message</p>
		</div>
		<?php 
require "class.scoring.php";
require "college.register.php";
require "mysql.login.php";
$o = new scoring();
$u = new login();
$array = $u->get_unique_users_in_event($_GET['event']);
$n = $array[0]['max'];
$events = $o->getEventInfo($_GET['event']);
$c = new college();
?>
		<div id="form-container">

			<div class="form-item">
					<div class="form-header" style="position:relative;">
						<h5 class="head" id="college"><?php 
echo $events['event_name'] . " ";
?>
Score Sheet</h5>
						<h5 class="head" id="contact"></h5>
						<h5 class="head" style="visibility:hidden;" id="event_i"><?php 
echo $_GET['event'];
?>
</h5>
						<div class="material-button circle raised college-accept pink" style=" width:50px; position:absolute; bottom:-75px; right:-25px;height:50px ; margin:50px; border-radius:50%;padding:0px; "><div class="material-layer light"></div><svg class="icon-check"><use xlink:href="#icon-check"></use></svg></div>
Beispiel #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;
}
$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>
Beispiel #3
0
				</article>

			</section>
			<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/>
<?php

include "college.register.php";
$newobj = new college();
$id = $newobj->college_register($_POST);
echo $id;
Beispiel #5
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>
Beispiel #6
0
 <?php 
require "mysql.login.php";
require "class.scoring.php";
require "college.register.php";
$s = new scoring();
$u = new login();
$c = new college();
$u->deleteUsersFromCollege($_POST['cid']);
$c->deleteCollege($_POST['cid']);
	</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 "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;">