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