piler/webui/view/theme/default/templates/search/load.tpl

31 lines
953 B
Smarty
Raw Permalink Normal View History

2013-04-05 10:16:33 +02:00
<div id="messagelistcontainer" class="boxlistcontent" style="top:0">
<div id="results">
2013-04-05 10:16:33 +02:00
<?php if(count($terms) > 0){ ?>
2013-04-05 10:16:33 +02:00
<table class="table table-striped">
2013-08-14 23:40:52 +02:00
<thead><tr><th>Query Name</th><th>&nbsp;</th></thead>
<?php foreach($terms as $term) {
parse_str($term['term'], $s);
2013-04-05 10:16:33 +02:00
if(isset($s['search'])) {
?>
2013-04-05 10:16:33 +02:00
<tr>
2014-08-11 10:40:18 +02:00
<td><a href="#" onclick="Piler.load_search_results_for_saved_query('<?php print urlencode($term['term']); ?>');"><?php print htmlspecialchars($s['search']); ?></a> | <a href="#" class="menulink" onclick="Piler.remove_saved_search_term(<?php print $term['ts']; ?>); return false;"><?php print $text_remove; ?></a></td>
2013-04-05 10:16:33 +02:00
<td>&nbsp;</td>
</tr>
2012-09-18 15:54:48 +02:00
<?php } } ?>
2013-04-05 10:16:33 +02:00
</table>
<?php } else if(count($terms) == 0) { ?>
<div class="alert alert-error"><?php print $text_empty_search_result; ?></div>
<?php } ?>
</div>
</div>
2013-04-05 10:16:33 +02:00
<?php
?>