mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 22:11:58 +01:00
89 lines
8.0 KiB
Smarty
89 lines
8.0 KiB
Smarty
<form method="post" name="search1" action="index.php?route=accounting/accounting&view=<?php echo $view; ?>" class="form-inline pull-right">
|
|
<div class="input-append">
|
|
<input type="text" name="search" class="input-medium" value="<?php print $search; ?>" />
|
|
<input type="submit" class="btn" value="<?php print $text_search; ?>" />
|
|
</div>
|
|
</form>
|
|
|
|
<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>
|
|
|
|
<?php if ( $accounting ) { ?>
|
|
|
|
<div class="pagenav container">
|
|
<?php if($page > 0){ ?><a href="index.php?route=accounting/accounting&page=0&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-left icon-large"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
<?php if($page > 0){ ?><a href="index.php?route=accounting/accounting&page=<?php print $prev_page; ?>&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-left icon-large"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
<?php if(count($accounting) > 0) { print $accounting[0]['display']; ?> - <?php print $accounting[count($accounting)-1]['display']; } ?>
|
|
|
|
<?php if($total_records >= $page_len*($page+1) && $total_records > $page_len){ ?><a href="index.php?route=accounting/accounting&page=<?php print $next_page; ?>&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-right icon-large"></i><?php if($total_records >= $page_len*($page+1) && $total_records > $page_len){ ?></a><?php } ?>
|
|
|
|
<?php if($page < $total_pages){ ?><a href="index.php?route=accounting/accounting&page=<?php print $total_pages; ?>&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-right icon-large"></i><?php if($page < $total_pages){ ?></a><?php } ?>
|
|
</div>
|
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<tr>
|
|
<th colspan="3"> </th>
|
|
<th colspan="3">Sent</th>
|
|
<th colspan="3">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>
|
|
</tr>
|
|
|
|
<?php foreach($accounting as $details) {?>
|
|
<tr>
|
|
<td><?php echo $details['item']; ?></td>
|
|
<td><?php echo date("d M Y",$details['oldest']); ?></td>
|
|
<td><?php echo date("d M Y",$details['newest']); ?></td>
|
|
<td>
|
|
<?php echo $details['sent']; ?>
|
|
</td>
|
|
<td>
|
|
<?php echo nice_size($details['sentsize']); ?>
|
|
</td>
|
|
<td>
|
|
<?php echo nice_size($details['sentavg']); ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $details['recd']; ?>
|
|
</td>
|
|
<td>
|
|
<?php echo nice_size($details['recdsize']); ?>
|
|
</td>
|
|
<td>
|
|
<?php echo nice_size($details['recdavg']); ?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|
|
|
|
<div class="pagenav container">
|
|
<?php if($page > 0){ ?><a href="index.php?route=accounting/accounting&page=0&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-left icon-large"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
<?php if($page > 0){ ?><a href="index.php?route=accounting/accounting&page=<?php print $prev_page; ?>&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-left icon-large"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
<?php if(count($accounting) > 0) { print $accounting[0]['display']; ?> - <?php print $accounting[count($accounting)-1]['display']; } ?>
|
|
|
|
<?php if($total_records >= $page_len*($page+1) && $total_records > $page_len){ ?><a href="index.php?route=accounting/accounting&page=<?php print $next_page; ?>&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-right icon-large"></i><?php if($total_records >= $page_len*($page+1) && $total_records > $page_len){ ?></a><?php } ?>
|
|
|
|
<?php if($page < $total_pages){ ?><a href="index.php?route=accounting/accounting&page=<?php print $total_pages; ?>&view=<?php echo $view; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-right icon-large"></i><?php if($page < $total_pages){ ?></a><?php } ?>
|
|
</div>
|
|
|
|
<?php } else { ?>
|
|
<tr>
|
|
<td colspan='6'>No Emails Found</td>
|
|
</tr>
|
|
<?php } ?> |