echo ">{$strNon}"; echo "</td></tr>"; echo "<tr><td class=footerfiche colspan=2 align=center><input type=submit value=\"{$strModifier}\"> <input type=button value=\"{$strRetour}\" onclick=\"document.location='?page=tournois&op=admin'\"></td></tr>"; echo "</table>"; echo "</td></tr></table>"; echo "</td></tr></table>"; echo "</form>"; show_consignes($strTournoisModifyConsignes); } else { if ($op == "select") { global $Sess; //SessionDelVar("s_tournois"); $s_tournois = $id; $Sess->tournois($id, $s_joueur); //SessionSetVar("s_tournois",$s_tournois); $status = status_tournois($s_tournois); if ($status == "I") { js_goto("?page=inscriptions"); } elseif ($status == "P" || $status == 'F') { js_goto("?page=matchs_liste&status=D"); } elseif ($status == "T" && $type_tournois == "C") { js_goto("?page=matchs_poules"); } elseif ($status == "T" && ($type_tournois == "E" || $type_tournois == "T")) { js_goto("?page=matchs_finales&x=0"); } else { js_goto("?page=news"); } } else { /*** verification securite ***/ //if($op == "admin") verif_admin_tournois($s_joueur,$s_tournois); if ($op == "admin") {
$db->exec(); $db->insert("{$dbprefix}participe (tournois,equipe,poule,status,seed,date)"); $db->values("{$id},{$s_joueur},null,'P',null," . time()); $db->exec(); } } } /*** redirection ***/ js_goto("?page=inscriptions"); } /******************************************************** * DesInscription de joueurs/equipes par eux meme */ if ($op == "desinscire") { /*** le tournois est en inscription manuel ***/ if (modeinscription_tournois($id) == 'J' && status_tournois($id) == 'I') { /*** le tournois est par equipe (le manager ki desinscrit) ***/ if (modeequipe_tournois($id) == 'E' && participe($equipe, $id)) { /*** verification securite ***/ verif_manager($equipe, $s_joueur); $db->delete("{$dbprefix}participe"); $db->where("tournois = {$s_tournois}"); $db->where("equipe = {$equipe}"); $db->exec(); } elseif (modeequipe_tournois($id) == 'J' && participe($s_joueur, $id)) { $db->delete("{$dbprefix}participe"); $db->where("tournois = {$s_tournois}"); $db->where("equipe = {$s_joueur}"); $db->exec(); } }