some foldertree stuff, working at least with old etemplate

This commit is contained in:
Ralf Becker 2013-02-11 13:40:58 +00:00
parent e2c001f442
commit 2953f33146
2 changed files with 6 additions and 4 deletions

View File

@ -101,9 +101,11 @@ class mail_ui
// filter is used to choose the mailbox
//if (!isset($content['nm']['foldertree'])) // maybe we fetch the folder here
$sel_options['foldertree'] = array(
'/'=>array('path'=>'/', 'label'=>'IMAP Server','title'=>'IMAP Server','image'=>'kfm_home.png'),
'/INBOX'=>array('path'=>'/INBOX','label'=>'INBOX','title'=>'INBOX')
'--topfolder--'=>array('label'=>'IMAP Server','title'=>'IMAP Server','image'=>'thunderbird.png'),
'--topfolder--/INBOX'=>array('label'=>'INBOX','title'=>'INBOX','image'=>'kfm_home.png'),
'--topfolder--/INBOX/sub'=>array('label'=>'sub','title'=>'INBOX/sub'),
);
$content['nm']['foldertree'] = '--topfolder--/INBOX/sub';
$sel_options['cat_id'] = array(1=>'none');
if (!isset($content['nm']['filter'])) $content['nm']['filter'] = 'INBOX';
if (!isset($content['nm']['cat_id'])) $content['nm']['cat_id'] = 'All';
@ -120,7 +122,7 @@ class mail_ui
$preferences =& $this->mail_bo->mailPreferences;
// load translations
translation::add_app('mail');
common::egw_header();
parse_navbar();
//$GLOBALS['egw']->framework->sidebox();

View File

@ -32,7 +32,7 @@
</grid>
</template>
<template id="mail.index" template="" lang="" group="0" version="1.9.001">
<tree id="nm[foldertree]"/>
<tree id="nm[foldertree]" onclick="alert('onChange node='+arguments[0]);"/>
<nextmatch id="nm" options="mail.index.rows"/>
</template>
</overlay>