piler/webui/view/theme/mobile/templates/audit/helper.tpl

51 lines
2.4 KiB
Smarty
Raw Permalink Normal View History

2013-04-05 10:16:33 +02:00
2013-07-31 23:52:51 +02:00
<div id="messagelistcontainer" class="boxlistcontent">
2013-04-05 10:16:33 +02:00
<div id="results">
<?php if($n > 0) { $i=0; foreach ($messages as $message) { $i++; ?>
<div class="resultrow<?php if($i % 2) { ?> odd<?php } ?>">
<div class="auditcell date"><?php print $message['date']; ?></div>
<div class="auditcell user"><?php print $message['email']; ?></div>
<div class="auditcell ip"><?php print $message['ipaddr']; ?></div>
<div class="auditcell action"><?php print $actions[$message['action']]; ?></div>
<div class="auditcell description"><?php if($message['description'] != $message['shortdescription']) { ?><span title="<?php print $message['description']; ?>"><?php print $message['shortdescription']; ?></span><?php } else { print $message['description']; } ?></div>
2013-08-01 12:11:51 +02:00
<div class="auditcell ref"><?php if(Registry::get('auditor_user') == 1 && $message['id'] > 0) { ?><a href="#" class="auditlink" onclick="Piler.view_message(<?php print $message['id']; ?>);"><?php print $message['id']; ?></a><?php } ?></div>
2013-04-05 10:16:33 +02:00
</div>
<?php } } else { ?>
<div class="alert">
<strong><?php print $text_empty_search_result; ?></strong>
</div>
<?php } ?>
</div>
2013-08-02 16:33:14 +02:00
</div>
2013-04-05 10:16:33 +02:00
2013-08-02 16:33:14 +02:00
<div class="boxfooter">
2013-04-05 10:16:33 +02:00
<?php if($n >= $page_len){ ?>
2013-08-02 16:33:14 +02:00
<span class="piler-right-margin">
<?php if($page > 0) { ?><a href="#" onclick="Piler.navigation(0);">&lt;&lt;</a> &nbsp; <?php } else { ?><span class="navlink">&lt;&lt; &nbsp; </span><?php } ?>
<?php if($page > 0) { ?><a href="#" onclick="Piler.navigation(<?php print $prev_page; ?>);"> &lt; </a> <?php } else { ?><span class="navlink"> &lt; </span><?php } ?>
2013-04-05 10:16:33 +02:00
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $n; ?>
2013-08-02 16:33:14 +02:00
<?php if($next_page <= $total_pages){ ?><a href="#" onclick="Piler.navigation(<?php print $next_page; ?>);">&gt; </a> <?php } else { ?><span class="navlink">&gt; </span><?php } ?>
<?php if($page < $total_pages) { ?> &nbsp; <a href="#" onclick="Piler.navigation(<?php print $total_pages; ?>);"> &gt;&gt; </a><?php } else { ?> <span class="navlink"> &nbsp; &gt;&gt;</span><?php } ?>
</span>
2013-04-05 10:16:33 +02:00
<?php } else { ?>&nbsp;<?php } ?>
2013-08-02 16:33:14 +02:00
<?php if($n > 0) { ?>
<a href="index.php?route=audit/download"><button class="btn btn-medium btn-inverse">Export CSV</button>
<?php } ?>
</div>
2013-04-05 10:16:33 +02:00
2013-07-31 23:52:51 +02:00