|
@@ 1434-1438 (lines=5) @@
|
| 1431 |
|
$mostreadedauthors = $stats['mostreadedauthors']; |
| 1432 |
|
echo "<div style='text-align: center;'><b>" . _AM_NEWS_STATS10 . '</b><br /><br />' . _AM_NEWS_STATS7 . "<br />\n"; |
| 1433 |
|
echo "<table border='0' width='100%'><tr class='bg3'><th>" . _AM_POSTER . '</th><th>' . _NW_VIEWS . "</th></tr>\n"; |
| 1434 |
|
foreach ($mostreadedauthors as $uid => $reads) { |
| 1435 |
|
$url = XOOPS_URL . '/userinfo.php?uid=' . $uid; |
| 1436 |
|
$class = ($class === 'even') ? 'odd' : 'even'; |
| 1437 |
|
printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url, $myts->htmlSpecialChars($news->uname($uid)), $reads); |
| 1438 |
|
} |
| 1439 |
|
echo '</table>'; |
| 1440 |
|
|
| 1441 |
|
// b) Best rated authors |
|
@@ 1445-1449 (lines=5) @@
|
| 1442 |
|
$bestratedauthors = $stats['bestratedauthors']; |
| 1443 |
|
echo '<br /><br />' . _AM_NEWS_STATS8; |
| 1444 |
|
echo "<table border='0' width='100%'><tr class='bg3'><th>" . _AM_POSTER . '</th><th>' . _NW_RATING . "</th></tr>\n"; |
| 1445 |
|
foreach ($bestratedauthors as $uid => $rating) { |
| 1446 |
|
$url = XOOPS_URL . '/userinfo.php?uid=' . $uid; |
| 1447 |
|
$class = ($class === 'even') ? 'odd' : 'even'; |
| 1448 |
|
printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url, $myts->htmlSpecialChars($news->uname($uid)), $rating); |
| 1449 |
|
} |
| 1450 |
|
echo '</table>'; |
| 1451 |
|
|
| 1452 |
|
// c) Biggest contributors |
|
@@ 1456-1460 (lines=5) @@
|
| 1453 |
|
$biggestcontributors = $stats['biggestcontributors']; |
| 1454 |
|
echo '<br /><br />' . _AM_NEWS_STATS9; |
| 1455 |
|
echo "<table border='0' width='100%'><tr class='bg3'><th>" . _AM_POSTER . '</th><th>' . _AM_NEWS_STATS11 . "</th></tr>\n"; |
| 1456 |
|
foreach ($biggestcontributors as $uid => $count) { |
| 1457 |
|
$url = XOOPS_URL . '/userinfo.php?uid=' . $uid; |
| 1458 |
|
$class = ($class === 'even') ? 'odd' : 'even'; |
| 1459 |
|
printf("<tr class='" . $class . "'><td align='left'><a href='%s' target ='_blank'>%s</a></td><td align='right'>%u</td></tr>\n", $url, $myts->htmlSpecialChars($news->uname($uid)), $count); |
| 1460 |
|
} |
| 1461 |
|
echo '</table></div><br />'; |
| 1462 |
|
} |
| 1463 |
|
|