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

60 lines
2.3 KiB
Smarty
Raw Normal View History

2012-02-08 23:14:28 +01:00
<div id="search">
<div id="search1">
2012-02-14 20:16:05 +01:00
<div id="ss1">
2012-02-08 23:14:28 +01:00
<input type="hidden" name="searchtype" id="searchtype" value="expert" />
<input type="hidden" name="sort" id="sort" value="date" />
<input type="hidden" name="order" id="order" value="0" />
2012-02-10 14:06:00 +01:00
<input type="hidden" name="ref" id="ref" value="" />
2012-02-08 23:14:28 +01:00
</div>
2012-02-14 20:16:05 +01:00
<div id="ss1">
2012-02-08 23:14:28 +01:00
<div class="row">
2012-02-14 20:16:05 +01:00
<div class="cell1s" style="width: 75px;"><?php print $text_search; ?>: </div>
2012-02-15 11:03:27 +01:00
<div class="cell2"><input type="text" id="_search" name="_search" class="advtext<?php if(!isset($_search)) { ?>grey<?php } ?>" style="width: 100%;" value="<?php if(isset($_search)) { print $_search; } else { print $text_enter_search_terms; ?>" onclick="if(expsrc==0){this.value=''; this.className = 'advtext'; expsrc++;}<?php } ?>" /></div>
2012-02-08 23:14:28 +01:00
</div>
</div>
<div class="row">
<div class="cell1s">&nbsp;</div>
<div class="cell2">
<button id="button_search" class="active" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);"><?php print $text_search; ?></button>
2012-02-10 14:06:00 +01:00
<input type="button" class="advsecondary" onclick="javascript:var a=document.getElementById('_search'); a.value=''; a = document.getElementById('ref'); a.value=''; return false;" value="<?php print $text_cancel; ?>" />
2012-02-08 23:14:28 +01:00
<input type="button" class="advsecondary" value="<?php print $text_save; ?>" onclick="javascript:send_ajax_post_request('<?php print SAVE_SEARCH_URL; ?>', assemble_search_term(0) + '&save=1', 'A1');" />
<input type="button" class="load" name="load" onclick="javascript:load_ajax_url('<?php print SAVE_SEARCH_URL; ?>&<?php if(isset($search_args)) { print $search_args; } ?>');" value="<?php print $text_load; ?>..." />
</div>
</div>
<input type="hidden" name="tag" value="" />
</div>
<div id="search2">
<div id="A1"></div>
</div>
</div>
<div id="AS">
<div id="resultscontainer" class="empty"></div>
</div>
<?php if(isset($searchterm)) { ?>
<script>
fix_search_order('<?php print $sort; ?>', '<?php print $order; ?>');
load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);
load_ajax_url('<?php print SAVE_SEARCH_URL; ?>');
</script>
<?php } ?>