| | |
| | | Hint: |
| | | The ID field of the database table is not part of the datafield definition. |
| | | The ID field must be always auto incement (int or bigint). |
| | | |
| | | Search: |
| | | - searchable = 1 or searchable = 2 include the field in the search |
| | | - searchable = 1: this field will be the title of the search result |
| | | - searchable = 2: this field will be included in the description of the search result |
| | | |
| | | |
| | | */ |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'contact_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 1 |
| | | ), |
| | | 'customer_no' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'username' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'class' => 'validate_client', |
| | | 'function' => 'username_unique', |
| | | 'errmsg'=> 'username_error_unique'), |
| | | 2 => array ( 'type' => 'REGEX', |
| | | 2 => array ( 'type' => 'CUSTOM', |
| | | 'class' => 'validate_client', |
| | | 'function' => 'username_collision', |
| | | 'errmsg'=> 'username_error_collision'), |
| | | 3 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^[\w\.\-\_]{0,64}$/', |
| | | 'errmsg'=> 'username_error_regex'), |
| | | ), |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'password' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'zip' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'city' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'state' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'country' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | |
| | | 'formtype' => 'SELECT', |
| | | 'default' => $conf["country"], |
| | | 'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''), |
| | | 'datasource' => array ( 'type' => 'SQL', |
| | | 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', |
| | | 'keyfield'=> 'iso', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'mobile' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'fax' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'email' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'internet' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | 'cols' => '', |
| | | 'searchable' => 2 |
| | | ), |
| | | 'icq' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | |
| | | 'web_php_options' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOXARRAY', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'web_php_options_notempty'), |
| | | ), |
| | | 'default' => '', |
| | | 'separator' => ',', |
| | | 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') |
| | | 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') |
| | | ), |
| | | 'limit_web_aliasdomain' => array ( |
| | | 'datatype' => 'INTEGER', |
| | |
| | | 'ssh_chroot' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOXARRAY', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'ssh_chroot_notempty'), |
| | | ), |
| | | 'default' => '', |
| | | 'separator' => ',', |
| | | 'value' => array('no' => 'None', 'jailkit' => 'Jailkit') |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'limit_openvz_vm' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT', |
| | | 'errmsg'=> 'limit_openvz_vm_error_notint'), |
| | | ), |
| | | 'default' => '0', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '10', |
| | | 'maxlength' => '10', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'limit_openvz_vm_template_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | 'datasource' => array ( 'type' => 'SQL', |
| | | 'querystring' => 'SELECT template_id,template_name FROM openvz_template WHERE 1 ORDER BY template_name', |
| | | 'keyfield'=> 'template_id', |
| | | 'valuefield'=> 'template_name' |
| | | ), |
| | | 'value' => array(0 => ' ') |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |