replacer un preg_replace par un str_ireplace
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
4.3 KiB

#SET{c,#VAL{article}|classement_populaires}
#SET{duree,#ENV{duree,0}|duree_affiche{jour}}
<div class="pagination">
<span class="dl">
#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">(#GET{duree}) <:info_jours:></span>]
[(#ENV{duree,0}|non)<a href="[(#SELF|parametre_url{duree,-1})]" title="<:lien_tout_afficher:>">+</a>]
|
<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> |
<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>
</div>
#SET{max,0}
#SET{moy,0}
#SET{last,0}
#SET{lastlast,0}
<B_statsj>
<table class='spip info visites' style="width:33%;position:absolute;#LANG_RIGHT:0px;margin-top:10px;">
<caption><:statistiques:resume:></caption>
<tbody>
<tr class="odd on">
<th><:info_maximum|trim{':'}|trim|ucfirst:></th>
<td class='num'>[(#GET{max}|number_format{0,"","&nbsp;"})]</td>
</tr>
<tr class="odd on">
<th><:info_moyenne|trim{':'}|trim|ucfirst:></th>
<td class='num'>[(#GET{moy}|round|number_format{0,"","&nbsp;"})]</td>
</tr>
<tr class="even">
<th><a href="#URL_ECRIRE{stats_referers,jour=jour}"
title="<:statistiques:titre_liens_entrants|trim{':'}|trim|attribut_html:>: <:info_aujourdhui|trim{':'}|trim|attribut_html:>"><:info_aujourdhui|trim{':'}|trim|ucfirst:></a></th>
<td class='num'>[(#GET{last}|number_format{0,"","&nbsp;"})]</td>
</tr>
<tr class="even">
<th><a href="#URL_ECRIRE{stats_referers,jour=veille}"
7 years ago
title="<:statistiques:titre_liens_entrants|trim{':'}|trim|attribut_html:>: <:info_hier|trim{':'}|trim|attribut_html:>"><:info_hier|trim{':'}|trim|ucfirst:></a></th>
<td class='num'>[(#GET{lastlast}|number_format{0,"","&nbsp;"})]</td>
</tr>
<BOUCLE_art(ARTICLES){id_article}{statut?}>
<tr class="odd">
<th><:statistiques:info_popularite_5|trim{':'}|trim|ucfirst:></th>
<td class='num'>[(#CHAMP_SQL{popularite}|round|number_format{0,"","&nbsp;"})]</td>
</tr>
<tr class="odd">
<th><:info_total|trim{':'}|trim|ucfirst:></th>
<td class='num'>[(#VISITES|round|number_format{0,"","&nbsp;"})]</td>
</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 class="odd">
<th><:info_total|trim{':'}|trim|ucfirst:></th>
<td class='num'>[(#REM|stats_total|number_format{0,"","&nbsp;"})]</td>
</tr>
<tr class="odd">
<th><:statistiques:info_popularite_2|trim{':'}|trim|ucfirst:></th>
<td class='num'>[(#CONFIG{popularite_total}|round|number_format{0,"","&nbsp;"})]</td>
</tr>
<//B_art>
</tbody>
</table>
<table class='visites' id='visites_quotidiennes' style="width:64%">
<caption><:statistiques:visites_journalieres:></caption>
<thead>
<tr class='row_first'>
<th><:date|trim{':'}|trim:></th>
<th class='valeur'><:statistiques:info_visites|trim{':'}|trim:></th>
<th class='moyenne'><:info_moyenne|trim{':'}|trim:></th>
<th class='prevision'><:statistiques:info_previsions|trim{':'}|trim:></th>
</tr>
</thead>
<tbody>
<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|nom_jour) ][(#CLE|affdate_jourcourt)]})]</th>
<td class="val">#VALEUR{visites}</td>
<td class="mean">#VALEUR{moyenne}</td>
<td class="prev">#VALEUR{prevision}</td>
</tr>
#SET{max,#GET{max}|max{#VALEUR{visites}}}
#SET{moy,#VALEUR{moyenne}}
#SET{lastlast,#GET{last}}
#SET{last,#VALEUR{visites}}
</BOUCLE_statsj>
</tbody>
</table>
</B_statsj>