diff options
author | Martin Konold <martin.konold@erfrakon.de> | 2006-04-21 10:41:38 (GMT) |
---|---|---|
committer | Martin Konold <martin.konold@erfrakon.de> | 2006-04-21 10:41:38 (GMT) |
commit | 15bead80f3603902657f89a4ab8787c360dc4b7c (patch) | |
tree | 4940f2be466695c52f82b36c6501d9988438b26b /php | |
parent | 5044cdf88399bcdc4d5f6be181ab28669f028e70 (diff) | |
download | kolab-webadmin-15bead80f3603902657f89a4ab8787c360dc4b7c.tar.gz |
Martin Konold: Commited patch from Tobias König in order to support setting of foldertype for public folders.
Diffstat (limited to 'php')
-rw-r--r-- | php/admin/include/form.class.php | 24 | ||||
-rwxr-xr-x | php/admin/templates/sflistall.tpl | 3 |
2 files changed, 26 insertions, 1 deletions
diff --git a/php/admin/include/form.class.php b/php/admin/include/form.class.php index 9f80820..6140ef8 100644 --- a/php/admin/include/form.class.php +++ b/php/admin/include/form.class.php @@ -187,6 +187,30 @@ class KolabForm { $str .= '<td>'.$value['comment'].'</td>'; $str .= '</tr>'."\n"; break; + case 'foldertypeselect': + $str .= '<tr>'; + $str .= '<td>'.$value['name'].'</td>'; + $entries = array ( '' => _('None'), 'mail' => _('Mails'), 'task' => _('Tasks'), 'journal' => _('Journals'), + 'event' => _('Events'), 'contact' => _('Contacts'), 'note' => _('Notes')); + if( ereg( 'readonly', $value['attrs'] ) ) { + $str .= '<td><p class="ctrl">'.MySmarty::htmlentities($entries[$value['value']]). + '<input type="hidden" name="'.$key.'" value="'.MySmarty::htmlentities($value['value']).'" /></p></td>'; + } else { + $str .= '<td><select name="'.$key.'" '.$value['attrs'].' >'."\n"; + foreach ($entries as $id => $title) { + if ( $value['value'] == $id ) + $s = 'selected'; + else + $s = ''; + + $str .= '<option value="'.$id.'" '.$s.'>'.MySmarty::htmlentities($title).'</option>'."\n"; + } + $str .= '</select>'; + $str .= '</td>'; + } + $str .= '<td>'.$value['comment'].'</td>'; + $str .= '</tr>'."\n"; + break; case 'aclselect': // Special Kolab entry for ACLs $str .= '<tr>'; $str .= '<td>'.$value['name'].'</td>'; diff --git a/php/admin/templates/sflistall.tpl b/php/admin/templates/sflistall.tpl index 06460c1..a62ed6e 100755 --- a/php/admin/templates/sflistall.tpl +++ b/php/admin/templates/sflistall.tpl @@ -10,12 +10,13 @@ <table class="contenttable" cellpadding="0" cellspacing="1px"> <tr class="contentrow"> - <th>{tr msg="Name"}</th><th>{tr msg="Server"}</th><th colspan="2">{tr msg="Action"}</th> + <th>{tr msg="Name"}</th><th>{tr msg="Server"}</th><th>{tr msg="Type"}</th><th colspan="2">{tr msg="Action"}</th> </tr> {section name=id loop=$entries} <tr class="contentrow{cycle values="even,odd"}"> <td class="contentcell">{$entries[id].cn|escape:"html"}</td> <td class="contentcell">{$entries[id].kolabhomeserver|escape:"html"}</td> + <td class="contentcell">{$entries[id].foldertype|escape:"html"}</td> {if $entries[id].deleted neq "FALSE"} <td class="actioncell" colspan="2">{tr msg="Folder deleted, awaiting cleanup..."}</td> {else} |