/**
* folders.php
*
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Handles all interaction between the user and the other folder
require_once(SM_PATH . 'functions/imap.php');
require_once(SM_PATH . 'functions/plugin.php');
require_once(SM_PATH . 'functions/html.php');
+require_once(SM_PATH . 'functions/forms.php');
displayPageHeader($color, 'None');
) .
html_tag( 'tr' ) .
html_tag( 'td', '', 'center', $color[0] ) .
-
- "<FORM NAME=cf ACTION=\"folders_create.php\" METHOD=\"POST\">\n".
- "<input type=TEXT SIZE=25 NAME=folder_name><BR>\n".
- _("as a subfolder of").
- '<BR>'.
+ addForm('folders_create.php', 'POST', 'cf').
+ addInput('folder_name', '', 25).
+ "<BR>\n". _("as a subfolder of"). '<BR>'.
"<TT><SELECT NAME=subfolder>\n";
$show_selected = array();
echo "</SELECT></TT>\n";
if ($show_contain_subfolders_option) {
- echo '<br><input type=CHECKBOX NAME="contain_subs"> '
+ echo '<br>'.
+ addCheckBox('contain_subs', FALSE, '1') .' '
. _("Let this folder contain subfolders")
. '<BR>';
}
html_tag( 'td', '', 'center', $color[0] );
if ($count_special_folders < count($boxes)) {
- echo "<FORM ACTION=\"folders_rename_getname.php\" METHOD=\"POST\">\n"
+ echo addForm('folders_rename_getname.php')
. "<TT><SELECT NAME=old>\n"
. ' <OPTION VALUE="">[ ' . _("Select a folder") . " ]</OPTION>\n";
html_tag( 'td', '', 'center', $color[0] );
if ($count_special_folders < count($boxes)) {
- echo "<FORM ACTION=\"folders_delete.php\" METHOD=\"POST\">\n"
+ echo addForm('folders_delete.php')
. "<TT><SELECT NAME=mailbox>\n"
. ' <OPTION VALUE="">[ ' . _("Select a folder") . " ]</OPTION>\n";
html_tag( 'td', '', 'center', $color[0], 'width="50%"' );
if ($count_special_folders < count($boxes)) {
- echo "<FORM ACTION=\"folders_subscribe.php?method=unsub\" METHOD=\"POST\">\n"
+ echo addForm('folders_subscribe.php?method=unsub')
. "<TT><SELECT NAME=\"mailbox[]\" multiple size=8>\n";
for ($i = 0; $i < count($boxes); $i++) {
$use_folder = true;
}
}
if ($box && $box2) {
- echo "<FORM ACTION=\"folders_subscribe.php?method=sub\" METHOD=\"POST\">\n"
+ echo addForm('folders_subscribe.php?method=sub')
. '<tt><select name="mailbox[]" multiple size=8>';
for ($q = 0; $q < count($box); $q++) {
}
} else {
/* don't perform the list action -- this is much faster */
- echo "<FORM ACTION=\"folders_subscribe.php?method=sub\" METHOD=\"POST\">\n"
+ echo addForm('folders_subscribe.php?method=sub')
. _("Subscribe to:") . '<br>'
. '<tt><input type="text" name="mailbox[]" size=35>'
. '<INPUT TYPE=SUBMIT VALUE="'. _("Subscribe") . "\">\n"