Exemple #1
0
function MailBoxStorage($email = null)
{
    $user = $email;
    if (isset($_GET["MailBoxStorage"])) {
        $user = $_GET["MailBoxStorage"];
    }
    $mailbox = new MailBoxes();
    if ($mailbox->MailBoxes_isExists($user) == false) {
        $html = "<input type='hidden' id='user' value='{$user}'>\n\t\t<input type='hidden' id='add_pop3_imap_text' value=\"{add_pop3_imap_text}\">\n\t\t<table class='table_form'>\n\t<td colspan=2><H2>{$user}&nbsp;{mailboxstorage_title}</H2></td>\n\t</tr>\n\t<tr>\n\t\t<td class='table_form_legend'>{mailboxstorage_not_define}</td>\n\t\t<td class='table_form_data'><input type='button' value='{bt_add_mailbox}' OnClick=\"javascript:add_storage_mailbox('{$user}')\"></td>\n\t</tr>\t\n\t</table>";
        echo DIV_SHADOW($html, 'windows');
        exit;
    }
    $path = $mailbox->MailBoxes_get_path($user);
    $html = "\n\t<input type='hidden' id='user' value='{$user}'>\n\t<input type='hidden' id='edit_pop3_imap_text' value=\"{edit_pop3_imap_text}\">\n\t<table class='table_form'>\n\t<td colspan=2><H2>{$user}&nbsp;{mailboxstorage_title}</H2></td>\n\t</tr>\n\t<tr>\n\t\t<td class='table_form_legend'>{mailboxstorage_path}</td>\n\t\t<td class='table_form_data'>{$path}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class='table_form_legend'>{mailboxstorage_password}</td>\n\t\t<td class='table_form_data' ><input type='password' id='password' value='{$user}' ></td>\n\t</tr>\n\t\t<td class='table_form_button'  colspan=2><input type='button' value='Submit&nbsp;&raquo;' OnClick=\"javascript:edit_storage_mailbox('{$user}');\"></td>\n\t</tr>\t\t\t\n\t\n\t\n\t</table>\n\t\n\t";
    echo DIV_SHADOW($html, 'windows');
}