Changeset 94425 in spip-zone
- Timestamp:
- Jan 4, 2016, 10:06:26 AM (5 years ago)
- Location:
- _core_/plugins/statistiques
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/statistiques/paquet.xml
r94388 r94425 2 2 prefix="stats" 3 3 categorie="statistique" 4 version="0.7. 0"4 version="0.7.1" 5 5 etat="stable" 6 6 compatibilite="[3.0.0;3.1.*]" -
_core_/plugins/statistiques/prive/squelettes/inclure/stats-visites-data_fonctions.php
r94388 r94425 9 9 10 10 function duree_affiche($duree, $periode) { 11 if (intval($duree)) { 11 if (intval($duree) AND $duree>0) { 12 return $duree; 13 } 14 if ($periode == 'mois' OR $duree<0) { 15 $debut = sql_getfetsel("date", "spip_visites", "", "", "date", "0,1"); 16 $debut = strtotime($debut); 17 $duree = ceil((time() - $debut) / 24 / 3600); 18 12 19 return $duree; 13 20 } 14 21 15 $debut = sql_getfetsel("date", "spip_visites", "", "", "date", "0,1");16 $debut = strtotime($debut);17 $duree = ceil((time()-$debut)/24/3600);18 22 19 return $duree; 23 // par defaut 90 jours 24 return 90; 20 25 } 21 26 -
_core_/plugins/statistiques/prive/squelettes/inclure/stats-visites-jours.html
r94388 r94425 8 8 </span> 9 9 | 10 [<span class="duree">(#GET{duree}) <:info_jours:></span>] | 10 [<span class="duree">(#GET{duree}) <:info_jours:></span>] 11 [(#ENV{duree,0}|non)<a href="[(#SELF|parametre_url{duree,-1})]" title="<:lien_tout_afficher:>">+</a>] 12 | 11 13 <a href="#" class="noajax" onclick="jQuery('.statistiques_visites_quotidiennes .visites').show(); jQuery('.statistiques_visites_quotidiennes .graphResult-wrap, .statistiques_visites_quotidiennes .graphInfo').hide(); return false;"><:statistiques:info_tableaux:></a> | 12 14 <a href="#" class="noajax" onclick="jQuery('.statistiques_visites_quotidiennes .visites').hide(); jQuery('.statistiques_visites_quotidiennes .graphResult-wrap, .statistiques_visites_quotidiennes .graphInfo').show(); return false;"><:statistiques:info_graphiques:></a> -
_core_/plugins/statistiques/prive/stats/visites.html
r94388 r94425 88 88 flot:{ 89 89 xaxis:{ 90 min: [(#ENV{date}|affdate{'Y-m-d 00:00:00'}|strtotime|moins{7776000}|mult{1000})], /* 90 jours */91 90 timeformat:"%d %b", 92 91 minTickSize: [1, "day"]
Note: See TracChangeset
for help on using the changeset viewer.