<?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>";
} ?> <p id="main-heading" style="text-align:right; padding-left:50px;">Currently logged in as <?php echo $_SESSION['name']; ?> </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>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,500italic,500,400italic,300italic,300,100italic,100' rel='stylesheet' type='text/css'> </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;">
<?php require 'class.scoring.php'; $o = new scoring(); $o->addScore($_POST);
<?php include "class.scoring.php"; $o = new scoring(); $o->createEvent($_POST);
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,500italic,500,400italic,300italic,300,100italic,100' rel='stylesheet' type='text/css'> </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>
</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;">
<div class="list"> </div> </div> </div> <div id="error" style="display:none"> <p id="main-heading">Error Message</p> </div> <?php require "class.scoring.php"; $o = new scoring(); $array = $o->getEventList(); $n = $o->getMaxEvents(); ?> <div id="form-container"> <div class="form-item"> <div class="form-header" style="position:relative; background:#9C27B0;"> <h5 class="head" id="college">College Registration</h5> <h5 class="head" id="contact"></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> <div class="form-body"> <input type="text" name="name" placeholder="college name" id="cname"required/> <input type="email" name="email" placeholder = "Email Adress" id="cemail" required/>
<?php include "class.scoring.php"; $o = new scoring(); $o->createRound($_POST); header('Location:manage.php');
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"; $o = new scoring(); $o->createEventList(); ?> </select> <input type="submit" text="submit"/> </form> </article> </section> <section> <article> <h3>Change users Permissions</h3> <form action ="perm.php" method="post">