Marius Burkard
2016-05-04 d933cc2708fe10e648a9b454ba4c0b81ebb606c7
interface/web/client/form/client.tform.php
@@ -116,7 +116,10 @@
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => '',
         'searchable' => 1
         'searchable' => 1,
         'filters'   => array( 0 => array( 'event' => 'SAVE',
                                    'type' => 'TRIM'),
         ),
      ),
      'contact_name' => array (
         'datatype' => 'VARCHAR',
@@ -131,7 +134,10 @@
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => '',
         'searchable' => 1
         'searchable' => 1,
         'filters'   => array( 0 => array( 'event' => 'SAVE',
                                    'type' => 'TRIM'),
         ),
      ),
      'customer_no' => array (
         'datatype' => 'VARCHAR',
@@ -322,9 +328,10 @@
            2 => array( 'event' => 'SAVE',
               'type' => 'TOLOWER')
         ),
         'validators' => array (  0 => array ( 'type' => 'REGEX',
               'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
               'errmsg'=> 'email_error_isemail'),
         'validators' => array (
            0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'email_error_isemail'),
            1 => array ( 'type' => 'NOTEMPTY',
               'errmsg'=> 'email_error_empty'),
         ),
         'default' => '',
         'value'  => '',
@@ -372,7 +379,14 @@
               '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'),
                        2 => array(    'event' => 'SAVE',
                                    'type' => 'NOWHITESPACE')
         ),
      ),
      'company_id' => array (
         'datatype' => 'VARCHAR',
@@ -438,7 +452,14 @@
         'width'  => '30',
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => ''
         'cols'  => '',
         'filters'   => array( 0 => array(    'event' => 'SAVE',
                                    'type' => 'TRIM'),
                        1 => array(    'event' => 'SAVE',
                                    'type' => 'TOUPPER'),
                        2 => array(    'event' => 'SAVE',
                                    'type' => 'NOWHITESPACE')
         ),
      ),
      'bank_account_swift' => array (
         'datatype' => 'VARCHAR',
@@ -449,7 +470,14 @@
         'width'  => '30',
         'maxlength' => '255',
         'rows'  => '',
         'cols'  => ''
         'cols'  => '',
         'filters'   => array( 0 => array(    'event' => 'SAVE',
                                    'type' => 'TRIM'),
                        1 => array(    'event' => 'SAVE',
                                    'type' => 'TOUPPER'),
                        2 => array(    'event' => 'SAVE',
                                    'type' => 'NOWHITESPACE')
         ),
      ),
      'notes' => array (
         'datatype' => 'TEXT',
@@ -472,9 +500,8 @@
            2 => array( 'event' => 'SAVE',
               'type' => 'TOLOWER')
         ),
         'validators' => array (  0 => array ( 'type' => 'REGEX',
               'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
               'errmsg'=> 'paypal_email_error_isemail'),
         'validators' => array (
            0 => array ( 'type' => 'ISEMAIL', 'allowempty' => 'y', 'errmsg'=> 'email_error_isemail'),
         ),
         'default' => '',
         'value'  => '',
@@ -567,9 +594,7 @@
            'class'=> 'custom_datasource',
            'function'=> 'client_servers'
         ),
         'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
               'errmsg'=> 'no_mail_server_error'),
            1 => array ( 'type' => 'CUSTOM',
         'validators'    => array (  0 => array ( 'type' => 'CUSTOM',
               'class' => 'validate_client',
               'function' => 'check_used_servers',
               'errmsg'=> 'mail_servers_used'),
@@ -892,9 +917,7 @@
            'class'=> 'custom_datasource',
            'function'=> 'client_servers'
         ),
         'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
               'errmsg'=> 'no_web_server_error'),
            1 => array ( 'type' => 'CUSTOM',
         'validators'    => array (  0 => array ( 'type' => 'CUSTOM',
               'class' => 'validate_client',
               'function' => 'check_used_servers',
               'errmsg'=> 'web_servers_used'),
@@ -995,6 +1018,12 @@
         'default' => 'n',
         'value'  => array(0 => 'n', 1 => 'y')
      ),
      'limit_ssl_letsencrypt' => array (
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'n',
         'value'  => array(0 => 'n', 1 => 'y')
      ),
      'limit_web_aliasdomain' => array (
         'datatype' => 'INTEGER',
         'formtype' => 'TEXT',
@@ -1082,6 +1111,12 @@
         'default' => 'y',
         'value'  => array(0 => 'n', 1 => 'y')
      ),
      'limit_directive_snippets' => array (
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'n',
         'value'  => array(0 => 'n', 1 => 'y')
      ),
      'default_dnsserver' => array (
         'datatype' => 'INTEGER',
         'formtype' => 'SELECT',
@@ -1102,9 +1137,7 @@
            'class'=> 'custom_datasource',
            'function'=> 'client_servers'
         ),
         'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
               'errmsg'=> 'no_dns_server_error'),
            1 => array ( 'type' => 'CUSTOM',
         'validators'    => array (  0 => array ( 'type' => 'CUSTOM',
               'class' => 'validate_client',
               'function' => 'check_used_servers',
               'errmsg'=> 'dns_servers_used'),
@@ -1199,9 +1232,7 @@
            'class'=> 'custom_datasource',
            'function'=> 'client_servers'
         ),
         'validators'    => array (  0 => array (    'type'  => 'NOTEMPTY',
               'errmsg'=> 'no_db_server_error'),
            1 => array ( 'type' => 'CUSTOM',
         'validators'    => array (  0 => array ( 'type' => 'CUSTOM',
               'class' => 'validate_client',
               'function' => 'check_used_servers',
               'errmsg'=> 'db_servers_used'),
@@ -1223,6 +1254,20 @@
         'rows'  => '',
         'cols'  => ''
      ),
      'limit_database_user' => array (
         'datatype' => 'INTEGER',
         'formtype' => 'TEXT',
         'validators' => array (  0 => array ( 'type' => 'ISINT',
               'errmsg'=> 'limit_database_user_notint'),
         ),
         'default' => '-1',
         'value'  => '',
         'separator' => '',
         'width'  => '10',
         'maxlength' => '10',
         'rows'  => '',
         'cols'  => ''
      ),
      'limit_database_quota' => array (
         'datatype' => 'INTEGER',
         'formtype' => 'TEXT',