forked from science-ation/science-ation
Show registered teams on admin schedule
Move more stuff to common include
This commit is contained in:
parent
7e749f0295
commit
dd230b2cdf
@ -3,8 +3,8 @@
|
||||
This file is part of the 'Science Fair In A Box' project
|
||||
SFIAB Website: http://www.sfiab.ca
|
||||
|
||||
Copyright (C) 2005 Sci-Tech Ontario Inc <info@scitechontario.org>
|
||||
Copyright (C) 2005 James Grant <james@lightbox.org>
|
||||
Copyright (C) 2010 Youth Science Ontario <info@scitechontario.org>
|
||||
Copyright (C) 2010 James Grant <james@lightbox.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public
|
||||
@ -24,10 +24,9 @@
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
require_once("../user.inc.php");
|
||||
user_auth_required('committee', 'admin');
|
||||
require_once("../schedule.inc.php");
|
||||
|
||||
$ROWHEIGHT=20;
|
||||
$BORDERSIZE=2;
|
||||
user_auth_required('committee', 'admin');
|
||||
|
||||
if($_GET['action']=="loadschedule") {
|
||||
$date=$_POST['date'];
|
||||
@ -104,9 +103,7 @@
|
||||
if($r->eventtype=="scienceolympic") {
|
||||
echo "<br />";
|
||||
echo i18n("Teams")." : ";
|
||||
//FIXME: get # actually registered
|
||||
$regteams=0;
|
||||
|
||||
$regteams=getNumRegistrations($r->id);
|
||||
$maxteams=$r->somaxteams;
|
||||
echo i18n("%1 of %2",array($regteams,$maxteams));
|
||||
|
||||
|
@ -21,6 +21,10 @@
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
$ROWHEIGHT=20;
|
||||
$BORDERSIZE=2;
|
||||
|
||||
|
||||
function getTeamEventStatus($teamid,$scheduleid) {
|
||||
global $conference;
|
||||
$q=mysql_query("SELECT * FROM schedule_registrations WHERE so_teams_id='$teamid' AND schedule_id='$scheduleid' AND conferences_id='{$conference['id']}'");
|
||||
|
@ -32,9 +32,6 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode']){
|
||||
$school=mysql_fetch_object($q);
|
||||
if($school) {
|
||||
|
||||
$ROWHEIGHT=20;
|
||||
$BORDERSIZE=2;
|
||||
|
||||
if($_GET['action']=="loadschedule") {
|
||||
$date=$_POST['date'];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user