(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Formfields * */ return array( 'customer_add' => array( 'title' => $lng['admin']['customer_add'], 'image' => 'icons/user_add.png', 'sections' => array( 'section_a' => array( 'title' => $lng['admin']['accountdata'], 'image' => 'icons/user_add.png', 'fields' => array( 'new_loginname' => array( 'label' => $lng['login']['username'], 'type' => 'text' ), 'createstdsubdomain' => array( 'label' => $lng['admin']['stdsubdomain_add'].'?', 'type' => 'checkbox', 'values' => array( array ('label' => $lng['panel']['yes'], 'value' => '1') ), 'value' => array('1') ), 'store_defaultindex' => array( 'label' => $lng['admin']['store_defaultindex'].'?', 'type' => 'checkbox', 'values' => array( array ('label' => $lng['panel']['yes'], 'value' => '1') ), 'value' => array('1') ), 'new_customer_password' => array( 'label' => $lng['login']['password'], 'type' => 'password', 'autocomplete' => 'off' ), 'new_customer_password_suggestion' => array( 'label' => $lng['customer']['generated_pwd'], 'type' => 'text', 'visible' => (Settings::Get('panel.password_regex') == ''), 'value' => generatePassword(), ), 'sendpassword' => array( 'label' => $lng['admin']['sendpassword'], 'type' => 'checkbox', 'values' => array( array ('label' => $lng['panel']['yes'], 'value' => '1') ), 'value' => array('1') ), 'def_language' => array( 'label' => $lng['login']['language'], 'type' => 'select', 'select_var' => $language_options ) ) ), 'section_b' => array( 'title' => $lng['admin']['contactdata'], 'image' => 'icons/user_add.png', 'fields' => array( 'name' => array( 'label' => $lng['customer']['name'], 'type' => 'text', 'mandatory_ex' => true ), 'firstname' => array( 'label' => $lng['customer']['firstname'], 'type' => 'text', 'mandatory_ex' => true ), 'gender' => array( 'label' => $lng['gender']['title'], 'type' => 'select', 'select_var' => $gender_options ), 'company' => array( 'label' => $lng['customer']['company'], 'type' => 'text', 'mandatory_ex' => true ), 'street' => array( 'label' => $lng['customer']['street'], 'type' => 'text' ), 'zipcode' => array( 'label' => $lng['customer']['zipcode'], 'type' => 'text' ), 'city' => array( 'label' => $lng['customer']['city'], 'type' => 'text' ), 'phone' => array( 'label' => $lng['customer']['phone'], 'type' => 'text' ), 'fax' => array( 'label' => $lng['customer']['fax'], 'type' => 'text' ), 'email' => array( 'label' => $lng['customer']['email'], 'type' => 'text', 'mandatory' => true ), 'customernumber' => array( 'label' => $lng['customer']['customernumber'], 'type' => 'text' ) ) ), 'section_c' => array( 'title' => $lng['admin']['servicedata'], 'image' => 'icons/user_add.png', 'fields' => array( 'diskspace' => array( 'label' => $lng['customer']['diskspace'], 'type' => 'textul', 'value' => 0, 'maxlength' => 6, 'mandatory' => true, 'ul_field' => $diskspace_ul ), 'traffic' => array( 'label' => $lng['customer']['traffic'], 'type' => 'textul', 'value' => 0, 'maxlength' => 4, 'mandatory' => true, 'ul_field' => $traffic_ul ), 'subdomains' => array( 'label' => $lng['customer']['subdomains'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true, 'ul_field' => $subdomains_ul ), 'emails' => array( 'label' => $lng['customer']['emails'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true, 'ul_field' => $emails_ul ), 'email_accounts' => array( 'label' => $lng['customer']['accounts'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true, 'ul_field' => $email_accounts_ul ), 'email_forwarders' => array( 'label' => $lng['customer']['forwarders'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true, 'ul_field' => $email_forwarders_ul ), 'email_quota' => array( 'label' => $lng['customer']['email_quota'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'visible' => (Settings::Get('system.mail_quota_enabled') == '1' ? true : false), 'mandatory' => true, 'ul_field' => $email_quota_ul ), 'email_imap' => array( 'label' => $lng['customer']['email_imap'], 'type' => 'checkbox', 'values' => array( array ('label' => $lng['panel']['yes'], 'value' => '1') ), 'value' => array('1'), 'mandatory' => true ), 'email_pop3' => array( 'label' => $lng['customer']['email_pop3'], 'type' => 'checkbox', 'values' => array( array ('label' => $lng['panel']['yes'], 'value' => '1') ), 'value' => array('1'), 'mandatory' => true ), 'ftps' => array( 'label' => $lng['customer']['ftps'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'ul_field' => $ftps_ul ), 'tickets' => array( 'label' => $lng['customer']['tickets'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'visible' => (Settings::Get('ticket.enabled') == '1' ? true : false), 'ul_field' => $tickets_ul ), 'mysqls' => array( 'label' => $lng['customer']['mysqls'], 'type' => 'textul', 'value' => 0, 'maxlength' => 9, 'mandatory' => true, 'ul_field' => $mysqls_ul ), 'phpenabled' => array( 'label' => $lng['admin']['phpenabled'].'?', 'type' => 'checkbox', 'values' => array( array ('label' => $lng['panel']['yes'], 'value' => '1') ), 'value' => array('1') ), 'perlenabled' => array( 'label' => $lng['admin']['perlenabled'].'?', 'type' => 'checkbox', 'values' => array( array ('label' => $lng['panel']['yes'], 'value' => '1') ) ) ) ) ) ) );