| | |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '', |
| | | 'searchable' => 1 |
| | | 'searchable' => 1, |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'TRIM'), |
| | | ), |
| | | ), |
| | | 'contact_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '', |
| | | 'searchable' => 1 |
| | | 'searchable' => 1, |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'TRIM'), |
| | | ), |
| | | ), |
| | | 'customer_no' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 2 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i', |
| | | 'errmsg'=> 'email_error_isemail'), |
| | | 1 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'email_error_empty'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | 'class' => 'validate_client', |
| | | 'function' => 'check_vat_id', |
| | | 'errmsg'=> 'invalid_vat_id'), |
| | | ), |
| | | ), |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'TRIM'), |
| | | 1 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOUPPER') |
| | | ), |
| | | ), |
| | | 'company_id' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'TRIM'), |
| | | 1 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOUPPER') |
| | | ), |
| | | ), |
| | | 'bank_account_swift' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'TRIM'), |
| | | 1 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOUPPER') |
| | | ), |
| | | ), |
| | | 'notes' => array ( |
| | | 'datatype' => 'TEXT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'default_xmppserver' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '1', |
| | | 'datasource' => array ( 'type' => 'CUSTOM', |
| | | 'class'=> 'custom_datasource', |
| | | 'function'=> 'client_servers' |
| | | ), |
| | | 'value' => '', |
| | | 'name' => 'default_xmppserver' |
| | | ), |
| | | 'xmpp_servers' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'MULTIPLE', |
| | | 'separator' => ',', |
| | | 'default' => '1', |
| | | 'datasource' => array ( 'type' => 'CUSTOM', |
| | | 'class'=> 'custom_datasource', |
| | | 'function'=> 'client_servers' |
| | | ), |
| | | 'validators' => array ( |
| | | 0 => array ( 'type' => 'CUSTOM', |
| | | 'class' => 'validate_client', |
| | | 'function' => 'check_used_servers', |
| | | 'errmsg'=> 'xmpp_servers_used'), |
| | | ), |
| | | 'value' => '', |
| | | 'name' => 'xmpp_servers' |
| | | ), |
| | | 'limit_xmpp_domain' => array( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT', |
| | | 'errmsg'=> 'limit_xmpp_domain_error_notint'), |
| | | ), |
| | | 'default' => '-1', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '10', |
| | | 'maxlength' => '10', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'limit_xmpp_user' => array( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT', |
| | | 'errmsg'=> 'limit_xmpp_user_error_notint'), |
| | | ), |
| | | 'default' => '-1', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '10', |
| | | 'maxlength' => '10', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'limit_xmpp_muc' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | 'limit_xmpp_anon' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | 'limit_xmpp_vjud' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | 'limit_xmpp_proxy' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | 'limit_xmpp_status' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | 'limit_xmpp_pastebin' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | 'limit_xmpp_httparchive' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | 'default_webserver' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |