<?php
/***********************************************************
* This file was created by Jйrфme Poulin under the phpmytourney
* project.
* You can modify and redistribute this file as long as this
* copyright notice stays in the file.
*
* If you want to do major upgrades on my script, please contact
* me and we could work together.
*
* Jйrфme Poulin
* Student University of Sherbrooke
* [email protected] <== dont use for support !!!
* http:/phpmytourney.sourceforge.net/ <== use sourceforce forum for support
*
* phpMyTourney <C> 2001-2002
************************************************************/
if(!isset($tourney_id)) echo("ERROR : page not properly called");
else{
include('config.inc');
include($header_file);
$status = get_status($tourney_id);
$tou_type = get_tourney_type($tourney_id);
$nb_checkin = get_nb_checked($tourney_id);
$nb_signup = get_nb_signup($tourney_id);
echo("<center><P>There is " . $nb_signup . " " . $tou_type . "s signed up,<br> ");
echo($nb_checkin . " are checked in. </center>");
//Show the contestants with a link to personal page..
$sql = "SELECT id, checkin from " . $GLOBALS['dbtable_header'] . "signup_" . $tourney_id . " ORDER BY ordre";
$tcontest = get_mysql_rows($sql,"no");
if($tcontest){
$header[0][] = "Name";
$header[0][] = "Checked in?";
if($tou_type == "team") $header[0][] = "Team Members";
$nb = count($tcontest);
$translate_fct = "translate_to_" . $tou_type . "_page_link";
$get_name_fct = "get_" . $tou_type . "_name";
for($i=0;$i<$nb;$i++){
$pid = $tcontest[$i][0];
if($tou_type == "team"){
$name = $get_name_fct($pid);
$tcontest[$i][2] = get_tourney_team_list($pid);
}
else
$name = $get_name_fct($pid);
//$tcontest[$i][0] = $translate_fct($name);;
$tcontest[$i][0] = translate_to_email_link($name);
if ($tcontest[$i][1] == 0) $tcontest[$i][1] = "No";
else $tcontest[$i][1] = "Yes";
}
$table = array_merge($header,$tcontest);
print_table($table,"Contestants");
}
else print_error("No one signed up yet");
if($status==3)
echo("<br><br>All THE RANKED PLAYERS IN SINGLES LEAGUE, will automaticly be put here when checkin will start");
do_not_remove_please();
include($footer_file);
}