ea2db7052ddb87710fa9275af152f43e0e213901
[ptitvelo/web/www.git] / www / plugins-dist / statistiques / prive / squelettes / inclure / stats-visites-jours.html
1 #SET{c,#VAL{article}|classement_populaires}
2
3 <p class="pagination">
4 <span class="dl">
5 #SET{args,#ARRAY{id_article,#ID_ARTICLE,duree,#DUREE}}
6 <a href="[(#URL_PAGE{transmettre,[(#VAL{statistiques}|param_low_sec{#GET{args}, '', 'transmettre'})]})]" class="noajax"><:statistiques:csv:></a>
7 </span>
8 |
9 [<span class="duree">(#ENV{duree,90}) <:info_jours:></span>] |
10 <a href="[(#SELF|parametre_url{duree,#ENV{duree,90}|duree_zoom{moins}})]"
11 class="ajax">[(#CHEMIN_IMAGE{zoomout-24.png}|balise_img{<:statistiques:info_zoom:> -})]</a>
12 <a href="[(#SELF|parametre_url{duree,#ENV{duree,90}|duree_zoom{plus}})]"
13 class="ajax">[(#CHEMIN_IMAGE{zoomin-24.png}|balise_img{<:statistiques:info_zoom:> +})]</a>
14 </p>
15 #SET{max,0}
16 #SET{moy,0}
17 #SET{last,0}
18 #SET{lastlast,0}
19 <B_statsj>
20
21 <table class='spip info visites' style="width:145px;position:absolute;#LANG_RIGHT:0px;margin-top:30px;">
22 <caption><:statistiques:resume:></caption>
23 <tbody>
24 <tr>
25 <th><:info_maximum|trim{':'}|trim|ucfirst:></th>
26 <td class='num'>#GET{max}</td>
27 </tr>
28 <tr>
29 <th><:info_moyenne|trim{':'}|trim|ucfirst:></th>
30 <td class='num'>[(#GET{moy}|round)]</td>
31 </tr>
32 <tr>
33 <th><a href="#URL_ECRIRE{stats_referers,jour=jour}"
34 title="<:info_moyenne|trim{':'}|trim|attribut_html:>"><:info_aujourdhui|trim{':'}|trim|ucfirst:></a></th>
35 <td class='num'>#GET{last}</td>
36 </tr>
37 <tr>
38 <th><a href="#URL_ECRIRE{stats_referers,jour=veille}"
39 title="<:info_moyenne|trim{':'}|trim|attribut_html:>"><:info_hier|trim{':'}|trim|ucfirst:></a></th>
40 <td class='num'>#GET{lastlast}</td>
41 </tr>
42 <BOUCLE_art(ARTICLES){id_article}{statut?}>
43 <tr>
44 <th><:statistiques:info_popularite_5|trim{':'}|trim|ucfirst:></th>
45 <td class='num'>[(#CHAMP_SQL{popularite}|round)]</td>
46 </tr>
47 <tr>
48 <th><:info_total|trim{':'}|trim|ucfirst:></th>
49 <td class='num'>[(#VISITES|round)]</td>
50 </tr>
51 <tr>
52 <th></th>
53 <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>
54 </tr>
55 </BOUCLE_art>
56 <tr>
57 <th><:info_total|trim{':'}|trim|ucfirst:></th>
58 <td class='num'>[(#REM|stats_total)]</td>
59 </tr>
60 <tr>
61 <th><:statistiques:info_popularite_2|trim{':'}|trim|ucfirst:></th>
62 <td class='num'>[(#CONFIG{popularite_total}|round)]</td>
63 </tr>
64 <//B_art>
65 </tbody>
66 </table>
67
68 <table class='visites' id='visites_quotidiennes'>
69 <caption><:statistiques:visites_journalieres:></caption>
70 <thead>
71 <tr class='row_first'>
72 <th><:date|trim{':'}|trim:></th>
73 <th class='valeur'><:statistiques:info_visites|trim{':'}|trim:></th>
74 <th class='moyenne'><:info_moyenne|trim{':'}|trim:></th>
75 <th class='prevision'><:statistiques:info_previsions|trim{':'}|trim:></th>
76 </tr>
77 </thead>
78 <tbody>
79 <BOUCLE_statsj(DATA){source stats_visites,jour,#ENV{duree,90},#ENV{id_article}}>
80 <tr class="c_[(#CLE|affdate{l}|substr{0,3})][(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|oui)c_today]">
81 <th title="[(#CLE|affdate{'Y/m/d'})]">[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|?{<:info_aujourdhui:>,#CLE|affdate_jourcourt})]</th>
82 <td class="val">#VALEUR{visites}</td>
83 <td class="mean">#VALEUR{moyenne}</td>
84 <td class="prev">#VALEUR{prevision}</td>
85 </tr>
86 #SET{max,#GET{max}|max{#VALEUR{visites}}}
87 #SET{moy,#VALEUR{moyenne}}
88 #SET{lastlast,#GET{last}}
89 #SET{last,#VALEUR{visites}}
90 </BOUCLE_statsj>
91 </tbody>
92 </table>
93
94
95 </B_statsj>