mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 06:27:03 +02:00
added the webui to the tarball
This commit is contained in:
20
webui/view/theme/default/templates/stat/counter.tpl
Normal file
20
webui/view/theme/default/templates/stat/counter.tpl
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p>
|
||||
<table border="1">
|
||||
<?php while(list($k, $v) = each($counters)) { ?>
|
||||
<tr><td><?php print $k; ?></td><td><?php print $v; ?></td></tr>
|
||||
<?php } ?>
|
||||
<?php if($counters[$prefix . 'rcvd'] > 0) { ?><tr><td>spam / <?php print $text_total_ratio; ?></td><td><?php print sprintf("%.2f", 100*$counters[$prefix . 'spam'] / $counters[$prefix . 'rcvd']); ?> %</td></tr><?php } ?>
|
||||
<?php if($counters[$prefix . 'rcvd'] > 0) { ?><tr><td>virus / <?php print $text_total_ratio; ?></td><td><?php print sprintf("%.2f", 100*$counters[$prefix . 'virus'] / $counters[$prefix . 'rcvd']); ?> %</td></tr><?php } ?>
|
||||
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<form action="index.php?route=stat/counter" method="post">
|
||||
<input type="hidden" name="reset" value="1" />
|
||||
<input type="submit" name="submit" value="<?php print $text_reset_counters; ?>" />
|
||||
</form>
|
||||
</p>
|
15
webui/view/theme/default/templates/stat/stat.tpl
Normal file
15
webui/view/theme/default/templates/stat/stat.tpl
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($timespan == "daily"){ ?>
|
||||
<strong><?php print $text_daily_report; ?></strong> <a href="index.php?route=stat/stat&timespan=monthly<?php if(isset($uid)) { ?>&uid=<?php print $uid; } ?>"><?php print $text_monthly_report; ?></a>
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=stat/stat&timespan=daily<?php if(isset($uid)) { ?>&uid=<?php print $uid; } ?>"><?php print $text_daily_report; ?></a> <strong><?php print $text_monthly_report; ?></strong>
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
||||
<p><img src="index.php?route=stat/graph&timespan=<?php print $timespan; ?>&uid=<?php print $uid; ?>" border="1" /> </p>
|
||||
|
Reference in New Issue
Block a user