commit | author | age
|
532ae5
|
1 |
<?php |
L |
2 |
|
|
3 |
/* |
|
4 |
Form Definition |
|
5 |
|
|
6 |
Tabledefinition |
|
7 |
|
|
8 |
Datatypes: |
|
9 |
- INTEGER (Forces the input to Int) |
|
10 |
- DOUBLE |
|
11 |
- CURRENCY (Formats the values to currency notation) |
|
12 |
- VARCHAR (no format check, maxlength: 255) |
|
13 |
- TEXT (no format check) |
|
14 |
- DATE (Dateformat, automatic conversion to timestamps) |
|
15 |
|
|
16 |
Formtype: |
|
17 |
- TEXT (Textfield) |
|
18 |
- TEXTAREA (Textarea) |
|
19 |
- PASSWORD (Password textfield, input is not shown when edited) |
|
20 |
- SELECT (Select option field) |
|
21 |
- RADIO |
|
22 |
- CHECKBOX |
|
23 |
- CHECKBOXARRAY |
|
24 |
- FILE |
|
25 |
|
|
26 |
VALUE: |
|
27 |
- Wert oder Array |
|
28 |
|
|
29 |
Hint: |
|
30 |
The ID field of the database table is not part of the datafield definition. |
|
31 |
The ID field must be always auto incement (int or bigint). |
|
32 |
|
|
33 |
|
|
34 |
*/ |
|
35 |
|
b1a6a5
|
36 |
$form["title"] = "DNS Wizard template"; |
MC |
37 |
$form["description"] = ""; |
|
38 |
$form["name"] = "dns_template"; |
|
39 |
$form["action"] = "dns_template_edit.php"; |
|
40 |
$form["db_table"] = "dns_template"; |
|
41 |
$form["db_table_idx"] = "template_id"; |
|
42 |
$form["db_history"] = "yes"; |
|
43 |
$form["tab_default"] = "template"; |
|
44 |
$form["list_default"] = "dns_template_list.php"; |
|
45 |
$form["auth"] = 'yes'; // yes / no |
532ae5
|
46 |
|
L |
47 |
$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user |
|
48 |
$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user |
|
49 |
$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete |
|
50 |
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete |
|
51 |
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete |
|
52 |
|
|
53 |
$form["tabs"]['template'] = array ( |
b1a6a5
|
54 |
'title' => "DNS Template", |
MC |
55 |
'width' => 100, |
|
56 |
'template' => "templates/dns_template_edit.htm", |
|
57 |
'fields' => array ( |
|
58 |
//################################# |
|
59 |
// Begin Datatable fields |
|
60 |
//################################# |
532ae5
|
61 |
'name' => array ( |
b1a6a5
|
62 |
'datatype' => 'VARCHAR', |
MC |
63 |
'formtype' => 'TEXT', |
|
64 |
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
|
65 |
'errmsg'=> 'name_error_empty'), |
|
66 |
), |
|
67 |
'default' => '', |
|
68 |
'value' => '', |
|
69 |
'width' => '40', |
|
70 |
'maxlength' => '255' |
532ae5
|
71 |
), |
L |
72 |
'fields' => array ( |
b1a6a5
|
73 |
'datatype' => 'VARCHAR', |
MC |
74 |
'formtype' => 'CHECKBOXARRAY', |
|
75 |
'default' => '', |
992797
|
76 |
'separator' => ',', |
28cd07
|
77 |
'value' => array('DOMAIN' => 'Domain', 'IP' => 'IP Address', 'IPV6' => 'IPv6 Address', 'NS1' => 'NS 1', 'NS2' => 'NS 2', 'EMAIL' => 'Email', 'DKIM' => 'DKIM', 'DNSSEC' => 'DNSSEC'), |
b1a6a5
|
78 |
'validators' => array ( 0 => array ('type' => 'CUSTOM', |
MC |
79 |
'class' => 'validate_dkim', |
|
80 |
'function' => 'check_template', |
|
81 |
'errmsg'=> 'dkim_domain_error'), |
|
82 |
), |
992797
|
83 |
), |
MC |
84 |
'template' => array ( |
b1a6a5
|
85 |
'datatype' => 'TEXT', |
MC |
86 |
'formtype' => 'TEXTAREA', |
|
87 |
'default' => '', |
|
88 |
'value' => '', |
|
89 |
'cols' => '40', |
|
90 |
'rows' => '15' |
532ae5
|
91 |
), |
L |
92 |
'visible' => array ( |
b1a6a5
|
93 |
'datatype' => 'VARCHAR', |
MC |
94 |
'formtype' => 'CHECKBOX', |
|
95 |
'default' => 'Y', |
|
96 |
'value' => array(0 => 'N', 1 => 'Y') |
532ae5
|
97 |
), |
b1a6a5
|
98 |
//################################# |
MC |
99 |
// ENDE Datatable fields |
|
100 |
//################################# |
532ae5
|
101 |
) |
L |
102 |
); |
992797
|
103 |
|
MC |
104 |
|
|
105 |
|
bd68aa
|
106 |
?> |