|
38 | 38 |
|
39 | 39 | */ |
40 | 40 |
|
41 | | -$form["title"] = "Client"; |
42 | | -$form["description"] = ""; |
43 | | -$form["name"] = "client"; |
44 | | -$form["action"] = "client_edit.php"; |
45 | | -$form["db_table"] = "client"; |
| 41 | +$form["title"] = "Client"; |
| 42 | +$form["description"] = ""; |
| 43 | +$form["name"] = "client"; |
| 44 | +$form["action"] = "client_edit.php"; |
| 45 | +$form["db_table"] = "client"; |
46 | 46 | $form["db_table_idx"] = "client_id"; |
47 | | -$form["db_history"] = "yes"; |
| 47 | +$form["db_history"] = "yes"; |
48 | 48 | $form["tab_default"] = "address"; |
49 | 49 | $form["list_default"] = "client_list.php"; |
50 | | -$form["auth"] = 'yes'; |
| 50 | +$form["auth"] = 'yes'; |
51 | 51 |
|
52 | 52 | $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user |
53 | 53 | $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user |
|
101 | 101 | 'contact_name' => array ( |
102 | 102 | 'datatype' => 'VARCHAR', |
103 | 103 | 'formtype' => 'TEXT', |
104 | | - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
105 | | - 'errmsg'=> 'contact_error_empty'), |
106 | | - ), |
| 104 | + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| 105 | + 'errmsg'=> 'contact_error_empty'), |
| 106 | + ), |
107 | 107 | 'default' => '', |
108 | 108 | 'value' => '', |
109 | 109 | 'separator' => '', |
|
129 | 129 | 'datatype' => 'VARCHAR', |
130 | 130 | 'formtype' => 'TEXT', |
131 | 131 | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
132 | | - 'errmsg'=> 'username_error_empty'), |
133 | | - 1 => array ( 'type' => 'CUSTOM', |
134 | | - 'class' => 'validate_client', |
135 | | - 'function' => 'username_unique', |
136 | | - 'errmsg'=> 'username_error_unique'), |
137 | | - 2 => array ( 'type' => 'CUSTOM', |
138 | | - 'class' => 'validate_client', |
139 | | - 'function' => 'username_collision', |
140 | | - 'errmsg'=> 'username_error_collision'), |
141 | | - 3 => array ( 'type' => 'REGEX', |
142 | | - 'regex' => '/^[\w\.\-\_]{0,64}$/', |
143 | | - 'errmsg'=> 'username_error_regex'), |
144 | | - ), |
| 132 | + 'errmsg'=> 'username_error_empty'), |
| 133 | + 1 => array ( 'type' => 'CUSTOM', |
| 134 | + 'class' => 'validate_client', |
| 135 | + 'function' => 'username_unique', |
| 136 | + 'errmsg'=> 'username_error_unique'), |
| 137 | + 2 => array ( 'type' => 'CUSTOM', |
| 138 | + 'class' => 'validate_client', |
| 139 | + 'function' => 'username_collision', |
| 140 | + 'errmsg'=> 'username_error_collision'), |
| 141 | + 3 => array ( 'type' => 'REGEX', |
| 142 | + 'regex' => '/^[\w\.\-\_]{0,64}$/', |
| 143 | + 'errmsg'=> 'username_error_regex'), |
| 144 | + ), |
145 | 145 | 'default' => '', |
146 | 146 | 'value' => '', |
147 | 147 | 'separator' => '', |
|
235 | 235 | ), |
236 | 236 | 'country' => array ( |
237 | 237 | 'datatype' => 'VARCHAR', |
238 | | - |
239 | 238 | 'formtype' => 'SELECT', |
240 | 239 | 'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''), |
241 | | - 'datasource' => array ( 'type' => 'SQL', |
242 | | - 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', |
243 | | - 'keyfield'=> 'iso', |
244 | | - 'valuefield'=> 'printable_name' |
245 | | - ), |
| 240 | + 'datasource' => array ( 'type' => 'SQL', |
| 241 | + 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY iso ASC', |
| 242 | + 'keyfield' => 'iso', |
| 243 | + 'valuefield' => 'printable_name' |
| 244 | + ), |
246 | 245 | 'value' => '' |
247 | 246 | ), |
248 | 247 | 'telephone' => array ( |
|
0 commit comments