<?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>";
include "college.register.php"; require "mysql.login.php"; $o = new scoring(); $c = new college(); $array = $c->getCollegeArray(); $u = new login(); ?> <div class="content"> <h2 style="color:white;">College Statistics</h2> <div class="chart"> <?php for ($i = 0; $i < $array[0]['max']; $i++) { $n = $u->getMaxUsersFromCollege($array[$i]['c_id']); $m = $n * 100; echo "\n\t\t\t\t\t\t\t<div class='bar-graph' style='width:" . $m . "px'>\n\t\t\t\t\t\t\t\t" . $array[$i]['college_name'] . "\n\n\t\t\t\t\t\t\t</div>"; } ?> <div class="bar-graph"> College 1 </div> </div> </div> <div class="aside"> <div class="option"> <div class="option-header"> <p>Colleges Registered</p>