X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fexec%2Fstatistiques_lang.php;h=09c9473e237c0f8f23d5a6826740233211e6c134;hp=11dc7777afaf9199f10514a53982515cdb4c43f8;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed
diff --git a/www/ecrire/exec/statistiques_lang.php b/www/ecrire/exec/statistiques_lang.php
index 11dc777..09c9473 100644
--- a/www/ecrire/exec/statistiques_lang.php
+++ b/www/ecrire/exec/statistiques_lang.php
@@ -3,7 +3,7 @@
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2011 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
@@ -72,10 +72,9 @@ function statistiques_lang_ok()
$result = sql_select("lang, SUM(".$critere.") AS cnt", "spip_articles", "statut='publie' ", "lang");
- echo "\n
";
$ifond = 1;
-
$visites_abs = 0;
+ $res = '';
while ($row = sql_fetch($result)) {
$lang = $row['lang'];
@@ -92,23 +91,24 @@ function statistiques_lang_ok()
$couleur="eeeeee";
}
- echo "\n";
+ $res .= "\n
";
$dir=lang_dir($lang,'',' dir="rtl"');
- echo "$pourcent%".traduire_nom_langue($lang)." | ";
+ $res .= "$pourcent%".traduire_nom_langue($lang)." | ";
- echo "";
- echo "\n";
- echo "\n";
- if ($visites_abs > 0) echo "";
- if ($visites>0) echo "";
- echo " | \n";
+ $res .= " | ";
+ $res .= "\n";
+ $res .= "\n";
+ if ($visites_abs > 0) $res .= "";
+ if ($visites>0) $res .= "";
+ $res .= " | \n";
- echo " | ";
- echo "
";
+ $res .= "";
+ $res .= "";
$visites_abs += $visites;
}
}
- echo "
\n";
+ if ($res)
+ echo "\n\n";
//echo ""._T('texte_signification')."";