Exemplo n.º 1
0
					
					<input type="hidden" name="type_lad" value="1"><input type="submit" value="' . $strValider . '">';
                    echo '</form><hr>';
                } else {
                    $db->select("*");
                    $db->from("{$dbprefix}lad_part WHERE ladder_id='{$lad_id}'");
                    $res = $db->exec();
                    echo '<hr><form method="post" name="formulaire1" action="?page=ladder&op=admin_versus&lad_id=' . $lad_id . '">';
                    echo '<select name="j1v">';
                    while ($lad_w = $db->fetch($res)) {
                        echo '<option value="' . $lad_w->joueur_id . '">' . nom_equipe($lad_w->teamid) . '</option>';
                    }
                    echo '</select>';
                    echo '<select name="j2v">';
                    while ($lad_w = $db->fetch($res)) {
                        echo '<option value="' . $lad_w->joueur_id . '">' . nom_equipe($lad_w->teamid) . '</option>';
                    }
                    echo '</select>';
                    echo '<br>' . $strDate . '
					<select name="j">';
                    for ($i = 1; $i < 32; $i++) {
                        if ($i == date("d")) {
                            $select = 'selected';
                        } else {
                            $select = '';
                        }
                        if ($i < 10) {
                            echo '<option value="0' . $i . '" ' . $select . '>0' . $i . '</option>';
                        } else {
                            echo '<option value="' . $i . '" ' . $select . '>' . $i . '</option>';
                        }
Exemplo n.º 2
0
     continue;
 }
 /** choix du camps **/
 if ($matchab->RandomSides == 1) {
     if (round(rand(0, 1))) {
         $cache = $match->equipe1;
         $match->equipe1 = $match->equipe2;
         $match->equipe2 = $cache;
     }
 } elseif ($matchab->RandomSides == 0) {
     $cache = $match->equipe1;
     $match->equipe1 = $match->equipe2;
     $match->equipe2 = $cache;
 }
 $match_team_x = nom_equipe($match->equipe1);
 $match_team_y = nom_equipe($match->equipe2);
 /** insertion du match dans AB*/
 $dbab->insert("matchs (MatchId, Player1Name, Player2Name, Map, ServerId, Password, ScheduledDate, MaxRounds, Rules, AllowTie, BreakPoint, RandomSides)");
 $dbab->values("{$manche->id}, '{$match_team_x}', '{$match_team_y}', '{$manche->map}', {$match->serveur}, '{$match->passwd}', '{$heure}', '{$abrulecfg}', '{$abrule}', {$abprolongation}, {$abbreakpoint}, {$abcampscfg}");
 $dbab->exec();
 //$dbab->insert("matchs (MatchId, Player1Name, Player2Name, Map, ServerId, Password, ScheduledDate, MaxRounds, AllowTie)");
 //$dbab->values("$nextmanche->id, '$match_team_x', '$match_team_y', '$nextmanche->map', $match->serveur, '$match->passwd', '$matchab->match_date_to_start', '$matchab->match_mr', $matchab->match_allow_tie");
 //$dbab->exec();
 //if($matchab->match_timeload==1) {
 //$heure_now  = date(Y)."-".date(m)."-".date(d)." ".date(H).":".date(i);
 /** mise a jour de l'horaire **/
 //$dbab->update("matchs");
 //$dbab->set(" match_timeload = 1");
 //if($heure=='') $dbab->set("ScheduledDate = '$heure_now'");
 //$db->where("MatchId = $nextmanche->id");
 //$dbab->exec();