Pimped search function

release-0.6
thomascube 19 years ago
parent 97a915e662
commit 326e87a5d6

@ -1,6 +1,9 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
--------------------------- ---------------------------
2006/05/01
----------
- Pimped search function
- Applied prev/next patch by Leonard Bouchet - Applied prev/next patch by Leonard Bouchet
- Applied patches by Mark Bucciarelli - Applied patches by Mark Bucciarelli
- Applied patch for requesting receipts by Salvatore Ansani - Applied patch for requesting receipts by Salvatore Ansani

@ -55,7 +55,7 @@ class rcube_imap
var $default_folders = array('inbox', 'drafts', 'sent', 'junk', 'trash'); var $default_folders = array('inbox', 'drafts', 'sent', 'junk', 'trash');
var $cache = array(); var $cache = array();
var $cache_keys = array(); var $cache_keys = array();
var $cache_changes = array(); var $cache_changes = array();
var $uid_id_map = array(); var $uid_id_map = array();
var $msg_headers = array(); var $msg_headers = array();
var $capabilities = array(); var $capabilities = array();
@ -856,7 +856,7 @@ class rcube_imap
$mailbox = $mbox ? $this->_mod_mailbox($mbox) : $this->mailbox; $mailbox = $mbox ? $this->_mod_mailbox($mbox) : $this->mailbox;
if ($str && $criteria) if ($str && $criteria)
{ {
$criteria .= " \"$str\""; $criteria .= ' CHARSET UTF-8 "'.UTF7EncodeString($str).'"';
return $this->_search_index($mailbox, $criteria); return $this->_search_index($mailbox, $criteria);
} }
else else

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 B

@ -468,15 +468,18 @@ body.messagelist
position: absolute; position: absolute;
top: 60px; top: 60px;
right: 40px; right: 40px;
width: 200px; width: 182px;
height: 20px; height: 20px;
text-align: right; text-align: right;
background: url('images/searchfield.gif') top left no-repeat;
} }
#quicksearchbar a #quicksearchbar a
{ {
position: absolute;
top: 3px;
right: 4px;
text-decoration: none; text-decoration: none;
padding-left: 5px;
} }
#quicksearchbar img #quicksearchbar img
@ -486,11 +489,23 @@ body.messagelist
#quicksearchbox #quicksearchbox
{ {
width: 150px; position: absolute;
border: 1px solid #999999; top: 2px;
left: 20px;
width: 140px;
font-size: 11px;
padding: 0px;
border: none;
} }
/*\*/
html>body*#quicksearchbar { background-image: none; }
html>body*#quicksearchbar a { top: 5px; }
html>body*#quicksearchbar #quicksearchbox { width: 180px; top:0px; right: 1px; left: auto; }
/**/
#rcversion #rcversion
{ {
position: absolute; position: absolute;

@ -20,7 +20,7 @@
</div> </div>
<div id="quicksearchbar"> <div id="quicksearchbar">
<roundcube:object name="searchform" id="quicksearchbox" /><roundcube:button command="reset-search" image="/images/icons/reset.gif" title="resetsearch" /> <roundcube:object name="searchform" type="search" results="5" id="quicksearchbox" /><roundcube:button command="reset-search" id="searchreset" image="/images/icons/reset.gif" title="resetsearch" />
</div> </div>
<div id="messagecountbar"> <div id="messagecountbar">

Loading…
Cancel
Save