5 ** Copyright (c) 1999-2000 The SquirrelMail development team
6 ** Licensed under the GNU GPL. For full terms see the file COPYING.
8 ** Displays all options relating to folders
13 include('../src/validate.php');
14 include('../functions/page_header.php');
15 include('../functions/display_messages.php');
16 include('../functions/imap.php');
17 include('../functions/array.php');
18 include('../functions/plugin.php');
19 include('../src/load_prefs.php');
21 displayPageHeader($color, 'None');
23 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
24 $boxes = sqimap_mailbox_list($imapConnection);
25 sqimap_logout($imapConnection);
28 <table width
="95%" align
="center" border
="0" cellpadding
="2" cellspacing
="0">
29 <tr
><td bgcolor
="<?php echo $color[0] ?>" align
="center">
31 <b
><?php
echo _("Options") . " - " . _("Folder Preferences"); ?
></b
>
33 <table width
="100%" border
="0" cellpadding
="1" cellspacing
="1">
34 <tr
><td bgcolor
="<?php echo $color[4] ?>" align
="center">
36 <form name
="f" action
="options.php" method
="post"><br
>
38 <table width
="100%" cellpadding
="2" cellspacing
="0" border
="0">
40 <?php
if ($show_prefix_option == true) { ?
>
42 <td align
=right nowrap
><?php
echo _("Folder Path"); ?
>:
44 <?php
if (isset ($folder_prefix))
45 echo ' <input type="text" name="folderprefix" value="'.$folder_prefix.'" size="35"><br>';
47 echo ' <input type="text" name="folderprefix" value="'.$default_folder_prefix.'" size="35"><br>';
54 echo '<tr><td nowrap align="right">';
55 echo _("Trash Folder:");
57 echo "<TT><SELECT NAME=trash>\n";
58 if ($move_to_trash == true)
59 echo '<option value="none">' . _("Don't use Trash");
61 echo '<option value="none" selected>' . _("Do not use Trash");
63 for ($i = 0; $i < count($boxes); $i++
) {
65 if (strtolower($boxes[$i]['unformatted']) == 'inbox') {
68 if ($use_folder == true) {
69 $box = $boxes[$i]['unformatted-dm'];
70 $box2 = str_replace(' ', ' ', $boxes[$i]['formatted']);
71 if (($boxes[$i]['unformatted'] == $trash_folder) && ($move_to_trash == true))
72 echo " <OPTION SELECTED VALUE=\"$box\">$box2\n";
74 echo " <OPTION VALUE=\"$box\">$box2\n";
77 echo "</SELECT></TT>\n";
82 echo '<tr><td nowrap align="right">';
83 echo _("Sent Folder:");
85 echo '<TT><SELECT NAME="sent">' . "\n";
86 if ($move_to_sent == true)
87 echo '<option value="none">' . _("Don't use Sent");
89 echo "<option value=none selected>" . _("Do not use Sent");
91 for ($i = 0; $i < count($boxes); $i++
) {
93 if (strtolower($boxes[$i]['unformatted']) == 'inbox') {
96 if ($use_folder == true) {
97 $box = $boxes[$i]['unformatted-dm'];
98 $box2 = str_replace(' ', ' ', $boxes[$i]['formatted']);
99 if (($boxes[$i]['unformatted'] == $sent_folder) && ($move_to_sent == true))
100 echo " <OPTION SELECTED VALUE=\"$box\">$box2\n";
102 echo " <OPTION VALUE=\"$box\">$box2\n";
105 echo "</SELECT></TT>\n";
109 <td valign
=top align
=right
>
110 <?php
echo _("Unseen message notification"); ?
>:
113 <input type
=radio name
=unseennotify value
=1<?php
if ($unseen_notify == 1) echo " checked"; ?
>> <?php
echo _("No notification") ?
><br
>
114 <input type
=radio name
=unseennotify value
=2<?php
if ($unseen_notify != 1 && $unseen_notify != 3) echo " checked"; ?
>> <?php
echo _("Only INBOX") ?
><br
>
115 <input type
=radio name
=unseennotify value
=3<?php
if ($unseen_notify == 3) echo " checked"; ?
>> <?php
echo _("All Folders") ?
><br
>
119 <td valign
=top align
=right
>
120 <?php
echo _("Unseen message notification type"); ?
>:
123 <input type
=radio name
=unseentype value
=1<?php
if ($unseen_type < 2 ||
$unseen_type > 2) echo " checked"; ?
>> <?php
echo _("Only unseen"); ?
> - (4)<br
>
124 <input type
=radio name
=unseentype value
=2<?php
if ($unseen_type == 2) echo " checked"; ?
>> <?php
echo _("Unseen and Total"); ?
> - (4/27)
128 <td valign
=top align
=right
>
129 <?php
echo _("Collapseable folders"); ?
>:
132 <input type
=checkbox name
=collapsefolders
<?php
if (isset($collapse_folders) && $collapse_folders) echo " checked"; ?
>>
133 <?php
echo _("Enable Collapseable Folders"); ?
>
136 <?php
do_hook("options_folders_inside"); ?
>
140 <input type
="submit" value
="<?php echo _("Submit
"); ?>" name
="submit_folder">
146 <?php
do_hook('options_folders_bottom'); ?
>