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

30 lines
860 B
Smarty
Raw Normal View History

<div id="messagelistcontainer" class="boxlistcontent" style="top:0">
<div id="results">
<div class="resultrow">
<?php if(count($terms) > 0){ ?>
<?php } else if(count($terms) == 0) { ?>
<div class="cell3 error"><?php print $text_empty_search_result; ?></div>
<?php } ?>
</div>
<?php foreach($terms as $term) {
parse_str($term['term'], $s);
2012-09-18 15:54:48 +02:00
if(isset($s['search'])) {
?>
<div class="resultrow">
<a href="#" onclick="javascript:load_search_results('<?php print SEARCH_HELPER_URL; ?>', '<?php print $term['term']; ?>', 0); var a=document.getElementById('_search'); var v=decodeURIComponent('<?php print urlencode($s['search']); ?>'); v = v.replace(/\+/g, ' '); a.value=v; "><?php print $s['search']; ?></a></br />
</div>
2012-09-18 15:54:48 +02:00
<?php } } ?>
</div>
</div>
<?php
?>