Example #1
0
 //if($op == "admin") verif_admin_tournois($s_joueur,$s_tournois);
 if ($op == "admin") {
     verif_admin_tournois($s_joueur, $s_tournois, $grade['a'], $grade['b'], $grade['t']);
 }
 if ($op == "admin") {
     echo "<p class=title>.:: {$strAdminTournois} ::.</p>";
 } else {
     echo "<p class=title>.:: {$strTournois} ::.</p>";
 }
 $db->select("{$dbprefix}tournois.*,sigle,icone");
 $db->from("{$dbprefix}tournois LEFT JOIN {$dbprefix}jeux on ({$dbprefix}tournois.jeux= {$dbprefix}jeux.id)");
 $db->order_by("nom");
 $res = $db->exec();
 if ($db->num_rows($res) != 0) {
     echo "<table cellspacing=0 cellpadding=0 border=0>";
     echo "<tr><td class=title>" . nb_tournois() . " {$strTournois}</td></tr>";
     echo "</table>";
     echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>";
     echo "<table cellspacing=1 cellpadding=2 border=0 width=100%>";
     echo "<tr>";
     echo "<td class=headerliste width=200>{$strTournois}</td>";
     echo "<td class=headerliste>{$strType}</td>";
     echo "<td class=headerliste>{$strJeu}</td>";
     echo "<td class=headerliste>{$strAdmins}</td>";
     echo "<td class=headerliste>{$strInscrits}</td>";
     echo "<td class=headerliste width=1%>{$strStatus}</td>";
     echo "</tr>";
     while ($tournois = $db->fetch($res)) {
         echo "<tr>";
         echo "<form>";
         echo "<input type=hidden name=id value={$tournois->id}>";
Example #2
0
*/
if (eregi("block_stats.php", $_SERVER['PHP_SELF'])) {
    die("You cannot open this page directly");
}
global $config, $s_joueur, $s_theme;
global $strStatistiques, $strJoueurs, $strInscrits, $strTournois, $strNews, $strLiens, $strDownloads, $strPagesVues;
global $compteur;
theme_openblock("<img src=\"themes/{$s_theme}/images/icon_stats.gif\" align=\"absmiddle\" alt=\"stats\"> {$strStatistiques}");
$nbnews = nb_news();
$nbdownloads = nb_downloads();
$nbliens = nb_liens();
$nbjoueurs = nb_joueurs();
$nbplaces = $config['places'];
$nbinscrits = nb_joueurs_inscrit();
$nbequipes = nb_equipes();
$nbtournois = nb_tournois();
echo "<dl><li class=\"lib\">{$strJoueurs} : {$nbjoueurs}</li>";
echo "<li class=\"lib\">{$strInscrits} : {$nbinscrits}/{$nbplaces}</li>";
affiche_bar($nbinscrits, $nbplaces, 100);
echo "<li class=\"lib\">{$strTournois} : {$nbtournois}</li>";
echo "<li class=\"lib\">{$strEquipes} : {$nbequipes}</li>";
if ($config['news']) {
    echo "<li class=\"lib\">{$strNews} : {$nbnews}</li>";
}
if ($config['liens']) {
    echo "<li class=\"lib\">{$strLiens} : {$nbliens}</li>";
}
if ($config['download']) {
    echo "<li class=\"lib\">{$strDownloads} : {$nbdownloads}</li></dl>";
}
echo "<hr width=\"95%\">";