Slt,
Sinon si tu connais un peu en php tu te fais un petit bloc perso récupérant les données du modules statistics de pmx exemple de code pris sur l'index.php du module, ça peut te servir comme modèle.
function showDailyStats($year, $month)
{
global $prefix, $bgcolor1, $bgcolor2, $module_name, $now;
$resulttotal = sql_query("SELECT SUM(hits) AS TotalHitsDate FROM " . $prefix . "_stats WHERE year='" . intval($year) . "' AND month='" . intval($month) . "'");
list($TotalHitsDate) = sql_fetch_row($resulttotal);
sql_free_result($resulttotal);
$result = sql_query("SELECT year, month, date, SUM(hits) AS hits
FROM " . $prefix . "_stats
GROUP BY year, month, date
HAVING (((year)=$year) AND ((month)=$month))
ORDER BY date");
$total = sql_num_rows($result);
echo '
<!-- START Tagesstatistik -->
<center>
<b>' . _DAILYSTATS . ' ' . getmonth($month) . ', ' . $year . '</b>
</center><br />
<table align="center" bgcolor="' . $bgcolor2 . '" cellspacing="1" cellpadding="3" border="0">
<tr>
<th width="25%" bgcolor="' . $bgcolor2 . '">' . _DATE . '</th>
<th bgcolor="' . $bgcolor2 . '">' . _SPAGESVIEWS . '</th>
</tr>';
while (list($year, $month, $date, $hits) = sql_fetch_row($result)) {
echo '
<tr bgcolor="' . $bgcolor1 . '">
<td>
<a href="modules.php?name=' . $module_name . '&op=DailyStats&year=' . $year . '&month=' . $month . '&date=' . $date . '">' . $date . '</a>
</td>
<td>';
if ($hits == 0) {
$WidthIMG = 0;
$d_percent = 0;
} else {
$WidthIMG = round(100 * $hits / $TotalHitsDate, 0);
$d_percent = mxValueToString(100 * $hits / $TotalHitsDate, 2);
}
if ($hits[0] > 0) {
echo '
' . mk_percbar(round(100 * $hits / $TotalHitsDate, 0)) . ' ' . $d_percent . '% (' . mxValueToString($hits, 0) . ')';
}
echo '
</td>
</tr>';
}
sql_free_result($result);
echo '
</table>
<!-- ENDE Tagesstatistik -->';
}