Skip to content
Extraits de code Groupes Projets
Valider d8bc2404 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

pas de toile dans les stats non plus, remplacement au profit de classes semantiques

parent 117d522c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1763,4 +1763,15 @@ td.message, a.message { ...@@ -1763,4 +1763,15 @@ td.message, a.message {
} }
#liste_plugins div.nomplugin label {display:none;} #liste_plugins div.nomplugin label {display:none;}
#liste_plugins .nomplugin_on {background:#GET{claire};} #liste_plugins .nomplugin_on {background:#GET{claire};}
#liste_plugins .plugin_erreur {background:red;} #liste_plugins .plugin_erreur {background:red;}
\ No newline at end of file
/* exec=statistiques_visites */
.trait_haut {background:#GET{foncee};}
.trait_bas {background:black;}
.trait_moyen {background:#666;}
.couleur_dimanche {background:#GET{foncee};}
.couleur_jour { background:#GET{claire};}
.couleur_janvier {background:#GET{foncee};}
.couleur_mois { background:#GET{claire};}
.couleur_prevision { background:#eee;}
.couleur_realise {background:#999;}
\ No newline at end of file
...@@ -460,11 +460,11 @@ if ($GLOBALS['accepte_svg']) { ...@@ -460,11 +460,11 @@ if ($GLOBALS['accepte_svg']) {
._T('info_visites')." | " ._T('info_visites')." | "
._T('info_moyenne')." $moyenne")); ._T('info_moyenne')." $moyenne"));
if ($difference > 0) { if ($difference > 0) {
echo http_img_rien($largeur,1, 'toile_gris_sombre', $tagtitle); echo http_img_rien($largeur,1, 'trait_moyen', $tagtitle);
echo http_img_rien($largeur, $hauteur_moyenne, '', $tagtitle); echo http_img_rien($largeur, $hauteur_moyenne, '', $tagtitle);
} }
echo echo
http_img_rien($largeur,1,'toile_noire', $tagtitle); http_img_rien($largeur,1,'trait_bas', $tagtitle);
echo "</td>"; echo "</td>";
} }
} }
...@@ -491,32 +491,32 @@ if ($GLOBALS['accepte_svg']) { ...@@ -491,32 +491,32 @@ if ($GLOBALS['accepte_svg']) {
if ($hauteur > 0){ if ($hauteur > 0){
if ($hauteur_moyenne > $hauteur) { if ($hauteur_moyenne > $hauteur) {
$difference = ($hauteur_moyenne - $hauteur) -1; $difference = ($hauteur_moyenne - $hauteur) -1;
echo http_img_rien($largeur, 1,'toile_gris_sombre',$tagtitle); echo http_img_rien($largeur, 1,'trait_moyenne',$tagtitle);
echo http_img_rien($largeur, $difference, '', $tagtitle); echo http_img_rien($largeur, $difference, '', $tagtitle);
echo http_img_rien($largeur,1, "toile_foncee", $tagtitle); echo http_img_rien($largeur,1, "trait_haut", $tagtitle);
if (date("w",$key) == "0") // Dimanche en couleur foncee if (date("w",$key) == "0") // Dimanche en couleur foncee
echo http_img_rien($largeur, $hauteur, "toile_foncee", $tagtitle); echo http_img_rien($largeur, $hauteur, "couleur_dimanche", $tagtitle);
else else
echo http_img_rien($largeur,$hauteur, "toile_claire", $tagtitle); echo http_img_rien($largeur,$hauteur, "couleur_jour", $tagtitle);
} else if ($hauteur_moyenne < $hauteur) { } else if ($hauteur_moyenne < $hauteur) {
$difference = ($hauteur - $hauteur_moyenne) -1; $difference = ($hauteur - $hauteur_moyenne) -1;
echo http_img_rien($largeur,1,"toile_foncee", $tagtitle); echo http_img_rien($largeur,1,"trait_haut", $tagtitle);
if (date("w",$key) == "0") // Dimanche en couleur foncee if (date("w",$key) == "0") // Dimanche en couleur foncee
$couleur = 'toile_foncee'; $couleur = 'couleur_dimanche';
else else
$couleur = 'toile_claire'; $couleur = 'couleur_jour';
echo http_img_rien($largeur, $difference, $couleur, $tagtitle); echo http_img_rien($largeur, $difference, $couleur, $tagtitle);
echo http_img_rien($largeur,1,"toile_gris_sombre", $tagtitle); echo http_img_rien($largeur,1,"trait_moyenne", $tagtitle);
echo http_img_rien($largeur, $hauteur_moyenne, $couleur, $tagtitle); echo http_img_rien($largeur, $hauteur_moyenne, $couleur, $tagtitle);
} else { } else {
echo http_img_rien($largeur, 1, "toile_foncee", $tagtitle); echo http_img_rien($largeur, 1, "trait_haut", $tagtitle);
if (date("w",$key) == "0") // Dimanche en couleur foncee if (date("w",$key) == "0") // Dimanche en couleur foncee
echo http_img_rien($largeur, $hauteur, "toile_foncee", $tagtitle); echo http_img_rien($largeur, $hauteur, "couleur_dimanche", $tagtitle);
else else
echo http_img_rien($largeur,$hauteur, "toile_claire", $tagtitle); echo http_img_rien($largeur,$hauteur, "couleur_jour", $tagtitle);
} }
} }
echo http_img_rien($largeur, 1, 'toile_noire', $tagtitle); echo http_img_rien($largeur, 1, 'trait_bas', $tagtitle);
echo "</td>\n"; echo "</td>\n";
$jour_prec = $key; $jour_prec = $key;
...@@ -535,24 +535,24 @@ if ($GLOBALS['accepte_svg']) { ...@@ -535,24 +535,24 @@ if ($GLOBALS['accepte_svg']) {
$hauteurprevision = ceil($prevision * $rapport); $hauteurprevision = ceil($prevision * $rapport);
// Afficher la barre tout en haut // Afficher la barre tout en haut
if ($hauteur+$hauteurprevision>0) if ($hauteur+$hauteurprevision>0)
echo http_img_rien($largeur, 1, "toile_foncee"); echo http_img_rien($largeur, 1, "trait_haut");
// preparer le texte de survol (prevision) // preparer le texte de survol (prevision)
$tagtitle= attribut_html(supprimer_tags(_T('info_aujourdhui')." $visites_today &rarr; ".(round($prevision,0)+$visites_today))); $tagtitle= attribut_html(supprimer_tags(_T('info_aujourdhui')." $visites_today &rarr; ".(round($prevision,0)+$visites_today)));
// afficher la barre previsionnelle // afficher la barre previsionnelle
if ($hauteurprevision>0) if ($hauteurprevision>0)
echo http_img_rien($largeur, $hauteurprevision,'toile_gris_leger', $tagtitle); echo http_img_rien($largeur, $hauteurprevision,'couleur_prevision', $tagtitle);
// afficher la barre deja realisee // afficher la barre deja realisee
if ($hauteur>0) if ($hauteur>0)
echo http_img_rien($largeur, $hauteur, 'toile_gris_moyen', $tagtitle); echo http_img_rien($largeur, $hauteur, 'couleur_realise', $tagtitle);
// et afficher la ligne de base // et afficher la ligne de base
echo http_img_rien($largeur, 1, 'toile_noire'); echo http_img_rien($largeur, 1, 'trait_bas');
echo "</td>"; echo "</td>";
echo "\n<td style='background-color: black'>",http_img_rien(1, 1),"</td>"; echo "\n<td style='background-color: black'>",http_img_rien(1, 1),"</td>";
echo "</tr></table>"; echo "</tr></table>";
echo "</td>", echo "</td>",
"\n<td ".http_style_background("fond-stats.gif")." valign='bottom'>", http_img_rien(3, 1, 'toile_noire'),"</td>"; "\n<td ".http_style_background("fond-stats.gif")." valign='bottom'>", http_img_rien(3, 1, 'trait_bas'),"</td>";
echo "\n<td>", http_img_rien(5, 1),"</td>"; echo "\n<td>", http_img_rien(5, 1),"</td>";
echo "\n<td valign='top'><div style='font-size:small;' class='verdana1'>"; echo "\n<td valign='top'><div style='font-size:small;' class='verdana1'>";
echo "\n<table cellpadding='0' cellspacing='0' border='0'>"; echo "\n<table cellpadding='0' cellspacing='0' border='0'>";
...@@ -676,7 +676,7 @@ if ($GLOBALS['accepte_svg']) { ...@@ -676,7 +676,7 @@ if ($GLOBALS['accepte_svg']) {
echo "\n<table cellpadding='0' cellspacing='0' border='0'><tr>", echo "\n<table cellpadding='0' cellspacing='0' border='0'><tr>",
"\n<td ".http_style_background("fond-stats.gif").">"; "\n<td ".http_style_background("fond-stats.gif").">";
echo "\n<table cellpadding='0' cellspacing='0' border='0' class='bottom'><tr>"; echo "\n<table cellpadding='0' cellspacing='0' border='0' class='bottom'><tr>";
echo "\n<td class='toile_noire'>", http_img_rien(1, 200),"</td>"; echo "\n<td class='trait_bas'>", http_img_rien(1, 200),"</td>";
// Presentation graphique // Presentation graphique
$decal = 0; $decal = 0;
$tab_moyenne = ""; $tab_moyenne = "";
...@@ -707,47 +707,47 @@ if ($GLOBALS['accepte_svg']) { ...@@ -707,47 +707,47 @@ if ($GLOBALS['accepte_svg']) {
if ($hauteur > 0){ if ($hauteur > 0){
if ($hauteur_moyenne > $hauteur) { if ($hauteur_moyenne > $hauteur) {
$difference = ($hauteur_moyenne - $hauteur) -1; $difference = ($hauteur_moyenne - $hauteur) -1;
echo http_img_rien($largeur, 1, 'toile_gris_sombre'); echo http_img_rien($largeur, 1, 'trait_moyen');
echo http_img_rien($largeur, $difference, '', $tagtitle); echo http_img_rien($largeur, $difference, '', $tagtitle);
echo http_img_rien($largeur,1,"toile_foncee"); echo http_img_rien($largeur,1,"trait_haut");
if (preg_match(",-01,",$key)){ // janvier en couleur foncee if (preg_match(",-01,",$key)){ // janvier en couleur foncee
echo http_img_rien($largeur,$hauteur,"toile_foncee", $tagtitle); echo http_img_rien($largeur,$hauteur,"couleur_janvier", $tagtitle);
} }
else { else {
echo http_img_rien($largeur,$hauteur,"toile_claire", $tagtitle); echo http_img_rien($largeur,$hauteur,"couleur_mois", $tagtitle);
} }
} }
else if ($hauteur_moyenne < $hauteur) { else if ($hauteur_moyenne < $hauteur) {
$difference = ($hauteur - $hauteur_moyenne) -1; $difference = ($hauteur - $hauteur_moyenne) -1;
echo http_img_rien($largeur,1,"toile_foncee", $tagtitle); echo http_img_rien($largeur,1,"trait_haut", $tagtitle);
if (preg_match(",-01,",$key)){ // janvier en couleur foncee if (preg_match(",-01,",$key)){ // janvier en couleur foncee
$couleur = 'toile_foncee'; $couleur = 'couleur_janvier';
} }
else { else {
$couleur = 'toile_claire'; $couleur = 'couleur_mois';
} }
echo http_img_rien($largeur,$difference, $couleur, $tagtitle); echo http_img_rien($largeur,$difference, $couleur, $tagtitle);
echo http_img_rien($largeur,1,'toile_gris_sombre',$tagtitle); echo http_img_rien($largeur,1,'trait_moyen',$tagtitle);
echo http_img_rien($largeur,$hauteur_moyenne, $couleur, $tagtitle); echo http_img_rien($largeur,$hauteur_moyenne, $couleur, $tagtitle);
} }
else { else {
echo http_img_rien($largeur,1,"toile_foncee", $tagtitle); echo http_img_rien($largeur,1,"trait_haut", $tagtitle);
if (preg_match(",-01,",$key)){ // janvier en couleur foncee if (preg_match(",-01,",$key)){ // janvier en couleur foncee
echo http_img_rien($largeur, $hauteur, "toile_foncee", $tagtitle); echo http_img_rien($largeur, $hauteur, "couleur_janvier", $tagtitle);
} }
else { else {
echo http_img_rien($largeur,$hauteur, "toile_claire", $tagtitle); echo http_img_rien($largeur,$hauteur, "couleur_mois", $tagtitle);
} }
} }
} }
echo http_img_rien($largeur,1,'toile_noire', $tagtitle); echo http_img_rien($largeur,1,'trait_bas', $tagtitle);
echo "</td>\n"; echo "</td>\n";
} }
echo "\n<td style='background-color: black'>", http_img_rien(1, 1),"</td>"; echo "\n<td style='background-color: black'>", http_img_rien(1, 1),"</td>";
echo "</tr></table>"; echo "</tr></table>";
echo "</td>", echo "</td>",
"\n<td ".http_style_background("fond-stats.gif")." valign='bottom'>", http_img_rien(3, 1, 'toile_noire'),"</td>"; "\n<td ".http_style_background("fond-stats.gif")." valign='bottom'>", http_img_rien(3, 1, 'trait_bas'),"</td>";
echo "\n<td>", http_img_rien(5, 1),"</td>"; echo "\n<td>", http_img_rien(5, 1),"</td>";
echo "\n<td valign='top'><div style='font-size:small;' class='verdana1'>"; echo "\n<td valign='top'><div style='font-size:small;' class='verdana1'>";
echo "\n<table cellpadding='0' cellspacing='0' border='0'>"; echo "\n<table cellpadding='0' cellspacing='0' border='0'>";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter