mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 11:27:03 +02:00
enhanced accounting
This commit is contained in:
@ -28,24 +28,34 @@
|
||||
|
||||
<tr>
|
||||
<th colspan="3"> </th>
|
||||
<th colspan="3">Sent</th>
|
||||
<th colspan="3">Received</th>
|
||||
<th colspan="3"><?php print $text_sent; ?></th>
|
||||
<th colspan="3"><?php print $text_received; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $viewname; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=item&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=item&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Oldest Record <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=oldest&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=oldest&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Newest Record <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=newest&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=newest&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Items <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sent&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sent&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Size <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentsize&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentsize&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Avg Size <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentavg&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentavg&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Items <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recd&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recd&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Size <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdsize&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdsize&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th>Avg Size <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdavg&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdavg&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
|
||||
<?php if(ENABLE_SAAS == 1) { ?>
|
||||
<th><?php print $text_users; ?></th>
|
||||
<?php } ?>
|
||||
|
||||
<th><?php print $text_oldest_record; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=oldest&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=oldest&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th><?php print $text_newest_record; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=newest&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=newest&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th><?php print $text_items; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sent&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sent&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th><?php print $text_size; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentsize&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentsize&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th><?php print $text_average_size; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentavg&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=sentavg&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th><?php print $text_items; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recd&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recd&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th><?php print $text_size; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdsize&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdsize&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
<th><?php print $text_average_size; ?> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdavg&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=accounting/accounting&view=<?php echo $view; ?>&sort=recdavg&order=1"><i class="icon-chevron-down"></i></a></th>
|
||||
</tr>
|
||||
|
||||
<?php foreach($accounting as $details) {?>
|
||||
<tr>
|
||||
<td><?php echo $details['item']; ?></td>
|
||||
|
||||
<?php if(ENABLE_SAAS == 1) { ?>
|
||||
<td><a href="index.php?route=accounting/accounting&view=accounts&domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></td>
|
||||
<?php } ?>
|
||||
|
||||
<td><?php echo date("d M Y",$details['oldest']); ?></td>
|
||||
<td><?php echo date("d M Y",$details['newest']); ?></td>
|
||||
<td>
|
||||
@ -84,6 +94,6 @@
|
||||
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td colspan='6'>No Emails Found</td>
|
||||
<td colspan='6'><?php print $text_no_email_found; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
32
webui/view/theme/default/templates/accounting/accounts.tpl
Normal file
32
webui/view/theme/default/templates/accounting/accounts.tpl
Normal file
@ -0,0 +1,32 @@
|
||||
|
||||
<p>
|
||||
<?php if ($view == 'email') { echo '<strong>'.$text_accounting_email.'</strong>'; } else { echo '<a href="index.php?route=accounting/accounting&view=email">'.$text_accounting_email.'</a>'; } ?> |
|
||||
<?php if ($view == 'domain') { echo '<strong>'.$text_accounting_domain.'</strong>'; } else { echo '<a href="index.php?route=accounting/accounting&view=domain">'.$text_accounting_domain.'</a>'; } ?>
|
||||
</p>
|
||||
|
||||
<p><a href="index.php?route=accounting/accounting&view=domain"><?php print $text_back; ?></a></p>
|
||||
|
||||
<?php if(count($accounts) > 0) { ?>
|
||||
|
||||
<table class="table table-striped table-condensed">
|
||||
|
||||
<tr>
|
||||
<th><?php echo $text_email; ?> (@<?php print $domain; ?>) </th>
|
||||
</tr>
|
||||
|
||||
<?php foreach($accounts as $a) {?>
|
||||
<tr>
|
||||
<td><?php echo $a['mail']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td><?php print $text_no_email_found; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<p><a href="index.php?route=accounting/accounting&view=domain"><?php print $text_back; ?></a></p>
|
||||
|
||||
|
Reference in New Issue
Block a user