mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 00:37:02 +02:00
reintroduced the load saved searches feature
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
|
||||
#main { margin: 0px 40px 20px 40px; width: 990px; float: left; clear: both; }
|
||||
|
||||
.aoo { cursor: pointer; position: absolute; left: 915px; top: 0px; width: 10px; margin-left: -5px; }
|
||||
.aoo { cursor: pointer; position: absolute; left: 845px; top: 0px; width: 10px; margin-left: -5px; }
|
||||
.aoq { height: 4px; padding: 11px 5px; width: 7px; background: url("/view/theme/default/images/dark-grey-disclosure-arrow-down.png") no-repeat scroll center center transparent; }
|
||||
|
||||
|
||||
|
@ -93,7 +93,7 @@
|
||||
|
||||
<span style="font-weight: bold;"><?php print $text_search; ?>:</span>
|
||||
|
||||
<input type="text" id="_search" name="_search" class="advtext<?php if(!isset($_search)) { ?>grey<?php } ?>" style="width: 500px;margin: 0px;" value="<?php if(isset($_search)) { print $_search; } else { print $text_enter_search_terms; ?>" onclick="if(expsrc==0){this.value=''; this.className = 'advtext'; expsrc++;}<?php } ?>" />
|
||||
<input type="text" id="_search" name="_search" class="advtext<?php if(!isset($_search)) { ?>grey<?php } ?>" style="width: 528px;margin: 0px;" 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 class="aoo" onclick="javascript: document.getElementById('searchpopup1').style.display = ''; return false;">
|
||||
<div class="aoq"></div>
|
||||
@ -102,6 +102,7 @@
|
||||
<button id="button_search" class="active" style="margin-left: 10px; margin-right: 0px; height: 20px; width: 70px;" onclick="script:var a=document.getElementById('ref'); if(a) a.value=''; load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count, ''), 0);"><?php print $text_search; ?></button>
|
||||
<input type="button" class="advsecondary" style="height: 20px; width: 70px;" onclick="javascript:var a=document.getElementById('_search'); a.value=''; a = document.getElementById('ref'); a.value=''; return false;" value="<?php print $text_cancel; ?>" />
|
||||
<input type="button" class="advsecondary" style="height: 20px; width: 70px;" value="<?php print $text_save; ?>" onclick="javascript:send_ajax_post_request('<?php print SAVE_SEARCH_URL; ?>', assemble_search_term(0, '') + '&save=1'); show_message('messagebox1', '<p><?php print $text_saved; ?></p>', 0.85);" />
|
||||
<input type="button" class="advsecondary" style="height: 20px; width: 70px;" value="<?php print $text_load; ?>" onclick="javascript:load_saved_search_terms('<?php print LOAD_SAVED_SEARCH_URL; ?>');" />
|
||||
|
||||
|
||||
<?php print $popup; ?>
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
<?php foreach ($extra_folders as $folder) { ?>
|
||||
<blockquote style="border: 0px solid red; margin: 0 0 5px 10px;">
|
||||
<img src="<?php print ICON_EMPTY; ?>" width="12" height="12" alt="" /> <input type="checkbox" id="extra_folder_<?php print $folder['id']; ?>" name="extra_folder_<?php print $folder['id']; ?>" /> <span style="color: blue; font-weight: bold;" onmouseover="javascript: copy_message_to_folder('<?php print $folder['id']; ?>', current_message_id); return false;"><?php print $folder['name']; ?>
|
||||
<img src="<?php print ICON_EMPTY; ?>" width="12" height="12" alt="" /> <input type="checkbox" id="extra_folder_<?php print $folder['id']; ?>" name="extra_folder_<?php print $folder['id']; ?>" /> <span style="color: blue; font-weight: bold;" onmouseover="javascript: copy_message_to_folder('<?php print $folder['id']; ?>', current_message_id, '<?php print $text_copied; ?>'); return false;"><?php print $folder['name']; ?>
|
||||
</blockquote>
|
||||
<?php } ?>
|
||||
|
||||
|
30
webui/view/theme/default/templates/search/load.tpl
Normal file
30
webui/view/theme/default/templates/search/load.tpl
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
<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);
|
||||
?>
|
||||
<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>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
//print_r($terms);
|
||||
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<div id="searchpopup1" style="position: absolute; top: 22px; right: 233px; border: 1px solid #999999; display: none; background: #f8f8f8; color: #000000; font-weight: bold; padding: 15px; z-index: 1;">
|
||||
<div id="searchpopup1" style="position: absolute; top: 22px; right: 303px; border: 1px solid #999999; display: none; background: #f8f8f8; color: #000000; font-weight: bold; padding: 15px; z-index: 1;">
|
||||
|
||||
<input type="hidden" name="xsearchtype" id="xsearchtype" value="simple" />
|
||||
|
||||
|
Reference in New Issue
Block a user