Example #1
0
								<br /><br /></td>
								
								<td class="ladder_border"></td>

							</tr>
							<tr class="ladder_line" >

								<td class="ladder_border"></td>
							
								<td class="player_lad" colspan="10"> ' . $strLAD_deathscore . '<br />
								' . show_joueur($lad_while->j1, "", "", "", "left", "player_lad_name") . '
								<input type="text" name="ds_j1_' . $i . '" size="1" value="' . $save_j1_split[$i - 1][1] . '" /> 
								-
								<input type="text" name="ds_j2_' . $i . '" size="1" value="' . $save_j1_split[$i - 1][3] . '" />
								
								' . show_joueur($lad_while->j2, "", "", "", "right", "player_lad_name") . '
								<br /></td>
								
								<td class="ladder_border"></td>

							</tr>
					';
                                                                                                                    }
                                                                                                                    // Manche X : maps Y
                                                                                                                    //-if score manche => score manche $I
                                                                                                                    //-if score round => score round
                                                                                                                    //-if score frag => score frag
                                                                                                                }
                                                                                                                //for
                                                                                                                //Faire play :
                                                                                                                if ($ad == 'ad') {
Example #2
0
 if ($tournois->type == "C") {
     echo "<td class=textliste align=center>{$strChampionnat}</td>";
 }
 if ($tournois->type == "E") {
     echo "<td class=textliste align=center>{$strCoupe}</td>";
 }
 echo "<td class=textliste align=center>{$tournois->sigle}</td>";
 $db->select("id");
 $db->from("{$dbprefix}joueurs,{$dbprefix}administre");
 $db->where("{$dbprefix}joueurs.id = {$dbprefix}administre.joueur");
 $db->where("tournois = {$tournois->id}");
 $db->order_by("pseudo");
 $res2 = $db->exec();
 echo "<td class=textliste>";
 while ($joueur = $db->fetch($res2)) {
     echo show_joueur($joueur->id);
 }
 echo "</td>";
 $nbinscrits = nb_inscrits_tournois($tournois->id);
 $nbplaces = nb_places_tournois($tournois->id);
 if ($tournois->modeequipe == 'E') {
     $equipeX = "{$strEquipes}";
 } elseif ($tournois->modeequipe == 'J') {
     $equipeX = "{$strJoueurs}";
 }
 echo "<td class=textliste align=center>";
 if ($nbinscrits > $nbplaces) {
     echo "<font color=red>{$nbinscrits}</font> / {$nbplaces}";
 } else {
     echo "{$nbinscrits} / {$nbplaces}";
 }
Example #3
0
                              while ($rech = $db->fetch($res)) {
                                  if ($i_search < $nb_max - 1) {
                                      if ($rech->topic != '' || $rech->topic != NULL) {
                                          if ($rech_ps == 'NO') {
                                              echo '<br><table border=1 cellpadding="4" cellspacing="2" class="bordure1" width="90%">';
                                              echo '<tr>
 <td class="textforum"></td><td class="headerfiche"><div align=left><b>' . $strTopic . '</b></div></td>
 <td class="headerfiche" width=1%><div align=right><font size=-4><b>' . $strFLast . '</b></font></div></td>
 </tr>';
                                          }
                                          $rech_ps = 'OK';
                                          $topid = $rech->topid;
                                          $tit = $rech->topic;
                                          $titre = remove_XSS(base64_decode($tit));
                                          $cat = $rech->cattopic;
                                          $auteur = show_joueur($rech->auteur);
                                          // requete interne
                                          $db->select("reserved");
                                          $db->from("{$dbprefix}forum WHERE (cattopic='{$cat}' AND cattitle != '')");
                                          $resr2 = $db->exec();
                                          while ($datar2 = $db->fetch($resr2)) {
                                              $reserved = $datar2->reserved;
                                          }
                                          //en requete interne
                                          $date = strftime("%c", $rech->topic_date);
                                          if ($rech->topic != '' || $rech->topic != NULL) {
                                              if ($grade['a'] == 'a' || $grade['b'] == 'b') {
                                                  $is_able_to_see = 'yes';
                                              }
                                              if (eregi('m', $reserved) && $grade['m'] == 'm') {
                                                  $is_able_to_see = 'yes';
Example #4
0
     echo '</table>';
 }
 echo '<table cellspacing=0 cellpadding=0 border=0 class="liste"><tr valign="top">';
 if ($op == 'admin') {
     echo "<form name='liste' method=post action=?page=joueurs&op=status>";
 }
 for ($i = 0; $i < $col_joueurs; $i++) {
     echo '<td>';
     echo '<table border="0" cellpadding="0" cellspacing="0" class="bordure1"><tr><td>';
     echo '<table cellspacing="1" cellpadding="2" border="0">';
     echo "<tr><td class=\"headerliste\">#</td><td width=\"120\" class=\"headerliste\">{$strPseudo}</td><td class=\"headerliste\">{$strVille}</td><td class=\"headerliste\">{$strAge}</td><td class=\"headerliste\">{$strStatus}</td></tr>";
     for ($j = $i; $j < count($tab_joueurs); $j = $j + $col_joueurs) {
         echo '<tr>';
         echo '<td class="textliste" align="center">' . $tab_joueurs[$j]->id . '</td>';
         echo '<td class="textliste">';
         echo '<div style="clear: both"><div style="float: left">' . show_joueur($tab_joueurs[$j]->id, $op);
         //supression de l'étoile
         //if($tab_joueurs[$j]->admin=='O') echo '*';
         if ($tab_joueurs[$j]->carton == 'aucun') {
             echo "";
         } else {
             echo "<A href=\"?page=reglements\" onMouseOver=\"AffBulle('<b>{$strCarton} " . $tab_joueurs[$j]->carton . " </b>: " . $tab_joueurs[$j]->sanction . "')\" onMouseOut=\"HideBulle()\"><img src=\"images/cartons/" . $tab_joueurs[$j]->carton . ".gif\" border=\"0\" align=\"absmiddle\"></A>";
         }
         echo '</div>';
         if ($op == 'admin' && nb_tournois_joueur($tab_joueurs[$j]->id) == 0 && nb_equipes_joueur($tab_joueurs[$j]->id) == 0) {
             echo '<div style="float: right">&nbsp;<a href="?page=joueurs&op=delete&id=' . $tab_joueurs[$j]->id . "\" onclick=\"return confirm('{$strConfirmEffacerJoueur}');\">[{$strS}]</a></div>";
         }
         echo '</div></td>';
         echo '<td class="textliste" align="center">' . $tab_joueurs[$j]->ville . '</td>';
         echo '<td class="textliste" align="center">' . $tab_joueurs[$j]->age;
         if ($tab_joueurs[$j]->age) {
Example #5
0
 $res = $db->exec();
 if ($db->num_rows($res) != 0) {
     echo "<table align=center width=300 border=0 cellspacing=0 cellpadding=0>";
     echo "<tr><td class=title align=center>{$strCommentaires}</td></tr>";
     echo "<tr><td>";
     $nbCommentaires = 0;
     while ($commentaire = $db->fetch($res)) {
         $nbCommentaires++;
         $date = strftime(DATESTRING1, $commentaire->date);
         $date = "{$strLe} " . $date;
         $contenu = BBcode($commentaire->contenu);
         $contenu = BBcode($commentaire->contenu);
         echo "<table width=300 border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>";
         echo "<table width=100% border=0 cellspacing=1 cellpadding=2>";
         echo "<tr>";
         echo "<td class=text><div style=\"clear: both\"><div style=\"float: left\">#" . $nbCommentaires . " - {$strPostePar} <b>" . show_joueur($commentaire->auteur, $op) . "</b> " . $date . "</div>";
         if ($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['n'] == 'n') {
             echo "<div style=\"float: right\">&nbsp;<a href=?page=news&op=delete_commentaire&id=" . $commentaire->id . "&news=" . $news->id . " onclick=\"return confirm('{$strConfirmEffacerCommentaire}');\">[{$strS}]</a></div>";
         }
         echo "</div></td>";
         echo "</tr>";
         echo "<tr>";
         echo "<td class=text>" . stripslashes($contenu) . "<br><br></td>";
         echo "</tr>";
         echo "</table>";
         echo "</td></tr></table>";
     }
     if ($op) {
         $p = "op={$op}&";
     } else {
         $p = "";
Example #6
0
        echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>";
        echo "<table border=0 cellspacing=1 cellpadding=2 width=500 align=center>";
        echo "<tr>";
        echo "<td class=headerliste>{$strTitre}</td>";
        echo "<td class=headerliste width=120>{$strEmetteur}</td>";
        echo "<td class=headerliste width=10%>{$strDate}</td>";
        echo "</tr>";
        if ($db->num_rows($res) != 0) {
            while ($message = $db->fetch($res)) {
                $date = strftime(DATESTRING1, $message->date);
                echo "<tr><td class=textliste><div style=\"clear: both\"><div style=\"float: left\">";
                if ($message->lu == "1") {
                    echo "<a href=?page=messagerie&op=lire&id={$message->id}><img src=images/mess.png border=0 align=absmiddle> {$message->titre}</a></div>";
                } else {
                    echo "<a href=?page=messagerie&op=lire&id={$message->id}><img src=images/nouveaumess.png border=0 align=absmiddle> <b>{$message->titre}</b></a></div>";
                }
                echo "<div style=\"float: right\">&nbsp;<a href=\"?page=messagerie&op=delete&id={$message->id}\" onclick=\"return confirm('{$strConfirmEffacerMessage}');\">[{$strS}]</a></div></div>";
                echo "</td>";
                echo "<td class=textliste >" . show_joueur($message->emetteur) . "</td>";
                echo "<td class=textliste><center>{$strLe} {$date}</td>";
                echo "</tr>";
            }
        }
        echo "</table>";
        echo "</td></tr></table>";
        echo "<table border=0 cellspacing=2 cellpadding=2 align=center>";
        echo "<tr><td class=info><img src=images/mess.png align=absmiddle> {$strMessageLu}</td><td width=20></td><td class=info><img src=images/nouveaumess.png align=absmiddle> {$strMessageNouveau}</td></tr>";
        echo "</table>";
    }
    echo "<br><img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=javascript:back() class=action>{$strRetour}</a><br>";
}
Example #7
0
 $db->order_by("{$dbprefix}appartient.status");
 $joueurs = $db->exec();
 if ($db->num_rows($joueurs) != 0) {
     echo "<td>";
     echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>";
     echo "<table cellspacing=1 cellpadding=2 border=0>";
     echo "<tr><td class=headerliste>{$strJoueurs} {$jeu->sigle} <img src=\"images/jeux/{$jeu->icone}\" border=0 align=absmiddle></td></tr>";
     while ($joueur = $db->fetch($joueurs)) {
         $status_j = $joueur->status;
         echo "<tr>";
         echo "<td class=textliste width=120>";
         echo "<div style=\"clear: both\"><div style=\"float: left\">";
         if ($status_j == '5') {
             echo show_joueur($joueur->id, $op, 'I');
         } else {
             echo show_joueur($joueur->id, $op);
         }
         if ($status_j == '1') {
             echo '<small><sup>*</sup></small>';
         }
         if ($status_j == '2') {
             echo '<small><sup>(wa)</sup></small>';
         }
         if ($status_j == '4') {
             echo '<small><sup>(r)</sup></small>';
         }
         if ($joueur->carton == 'aucun') {
             echo "";
         } else {
             echo " <A href=\"?page=reglements\" onMouseOver=\"AffBulle('<b>Carton {$joueur->carton} </b>: {$joueur->sanction}')\" onMouseOut=\"HideBulle()\"><img src=images/cartons/{$joueur->carton}.gif border=0 align=align=absmiddle></A>";
         }
Example #8
0
                 $tab_rank_id = $tab_rank_split[0];
                 $tab_rank_egal = trim($tab_rank_split[1]);
                 if ($tab_rank_id <= $joueur->forum_post) {
                     if (eregi('.gif', $tab_rank_egal) || eregi('.png', $tab_rank_egal) || eregi('.jpg', $tab_rank_egal) || eregi('.jpeg', $tab_rank_egal)) {
                         $rank_av = "<img src='themes/" . $s_theme . "/images/forum_rank/" . $tab_rank_egal . "' border='0' />";
                     } else {
                         $rank_av = $tab_rank_egal;
                     }
                 }
             }
         }
         //for
     }
     $message_id++;
     echo '<table border=0 cellpadding="4" cellspacing="1" width=100%>';
     echo '<tr><td class="textforum2" width="25%">' . show_joueur($datar->auteur) . '</td>';
     echo '<td class="textforum3">';
     echo "<div align='left' style='float:left;padding-top:4px;padding-bottom:4px'>";
     echo '' . $strLe . ' ' . $date . '';
     echo '</div>';
     echo "<div align='right' style='float:right;padding-top:4px;padding-bottom:4px'>";
     echo $edit;
     echo '</div></td></tr>';
     echo '<tr><td class="textforum4" width="25%">' . show_avatar($joueur->avatar_img) . '<br><div align="center">' . $rank_av . '<br>' . $joueur->forum_userrank . '<br><div align="left">' . $strNbpost . ' : ' . $joueur->forum_post . '</td>';
     echo '<td class="textforum">' . bbcode(stripslashes($datar->message)) . '';
     if ($datar->edit == 'O') {
         echo "<br><br><br><br><font size='-3'>&nbsp;<b>{$strFedit}</b> " . strftime("%c", $datar->edit_date) . " {$strBy} " . nom_joueur($datar->edit_by) . "</font>";
     }
     echo '</td></tr>';
     echo '</table>';
 }
Example #9
0
 echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1 width=120>";
 echo "<tr><td>";
 echo "<table cellspacing=1 cellpadding=2 border=0 width=100%>";
 echo "<tr><td class=headerliste>";
 if ($tab_tournois[$j]->icone) {
     echo "<img src=\"images/jeux/" . $tab_tournois[$j]->icone . "\" align=absmiddle>&nbsp;" . $tab_tournois[$j]->nom . "&nbsp;&nbsp;{$strAdmins}</td></tr>";
 }
 $db->select("id");
 $db->from("{$dbprefix}joueurs,{$dbprefix}administre");
 $db->where("{$dbprefix}joueurs.id = {$dbprefix}administre.joueur");
 $db->where("tournois = " . $tab_tournois[$j]->id);
 $db->order_by("pseudo");
 $res2 = $db->exec();
 while ($joueur = $db->fetch($res2)) {
     echo "<tr><td class=textliste>";
     echo "<div style=\"clear: both\"><div style=\"float: left\">" . show_joueur($joueur->id, 'admin') . "</div>";
     echo "<div style=\"float: right\">&nbsp;<a href=?page=admin&op=delete&joueur={$joueur->id}&id=" . $tab_tournois[$j]->id . ">[{$strS}]</a></div>";
     echo "</div></td></tr>";
 }
 echo "<form method=post action=?page=admin>";
 echo "<tr><td class=textliste>";
 echo "<input type=hidden name=op value=add>";
 echo "<input type=hidden name=id value=" . $tab_tournois[$j]->id . ">";
 echo "<select name=joueur>";
 $db->select("pseudo,id");
 $db->from("\t{$dbprefix}joueurs");
 $db->where("etat <> 'C'");
 $db->order_by("pseudo");
 $res2 = $db->exec();
 while ($joueur = $db->fetch($res2)) {
     if (!admin_tournois($joueur->id, $tab_tournois[$j]->id)) {