X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fexec%2Fstatistiques_repartition.php;fp=www%2Fecrire%2Fexec%2Fstatistiques_repartition.php;h=fc442935fbd99651a13b92febe7aab48599683d0;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/ecrire/exec/statistiques_repartition.php b/www/ecrire/exec/statistiques_repartition.php new file mode 100644 index 0000000..fc44293 --- /dev/null +++ b/www/ecrire/exec/statistiques_repartition.php @@ -0,0 +1,174 @@ +0 OR $nombre_abs[$id_rubrique]>0){ + $largeur_rouge = floor(($nombre_vis[$id_rubrique] - $nombre_abs[$id_rubrique]) * $taille / $abs_total); + $largeur_vert = floor($nombre_abs[$id_rubrique] * $taille / $abs_total); + + if ($largeur_rouge+$largeur_vert>0){ + + if ($niveau == 0) { + $couleur="#cccccc"; + } + + else if ($niveau == 1) { + $couleur="#eeeeee"; + } + else { + $couleur="white"; + } + echo "
";
+
+
+ if ( $largeur_rouge > 2)
+ echo bouton_block_depliable("$titre","incertain", "stats$id_rubrique");
+ else
+ echo " ",
+ "$titre",
+ " ";
+ echo " | ";
+
+
+ if ($niveau==0 OR 1==1){
+ $pourcent = round($nombre_vis[$id_rubrique]/$abs_total*1000)/10;
+ echo "\n$pourcent% | "; + } + else { echo ""; } + + + echo "\n | ";
+
+
+ echo "\n
|
";
+ $critere = _request('critere');
+ if ($critere == "debut") {
+ $critere = "visites";
+ echo barre_onglets("stat_depuis", "debut");
+ }
+ else {
+ $critere = "popularite";
+ echo barre_onglets("stat_depuis", "popularite");
+ }
+
+ $abs_total=enfants(0, $critere);
+ if ($abs_total<1) $abs_total=1;
+ $nombre_vis[0] = 0;
+
+ echo debut_cadre_relief("statistiques-24.gif",true);
+ echo " ";
+ enfants_aff(0,$taille, $critere);
+ echo " ", + " ",
+ _T('texte_signification'),
+ " ";
+ echo fin_cadre_relief(true);
+ echo " |