Files
resatennis_tyroltenn/www/site_inscription/tournoiExiste_ancien.php

32 lines
1.3 KiB
PHP
Executable File

<?PHP
$id_joueur=$_GET['id_joueur'];
$id_tournoi=$_GET['id_tournoi'];
echo "tournoi : ",$id_tournoi;
$tournoi=$_GET['tournoi'];
list($id_tournoi,$nom_club,$debut_aux,$fin_aux,$saison)=explode("&",$tournoi);
//echo $id_club.",".$nom_club.",".$debut_aux.",".$fin_aux."<br>";
$debut_exp = explode('/',$debut_aux);
$fin_exp = explode('/',$fin_aux);
//////////////////////POUR TOUTE LES REPONCES ON VERIFIE SI LA DATE EST DEPACEE///////////////////////
if ( isset($date_limite) and $date_limite < time()){
$tard=1;
}
//echo $date_limite."<". time()."<br>";
if ($tard){
/////////////////////////////////SI DATE DEPASSEE ON RETOURNE EN ARRIERE//////////////////////////////////////////////////////
$erreur="<center><font color=00ff00><h3><b>Le tournoi est termine.</b></h3></font></center>";break;
include ("listeTournois_historique.php");
}
else{
//////////////////////////////////SINON ON CONTINUE//////////////////////////////////////////////////////////////////////////////////////////////////
$erreur="";
////////////////////////SI NON ON CHANGE LE FORMAT DES DATES/////////////////////////////////////////////////////
$debut=$debut_exp[2]."-".$debut_exp[1]."-".$debut_exp[0];
$fin=$fin_exp[2]."-".$fin_exp[1]."-".$fin_exp[0];
echo "<input type=hidden name=id_tournoi value='".$id_tournoi."'>";
include ("quelTournoi.php");
}
?>