From eac88333c4335a25a501b3badd76e558fb68f708 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 24 Nov 2005 11:06:41 -0500 Subject: [PATCH] Mail alias --- interface/web/sites/form/mail_alias.tform.php | 57 +++++++++++++++++++-------------------------------------- 1 files changed, 19 insertions(+), 38 deletions(-) diff --git a/interface/web/sites/form/mail_alias.tform.php b/interface/web/sites/form/mail_alias.tform.php index 05671ce..a4a4f3d 100644 --- a/interface/web/sites/form/mail_alias.tform.php +++ b/interface/web/sites/form/mail_alias.tform.php @@ -40,8 +40,8 @@ $form["db_table"] = "mail_redirect"; $form["db_table_idx"] = "redirect_id"; $form["db_history"] = "yes"; -$form["tab_default"] = "mailbox"; -$form["list_default"] = "mail_box_list.php"; +$form["tab_default"] = "alias"; +$form["list_default"] = "mail_alias_list.php"; $form["auth"] = 'yes'; // yes / no $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user @@ -50,10 +50,10 @@ $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete -$form["tabs"]['mailbox'] = array ( - 'title' => "Mailbox", +$form["tabs"]['alias'] = array ( + 'title' => "Email alias", 'width' => 100, - 'template' => "templates/mail_box_mailbox_edit.htm", + 'template' => "templates/mail_alias_edit.htm", 'fields' => array ( ################################## # Begin Datatable fields @@ -79,14 +79,22 @@ 'width' => '30', 'maxlength' => '255' ), - 'cryptpwd' => array ( + 'destination' => array ( 'datatype' => 'VARCHAR', - 'formtype' => 'PASSWORD', - 'encryption'=> 'CRYPT', + 'formtype' => 'SELECT', 'default' => '', - 'value' => '', - 'width' => '30', - 'maxlength' => '255' + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT email FROM mail_box WHERE {AUTHSQL} ORDER BY email', + 'keyfield' => 'email', + 'valuefield' => 'email' + ), + 'value' => '' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('alias' => 'Alias','forward'=>'Forward') ), 'active' => array ( 'datatype' => 'INTEGER', @@ -100,33 +108,6 @@ ) ); -$form["tabs"]['autoresponder'] = array ( - 'title' => "Autoresponder", - 'width' => 100, - 'template' => "templates/mail_box_autoresponder_edit.htm", - 'fields' => array ( - ################################## - # Begin Datatable fields - ################################## - 'autoresponder_text' => array ( - 'datatype' => 'TEXT', - 'formtype' => 'TEXTAREA', - 'default' => '', - 'value' => '', - 'cols' => '30', - 'rows' => '15' - ), - 'autoresponder' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'CHECKBOX', - 'default' => '1', - 'value' => '1' - ), - ################################## - # ENDE Datatable fields - ################################## - ) -); ?> \ No newline at end of file -- Gitblit v1.9.1