[SPIP] ~version 3.0.7-->3.0.10
[ptitvelo/web/www.git] / www / plugins-dist / statistiques / prive / squelettes / inclure / stats-visites-jours.html
index ea2db70..d960970 100644 (file)
@@ -1,63 +1,64 @@
 #SET{c,#VAL{article}|classement_populaires}
+#SET{duree,#ENV{duree,0}|duree_affiche{jour}}
 
-<p class="pagination">
+<div class="pagination">
        <span class="dl">
-               #SET{args,#ARRAY{id_article,#ID_ARTICLE,duree,#DUREE}}
+               #SET{args,#ARRAY{id_article,#ID_ARTICLE,duree,#GET{duree}}}
                <a href="[(#URL_PAGE{transmettre,[(#VAL{statistiques}|param_low_sec{#GET{args}, '', 'transmettre'})]})]" class="noajax"><:statistiques:csv:></a>
        </span>
        |
-       [<span class="duree">(#ENV{duree,90}) <:info_jours:></span>] |
-       <a href="[(#SELF|parametre_url{duree,#ENV{duree,90}|duree_zoom{moins}})]"
+       [<span class="duree">(#GET{duree}) <:info_jours:></span>] |
+       <a href="[(#SELF|parametre_url{duree,#GET{duree}|duree_zoom{moins}})]"
                 class="ajax">[(#CHEMIN_IMAGE{zoomout-24.png}|balise_img{<:statistiques:info_zoom:> -})]</a>
-       <a href="[(#SELF|parametre_url{duree,#ENV{duree,90}|duree_zoom{plus}})]"
+       <a href="[(#SELF|parametre_url{duree,#GET{duree}|duree_zoom{plus}})]"
                 class="ajax">[(#CHEMIN_IMAGE{zoomin-24.png}|balise_img{<:statistiques:info_zoom:> +})]</a>
-</p>
+</div>
 #SET{max,0}
 #SET{moy,0}
 #SET{last,0}
 #SET{lastlast,0}
 <B_statsj>
 
-       <table class='spip info visites' style="width:145px;position:absolute;#LANG_RIGHT:0px;margin-top:30px;">
+       <table class='spip info visites' style="width:145px;position:absolute;#LANG_RIGHT:0px;margin-top:10px;">
                <caption><:statistiques:resume:></caption>
                <tbody>
-                       <tr>
+                       <tr class="odd on">
                                <th><:info_maximum|trim{':'}|trim|ucfirst:></th>
                                <td class='num'>#GET{max}</td>
                        </tr>
-                       <tr>
+                       <tr class="odd on">
                                <th><:info_moyenne|trim{':'}|trim|ucfirst:></th>
                                <td class='num'>[(#GET{moy}|round)]</td>
                        </tr>
-                       <tr>
+                       <tr class="even">
                                <th><a href="#URL_ECRIRE{stats_referers,jour=jour}"
                                                                title="<:info_moyenne|trim{':'}|trim|attribut_html:>"><:info_aujourdhui|trim{':'}|trim|ucfirst:></a></th>
                                <td class='num'>#GET{last}</td>
                        </tr>
-                       <tr>
+                       <tr class="even">
                                <th><a href="#URL_ECRIRE{stats_referers,jour=veille}"
                                                                title="<:info_moyenne|trim{':'}|trim|attribut_html:>"><:info_hier|trim{':'}|trim|ucfirst:></a></th>
                                <td class='num'>#GET{lastlast}</td>
                        </tr>
                        <BOUCLE_art(ARTICLES){id_article}{statut?}>
-                               <tr>
+                               <tr class="odd">
                                        <th><:statistiques:info_popularite_5|trim{':'}|trim|ucfirst:></th>
                                        <td class='num'>[(#CHAMP_SQL{popularite}|round)]</td>
                                </tr>
-                               <tr>
+                               <tr class="odd">
                                        <th><:info_total|trim{':'}|trim|ucfirst:></th>
                                        <td class='num'>[(#VISITES|round)]</td>
                                </tr>
-                               <tr>
+                               <tr class="odd">
                                        <th></th>
                                        <td class='num'>[<strong>(#ID_ARTICLE|array_search{#GET{c}}|plus{1})</strong>[(#GET{c}|count|singulier_ou_pluriel{info_classement_1,info_classement_2,liste})]]</td>
                                </tr>
                        </BOUCLE_art>
-                               <tr>
+                               <tr class="odd">
                                        <th><:info_total|trim{':'}|trim|ucfirst:></th>
                                        <td class='num'>[(#REM|stats_total)]</td>
                                </tr>
-                               <tr>
+                               <tr class="odd">
                                        <th><:statistiques:info_popularite_2|trim{':'}|trim|ucfirst:></th>
                                        <td class='num'>[(#CONFIG{popularite_total}|round)]</td>
                                </tr>
@@ -76,9 +77,9 @@
                        </tr>
                </thead>
          <tbody>
-               <BOUCLE_statsj(DATA){source stats_visites,jour,#ENV{duree,90},#ENV{id_article}}>
+               <BOUCLE_statsj(DATA){source stats_visites,jour,#GET{duree},#ENV{id_article}}>
                        <tr class="c_[(#CLE|affdate{l}|substr{0,3})][(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|oui)c_today]">
-                               <th title="[(#CLE|affdate{'Y/m/d'})]">[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|?{<:info_aujourdhui:>,#CLE|affdate_jourcourt})]</th>
+                               <th title="[(#CLE|affdate{'Y/m/d'})]">[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|?{<:info_aujourdhui:>,[(#CLE|nom_jour) ][(#CLE|affdate_jourcourt)]})]</th>
                                <td class="val">#VALEUR{visites}</td>
                                <td class="mean">#VALEUR{moyenne}</td>
                                <td class="prev">#VALEUR{prevision}</td>