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