Пример #1
0
require "college.register.php";
$s = new scoring();
$c = new college();
$events = $s->getEventList();
$n = $s->getMaxEvents();
?>
		<div class="main-container">
			<div class="content">
				<div class="option-container">
				
					<?php 
for ($i = 0; $i < $n; $i++) {
    echo "\n\t\t\t\t\t\t\t<div class='option' style='width:100%; margin:1px;'>\n\t\t\t\t\t\t\t\t<div class='option-header'>\n\t\t\t\t\t\t\t\t\t<p>" . $events[$i]['e_id'] . ")  " . $events[$i]['event_name'] . " </p>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</div>";
    $scores = $s->getScoreSheets($events[$i]['e_id']);
    for ($j = 0; $j < $scores[0]['max']; $j++) {
        echo "<a href='http://sygma.sdm.ac.in/admin/sheet.php?rid=" . $scores[$j]['r_id'] . "&eid=" . $events[$i]['e_id'] . "' class='link-row'>" . $s->getRoundNameFromID($scores[$j]['r_id']) . " </a>";
    }
    echo "</div>";
}
?>
			</div>
		</div>
			<div class="aside">
				<div class='option'>
				<div class='option-header'>
				<h5>Create New Scoresheet</h5>
				</div>
					<form action ="score_sheet.php" method="get">
						
						<select name="event" placeholder="event" required>
							<?php 
Пример #2
0
	<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>
				<th style="max-width:60px;">sno</th>