|
@@ 1719-1723 (lines=5) @@
|
| 1716 |
|
$mostreadedauthors = $stats['mostreadedauthors']; |
| 1717 |
|
echo "<div style='text-align: center;'><b>" . _AM_NEWS_STATS10 . '</b><br><br>' . _AM_NEWS_STATS7 . "<br>\n"; |
| 1718 |
|
echo "<table border='0' width='100%'><tr class='bg3'><th>" . _AM_POSTER . '</th><th>' . _NW_VIEWS . "</th></tr>\n"; |
| 1719 |
|
foreach ($mostreadedauthors as $uid => $reads) { |
| 1720 |
|
$url = XOOPS_URL . '/userinfo.php?uid=' . $uid; |
| 1721 |
|
$class = ($class === 'even') ? 'odd' : 'even'; |
| 1722 |
|
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); |
| 1723 |
|
} |
| 1724 |
|
echo '</table>'; |
| 1725 |
|
|
| 1726 |
|
// b) Best rated authors |
|
@@ 1730-1734 (lines=5) @@
|
| 1727 |
|
$bestratedauthors = $stats['bestratedauthors']; |
| 1728 |
|
echo '<br><br>' . _AM_NEWS_STATS8; |
| 1729 |
|
echo "<table border='0' width='100%'><tr class='bg3'><th>" . _AM_POSTER . '</th><th>' . _NW_RATING . "</th></tr>\n"; |
| 1730 |
|
foreach ($bestratedauthors as $uid => $rating) { |
| 1731 |
|
$url = XOOPS_URL . '/userinfo.php?uid=' . $uid; |
| 1732 |
|
$class = ($class === 'even') ? 'odd' : 'even'; |
| 1733 |
|
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); |
| 1734 |
|
} |
| 1735 |
|
echo '</table>'; |
| 1736 |
|
|
| 1737 |
|
// c) Biggest contributors |
|
@@ 1741-1745 (lines=5) @@
|
| 1738 |
|
$biggestcontributors = $stats['biggestcontributors']; |
| 1739 |
|
echo '<br><br>' . _AM_NEWS_STATS9; |
| 1740 |
|
echo "<table border='0' width='100%'><tr class='bg3'><th>" . _AM_POSTER . '</th><th>' . _AM_NEWS_STATS11 . "</th></tr>\n"; |
| 1741 |
|
foreach ($biggestcontributors as $uid => $count) { |
| 1742 |
|
$url = XOOPS_URL . '/userinfo.php?uid=' . $uid; |
| 1743 |
|
$class = ($class === 'even') ? 'odd' : 'even'; |
| 1744 |
|
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); |
| 1745 |
|
} |
| 1746 |
|
echo '</table></div><br>'; |
| 1747 |
|
} |
| 1748 |
|
|