mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-27 23:10:11 +01:00
96 lines
8.9 KiB
Smarty
96 lines
8.9 KiB
Smarty
<p> </p>
|
|
|
|
<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 id="pagenav">
|
|
<?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 } ?> « <?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 } ?> ‹ <?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 } ?> › <?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 } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
|
</div>
|
|
|
|
<div id="ss1" style="margin-top: 10px;">
|
|
|
|
<div class="domainrow">
|
|
<div class="domaincell"> </div>
|
|
<div class="domaincell"> </div>
|
|
<div class="domaincell"> </div>
|
|
<?php if(ENABLE_SAAS == 1 && $view == 'domain') { ?>
|
|
<div class="domaincell"> </div>
|
|
<?php } ?>
|
|
<div class="domaincell"> </div>
|
|
<div class="domaincell"><?php print $text_sent; ?></div>
|
|
<div class="domaincell"> </div>
|
|
<div class="domaincell"> </div>
|
|
<div class="domaincell"><?php print $text_received; ?></div>
|
|
<div class="domaincell"> </div>
|
|
</div>
|
|
<div class="domainrow">
|
|
<div class="domaincell"><?php echo $viewname; ?> <?php if(ENABLE_SAAS == 1 && $view == 'domain') { ?>(<?php print $mydomain_count; ?>)<?php } ?> <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></div>
|
|
<?php if(ENABLE_SAAS == 1 && $view == 'domain') { ?>
|
|
<div class="domaincell"><?php print $text_users; ?> (<?php print $user_count; ?>)</div>
|
|
<?php } ?>
|
|
<div class="domaincell"><?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></div>
|
|
<div class="domaincell"><?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></div>
|
|
<div class="domaincell"><?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></div>
|
|
<div class="domaincell"><?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></div>
|
|
<div class="domaincell"><?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></div>
|
|
<div class="domaincell"><?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></div>
|
|
<div class="domaincell"><?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></div>
|
|
<div class="domaincell"><?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></div>
|
|
</div>
|
|
|
|
|
|
<?php foreach($accounting as $details) {?>
|
|
<div class="domainrow">
|
|
<div class="domaincell"><?php echo $details['item']; ?></div>
|
|
|
|
<?php if(ENABLE_SAAS == 1 && $view == 'domain') { ?>
|
|
<div class="domaincell center"><a href="index.php?route=accounting/accounting&view=accounts&domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></div>
|
|
<?php } ?>
|
|
|
|
<div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['oldest']); ?></div>
|
|
<div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['newest']); ?></div>
|
|
<div class="domaincell">
|
|
<?php echo $details['sent']; ?>
|
|
</div>
|
|
<div class="domaincell">
|
|
<?php echo nice_size($details['sentsize']); ?>
|
|
</div>
|
|
<div class="domaincell">
|
|
<?php echo nice_size($details['sentavg']); ?>
|
|
</div>
|
|
<div class="domaincell">
|
|
<?php echo $details['recd']; ?>
|
|
</div>
|
|
<div class="domaincell">
|
|
<?php echo nice_size($details['recdsize']); ?>
|
|
</div>
|
|
<div class="domaincell">
|
|
<?php echo nice_size($details['recdavg']); ?>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
|
|
<div id="pagenav">
|
|
<?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 } ?> « <?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 } ?> ‹ <?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 } ?> › <?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 } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
|
</div>
|
|
<?php } else { ?>
|
|
<p><?php $s = 'text_no_' . $view . '_found'; print $$s; ?></p>
|
|
<?php } ?>
|
|
|