mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
add basic status search
This commit is contained in:
parent
c1a2447a5a
commit
966e3198d4
@ -163,7 +163,7 @@ class mail_ui
|
||||
{
|
||||
$content['nm'] = array(
|
||||
'get_rows' => 'mail.mail_ui.get_rows', // I method/callback to request the data for the rows eg. 'notes.bo.get_rows'
|
||||
'filter' => 'INBOX', // filter is used to choose the mailbox
|
||||
'filter' => 'any', // filter is used to choose the mailbox
|
||||
'no_filter2' => false, // I disable the 2. filter (params are the same as for filter)
|
||||
'no_cat' => true, // I disable the cat-selectbox
|
||||
//'cat_is_select' => 'no_lang', // true or no_lang
|
||||
@ -221,9 +221,10 @@ class mail_ui
|
||||
if (!isset($content['nm']['foldertree'])) $content['nm']['foldertree'] = $this->mail_bo->profileID.self::$delimiter.'INBOX';
|
||||
if (!isset($content['nm']['selectedFolder'])) $content['nm']['selectedFolder'] = $this->mail_bo->profileID.self::$delimiter.'INBOX';
|
||||
$content['nm']['foldertree'] = $content['nm']['selectedFolder'];
|
||||
$sel_options['cat_id'] = array(1=>'none');
|
||||
//$sel_options['cat_id'] = array(1=>'none');
|
||||
$sel_options['filter2'] = $this->searchTypes;
|
||||
if (!isset($content['nm']['cat_id'])) $content['nm']['cat_id'] = 'All';
|
||||
$sel_options['filter'] = $this->statusTypes;
|
||||
//if (!isset($content['nm']['cat_id'])) $content['nm']['cat_id'] = 'All';
|
||||
|
||||
$etpl = new etemplate_new('mail.index');
|
||||
|
||||
@ -1051,6 +1052,10 @@ unset($query['actions']);
|
||||
{
|
||||
$filter = array();
|
||||
}
|
||||
if ($query['filter'])
|
||||
{
|
||||
$filter['status'] = $query['filter'];
|
||||
}
|
||||
$reverse = ($query['order']=='ASC'?false:true);
|
||||
//error_log(__METHOD__.__LINE__.' maxMessages:'.$maxMessages.' Offset:'.$offset.' Filter:'.array2string($this->sessionData['messageFilter']));
|
||||
if ($maxMessages > 75)
|
||||
|
Loading…
Reference in New Issue
Block a user