5 * Template for folder management (create, rename, delete, (un)subscribe)
7 * @copyright © 1999-2006 The SquirrelMail Project Team
8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @package squirrelmail
11 * @subpackage templates
14 /* retrieve the template vars */
19 <table bgcolor="<?php echo $color[0]; ?>" align="center" width="95%" cellpadding="1" cellspacing="0" border="0">
21 <td align="center"><b><?php echo _("Folders"); ?></b>
23 <table align="center" width="100%" cellpadding="5" cellspacing="0" border="0">
25 <td bgcolor="<?php echo $color[4] ?>" align="center">
28 // if there are any messages, output them.
29 if ( !empty($td_str) ) :
31 <table align="center" width="100%" cellpadding="4" cellspacing="0" border="0">
32 <tr><td align="center"><b><?php echo $td_str ?></b><br />
33 <a href="left_main.php" target="left"><?php echo _("refresh folder list") ?></a>
43 <table align="center" width="70%" cellpadding="4" cellspacing="0" border="0">
44 <tr><td bgcolor="<?php echo $color[9]?>" align="center"><b><?php echo _("Create Folder") ?></b></td></tr>
45 <tr><td bgcolor="<?php echo $color[0]?>" align="center">
47 <form method="post" action="folders.php" name="cf" id="cf">
48 <input type="hidden" name="smaction" value="create">
49 <input type="text" name="folder_name" size="25" value=""><br />
50 <?php echo _("as a subfolder of") ?><br />
51 <select name="subfolder">
52 <?php echo $mbx_option_list; ?>
54 <?php if ($show_contain_subfolders_option): ?>
56 <input type="checkbox" name="contain_subs" id="contain_subs" value="1"> <label
57 for="contain_subs"><?php echo _("Let this folder contain subfolders") ?></label><br />
59 <input type="submit" value="<?php echo _("Create") ?>" />
63 <tr><td bgcolor="<?php echo $color[4] ?>"> </td></tr>
66 <table align="center" width="70%" cellpadding="4" cellspacing="0" border="0">
67 <tr><td bgcolor="<?php echo $color[9]?>" align="center"><b><?php echo _("Rename a Folder") ?></b></td></tr>
68 <tr><td bgcolor="<?php echo $color[0]?>" align="center">
70 <?php if ( !empty($rendel_folder_list) ) : ?>
72 <form method="post" action="folders.php" name="rf" id="rf">
73 <input type="hidden" name="smaction" value="rename">
74 <select name="old_name">
75 <option value="">[ <?php echo _("Select a folder") ?> ]</option>
76 <?php echo $rendel_folder_list ?>
78 <input type="submit" value="<?php echo _("Rename") ?>" />
83 <?php echo _("No folders found") ?><br /><br />
89 <tr><td bgcolor="<?php echo $color[4] ?>"> </td></tr>
92 <table align="center" width="70%" cellpadding="4" cellspacing="0" border="0">
93 <tr><td bgcolor="<?php echo $color[9]?>" align="center"><b><?php echo _("Delete Folder") ?></b></td></tr>
94 <tr><td bgcolor="<?php echo $color[0]?>" align="center">
96 <?php if ( !empty($rendel_folder_list) ) : ?>
98 <form method="post" action="folders.php" name="df" id="df">
99 <input type="hidden" name="smaction" value="delete">
100 <select name="folder_name">
101 <option value="">[ <?php echo _("Select a folder") ?> ]</option>
102 <?php echo $rendel_folder_list ?>
104 <input type="submit" value="<?php echo _("Delete") ?>" />
109 <?php echo _("No folders found") ?><br /><br />
115 <tr><td bgcolor="<?php echo $color[4] ?>"> </td></tr>
117 <?php if ( $show_only_subscribed_folders ): ?>
119 <table align="center" width="70%" cellpadding="4" cellspacing="0" border="0">
120 <tr><td colspan="2" bgcolor="<?php echo $color[9]?>" align="center"><b><?php echo _("Unsubscribe") . '/' . _("Subscribe") ?></b></td></tr>
121 <tr><td bgcolor="<?php echo $color[0]?>" align="center" width="50%">
123 <?php if ( !empty($rendel_folder_list) ) { ?>
125 <form method="post" action="folders.php" name="uf" id="uf">
126 <input type="hidden" name="smaction" value="unsubscribe">
127 <select name="folder_names[]" multiple="multiple" size="8">
128 <?php echo $rendel_folder_list ?>
129 </select><br /><br />
130 <input type="submit" value="<?php echo _("Unsubscribe") ?>" />
134 echo _("No folders were found to unsubscribe from.");
139 <td align="center" bgcolor="<?php echo $color[0]?>" width="50%">
141 if ( $no_list_for_subscribe ) {
143 <form method="post" action="folders.php" name="sf" id="sf">
144 <input type="hidden" name="smaction" value="subscribe">
145 <input type="text" name="folder_names[]" size="25" />
146 <input type="submit" value="<?php echo _("Subscribe") ?>" />
149 } elseif ( !empty($subbox_option_list) ) {
151 <form method="post" action="folders.php" name="sf" id="sf">
152 <input type="hidden" name="smaction" value="subscribe">
153 <select name="folder_names[]" multiple="multiple" size="8">
154 <?php echo $subbox_option_list ?>
155 </select><br /><br />
156 <input type="submit" value="<?php echo _("Subscribe") ?>" />
160 echo _("No folders were found to subscribe to.");
168 <?php do_hook('folders_bottom'); ?>