File size: 2.72Kb
<?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
************************************************************/
include($functions_file);
echo("<p><center><font size=\"+1\">General</font><br>");
echo("<br>- <a href=\"" . $path . "champions.php\">Champions</a>");
echo("<br>- <a href=\"" . $path . "p_signup.php\">Create Login</a>");
//display only if
if($use_activation_key);
echo("<br>- <a href=\"" . $path . "p_signup.php?form=activate\">Activate Login</a>");
echo("<br>- <a href=\"" . $path . "passwd_mailer.php\">Password Mailer</a>");
echo("</P>");
//This script will generate the Current Tourneys Menu
$sql = "SELECT id,tname,tdatetime,status from " . $GLOBALS['dbtable_header'] . "info where status > 0 and status < 9 order by tdatetime";
$tourney = get_mysql_rows($sql,"no");
if($tourney){
$nb_active = count($tourney);
for($i=0;$i<$nb_active;$i++){
echo("<p><center><font size=\"+1\">" . $tourney[$i][1] . "</font>");
echo("<br><font size=\"-1\">(" . $tourney[$i][2] . ")</font>");
if($print_tourney_status)
echo("<br><font size=\"-1\">[" . get_status_name($tourney[$i][3]) . "]</font>");
echo("</center>");
print_menu_tourney($tourney[$i][0]);
echo("</p>");
}
}
else echo("<br>No<br>Active<br>Tourney<br>Now.");
function print_menu_tourney($tourney_id){
$path = "";
$tou_type = get_tourney_type($tourney_id);
echo("<br>- <a href=\"" . $path . "details.php?tourney_id=" . $tourney_id . "\">Details</a>");
echo("<br>- <a href=\"" . $path . "signup.php?tourney_id=" . $tourney_id . "\">Sign up</a>");
if($tou_type == "team")
echo("<br>- <a href=\"" . $path . "tourney_team_editor.php?tourney_id=" . $tourney_id . "\">Edit Team</a>");
echo("<br>- <a href=\"" . $path . "checkin.php?tourney_id=" . $tourney_id . "\">Check In</a>");
echo("<br>- <a href=\"" . $path . "contestants.php?tourney_id=" . $tourney_id . "\">Contestants</a>");
echo("<br>- <a href=\"" . $path . "reportloss.php?tourney_id=" . $tourney_id . "\">Report Loss</a>");
echo("<br>- <a href=\"" . $path . "withdraw.php?tourney_id=" . $tourney_id . "\">WithDraw</a>");
echo("<br>- <a href=\"" . $path . "grid.php?tourney_id=" . $tourney_id . "\" target=\"grid\">Grid</a>");
}
?>