5 * Template for folder management (create, rename, delete, (un)subscribe)
7 * The following variables are available in this template:
8 * + $mbx_option_list - string containing all mailboxes as <option>'s for
9 * use in <select>'s on this page.
10 * + $rendel_folder_list - string containing all mailboxes available for
11 * delete/rename as <option>'s for use in <select>'s
13 * + $show_subfolders_option - boolean TRUE if the a folder can contain
14 * subfolders in conf.pl > Folder Options
15 * + $show_only_subscribed_folders - boolean TRUE if the user only wants
16 * to see subscribed folders.
17 * + $no_list_for_subscribe = boolean TRUE if the subscribe list should NOT
18 * be displayed in conf.pl
19 * + $subbox_option_list - array containing a list of folders that can be
20 * subscribed to. Each array element contains an
21 * array with the following elements:
22 * $el['Value'] - encoded string for the VALUE
23 * field of an input element
24 * $el['Display'] - string containing the display
25 * name for the element
27 * @copyright © 1999-2006 The SquirrelMail Project Team
28 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
30 * @package squirrelmail
31 * @subpackage templates
34 /* retrieve the template vars */
37 <div class="dialogbox">
38 <table cellspacing="0" class="wrapper">
41 <?php echo _("Folders"); ?>
46 <table cellspacing="0">
49 <?php echo _("Create Folder") ?>
54 <form method="post" action="folders.php" name="cf" id="cf">
55 <input type="hidden" name="smaction" value="create" />
56 <input type="text" name="folder_name" size="25" value="" />
58 <?php echo _("as a subfolder of") ?>
60 <select name="subfolder">
61 <?php echo $mbx_option_list; ?>
64 if ($show_subfolders_option) {
67 <input type="checkbox" name="contain_subs" id="contain_subs" value="1" />
69 <label for="contain_subs"><?php echo _("Let this folder contain subfolders") ?></label>
74 <input type="submit" value="<?php echo _("Create") ?>" />
83 <table cellspacing="0">
86 <?php echo _("Rename a Folder") ?>
92 if ( !empty($rendel_folder_list) ) {
94 <form method="post" action="folders.php" name="rf" id="rf">
95 <input type="hidden" name="smaction" value="rename">
96 <select name="old_name">
97 <option value="">[ <?php echo _("Select a folder") ?> ]</option>
98 <?php echo $rendel_folder_list ?>
100 <input type="submit" value="<?php echo _("Rename") ?>" />
104 echo _("No folders found");
114 <table cellspacing="0">
117 <?php echo _("Delete Folder") ?>
123 if ( !empty($rendel_folder_list) ) {
125 <form method="post" action="folders.php" name="df" id="df">
126 <input type="hidden" name="smaction" value="delete">
127 <select name="folder_name">
128 <option value="">[ <?php echo _("Select a folder") ?> ]</option>
129 <?php echo $rendel_folder_list ?>
131 <input type="submit" value="<?php echo _("Delete") ?>" />
135 echo _("No folders found");
146 if ($show_only_subscribed_folders) {
148 <table cellspacing="0">
150 <td class="header2" colspan="2">
151 <?php echo _("Unsubscribe") .'/'. _("Subscribe"); ?>
157 if (!empty($rendel_folder_list)) {
159 <form method="post" action="folders.php" name="uf" id="uf">
160 <input type="hidden" name="smaction" value="unsubscribe" />
161 <select name="folder_names[]" multiple="multiple" size="8">
162 <?php echo $rendel_folder_list ?>
165 <input type="submit" value="<?php echo _("Unsubscribe") ?>" />
169 echo _("No folders were found to unsubscribe from.");
175 if ($no_list_for_subscribe) {
177 <form method="post" action="folders.php" name="sf" id="sf">
178 <input type="hidden" name="smaction" value="subscribe">
179 <input type="text" name="folder_names[]" size="25" />
180 <input type="submit" value="<?php echo _("Subscribe") ?>" />
183 } elseif (!empty($subbox_option_list)) {
185 <form method="post" action="folders.php" name="sf" id="sf">
186 <input type="hidden" name="smaction" value="subscribe" />
190 <select name="folder_names[]" multiple="multiple" size="8">
191 <?php echo $subbox_option_list ?>
194 foreach ($subbox_option_list as $folder) {
195 echo '<input type="checkbox" name="folder_names[]" id="sub_'.$folder['Value'].'" value="'.$folder['Value'].'" /> '.
196 '<label for="sub_'.$folder['Value'].'">'.$folder['Display'].'</label><br />';
201 <input type="submit" value="<?php echo _("Subscribe") ?>" />
205 echo _("No folders were found to subscribe to.");
217 <?php /* FIXME: no hooks in templates!! */ global $null; do_hook('folders_bottom', $null); ?>