10-12-2012, 19:25
Bonsoir
Je voudrait savoir sur quelle template ou sur quelle partie dois-je mettre mon tableau de classement :
<?
////////////////////////////
// Fichier généré par Top-Booster ( http://www.top-booster.com )
// Votes du 03/12/2012 au 09/12/2012
//
////////////////////////////
$Classement = Array (
1 =>
Array (
"Pseudo" => "Tony_Lewis",
"IDmark" => "7",
"ID+mark" => "0",
"Total" => "7"
),
2 =>
Array (
"Pseudo" => "aaa",
"IDmark" => "1",
"ID+mark" => "1",
"Total" => "2"
),
3 =>
Array (
"Pseudo" => "Michael_Campell",
"IDmark" => "1",
"ID+mark" => "0",
"Total" => "1"
),
4 =>
Array (
"Pseudo" => "Mike.K",
"IDmark" => "1",
"ID+mark" => "0",
"Total" => "1"
));
// Classement en fonction de Total (IDmark et ID+mark cumulés)
$Indicateur=3;
// Titre du classement
$Titre_rapport="King Of RolePlay - Classement Total";
$Text_haut="Votes du 03/12/2012 au 09/12/2012";
/////////////////////////////////////////////////
// Exemple de script PHP parsant les résultats
/*
echo "
<style type='text/css'>
table.RT_classement { width:600px;
padding:0px;
margin:0px;
text-align:center;
font: normal normal 11px verdana, arial, sans-serif;
background:#333399;
color:#000066;
}
table.RT_classement tr
{
padding:5px;
margin:0px;
background:#E0E0FF;
color:#000066;
}
table.RT_classement tr.entete
{
padding:5px;
margin:0px;
font: normal bold 11px verdana, arial, sans-serif;
background:#CCCCFF;
color:#000066;
}
</style>";
echo "<center>";
echo "<b>King Of RolePlay - Classement Total</b><br />";
echo "Votes du 03/12/2012 au 09/12/2012<br /><br />";
echo "<table class='RT_classement' >";
echo "<tr class='entete'>";
echo "<td >";
echo "<b>Classement</b>";
echo "</td>";
echo "<td >";
echo "<b>Pseudo</b>";
echo "</td>";
echo "<td >";
echo "<b>Votes de l'intérieur du site</b>";
echo "</td>";
echo "<td >";
echo "<b>Votes de l'extérieur du site</b>";
echo "</td>";
echo "<td >";
echo "<u>";
echo "<b>Total</b>";
echo "</u>";
echo "</td>";
echo "</tr>";
if (count($Classement));
{
foreach($Classement as $cle => $valeur)
{
echo "<tr >";
echo "<td>";
echo "$cle";
echo "</td>";
echo "<td>";
echo $valeur["Pseudo"];
echo "</td>";
echo "<td>";
echo $valeur["IDmark"];
echo "</td>";
echo "<td>";
echo $valeur["ID+mark"];
echo "</td>";
echo "<td>";
echo $valeur["Total"];
echo "</td>";
echo "</tr>";
}
}
echo "</table>";
echo "</center>";
*/
// FIN Exemple de script PHP exploitant les résultats
/////////////////////////////////////////////////////
?>
Merci