diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-01-13 15:54:31 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-01-13 15:54:31 +0000 |
commit | 419bd1bb05c4988332e61005f2e40c7b3216367a (patch) | |
tree | 9fbeb9a90feae91eddfc56b416d9690fd23d7869 /index.php | |
parent | 2449229c5dc81310ce84510b440d3106884d3efb (diff) | |
download | pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar.gz pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar.bz2 pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar.xz pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.zip |
stats box update
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -256,10 +256,10 @@ foreach ($pkgs as $key => $p) { } echo $s, '</table>'; -$s = '<div id="stats"><table><tr><th>Status</th><th>Count</th><th>%</th></tr>'; +$s = '<div id="stats"><table><caption>Stats.</caption><tr><th colspan="2">Status</th><th>Count</th><th>%</th></tr>'; foreach ($stats as $k => $v) { - $s .= sprintf('<tr><th>%s</th><td>%d</td><td>%d%%</td></tr>', - $k, $v, round($v/$total*100)); + $s .= sprintf('<tr class="%s"><td class="status-box"></td><td>%s</td><td>%d</td><td>%d%%</td></tr>', + $k, $k, $v, round($v/$total*100)); } $s .= '</table></div>'; $s .= '<div class="clear"></div>'; |