commit | author | age
|
a59731
|
1 |
<?php |
D |
2 |
|
|
3 |
/* |
|
4 |
Datatypes: |
|
5 |
- INTEGER |
|
6 |
- DOUBLE |
|
7 |
- CURRENCY |
|
8 |
- VARCHAR |
|
9 |
- TEXT |
|
10 |
- DATE |
|
11 |
*/ |
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
// Name of the list |
f1eace
|
16 |
if($_SESSION['s']['user']['typ'] == 'admin') { |
FT |
17 |
$liste["name"] = "dns_slave_admin"; |
|
18 |
} else { |
|
19 |
$liste["name"] = "dns_slave"; |
|
20 |
} |
a59731
|
21 |
|
D |
22 |
// Database table |
7fe908
|
23 |
$liste["table"] = "dns_slave"; |
a59731
|
24 |
|
D |
25 |
// Index index field of the database table |
7fe908
|
26 |
$liste["table_idx"] = "id"; |
a59731
|
27 |
|
D |
28 |
// Search Field Prefix |
7fe908
|
29 |
$liste["search_prefix"] = "search_"; |
a59731
|
30 |
|
D |
31 |
// Records per page |
7fe908
|
32 |
$liste["records_per_page"] = "15"; |
a59731
|
33 |
|
D |
34 |
// Script File of the list |
7fe908
|
35 |
$liste["file"] = "dns_slave_list.php"; |
a59731
|
36 |
|
D |
37 |
// Script file of the edit form |
7fe908
|
38 |
$liste["edit_file"] = "dns_slave_edit.php"; |
a59731
|
39 |
|
D |
40 |
// Script File of the delete script |
7fe908
|
41 |
$liste["delete_file"] = "dns_slave_del.php"; |
a59731
|
42 |
|
D |
43 |
// Paging Template |
7fe908
|
44 |
$liste["paging_tpl"] = "templates/paging.tpl.htm"; |
a59731
|
45 |
|
D |
46 |
// Enable auth |
7fe908
|
47 |
$liste["auth"] = "yes"; |
a59731
|
48 |
|
D |
49 |
|
|
50 |
/***************************************************** |
|
51 |
* Suchfelder |
|
52 |
*****************************************************/ |
|
53 |
|
|
54 |
|
222ea2
|
55 |
$liste["item"][] = array( 'field' => "active", |
7fe908
|
56 |
'datatype' => "VARCHAR", |
MC |
57 |
'formtype' => "SELECT", |
|
58 |
'op' => "=", |
|
59 |
'prefix' => "", |
|
60 |
'suffix' => "", |
|
61 |
'width' => "", |
|
62 |
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); |
a59731
|
63 |
|
D |
64 |
|
7fe908
|
65 |
$liste["item"][] = array( 'field' => "server_id", |
MC |
66 |
'datatype' => "VARCHAR", |
|
67 |
'formtype' => "SELECT", |
|
68 |
'op' => "like", |
|
69 |
'prefix' => "%", |
|
70 |
'suffix' => "%", |
|
71 |
'datasource'=> array ( 'type' => 'CUSTOM', |
|
72 |
'class' => 'custom_datasource', |
|
73 |
'function' => 'slave_dns_servers' |
|
74 |
), |
|
75 |
'width' => "", |
|
76 |
'value' => ""); |
f1eace
|
77 |
|
FT |
78 |
if($_SESSION['s']['user']['typ'] == 'admin') { |
|
79 |
$liste["item"][] = array( 'field' => "sys_groupid", |
|
80 |
'datatype' => "INTEGER", |
|
81 |
'formtype' => "SELECT", |
|
82 |
'op' => "=", |
|
83 |
'prefix' => "", |
|
84 |
'suffix' => "", |
|
85 |
'datasource' => array ( 'type' => 'SQL', |
|
86 |
'querystring' => 'SELECT groupid, name FROM sys_group WHERE groupid != 1 ORDER BY name', |
|
87 |
'keyfield'=> 'groupid', |
|
88 |
'valuefield'=> 'name' |
|
89 |
), |
|
90 |
'width' => "", |
|
91 |
'value' => ""); |
|
92 |
} |
a59731
|
93 |
|
7fe908
|
94 |
$liste["item"][] = array( 'field' => "origin", |
MC |
95 |
'datatype' => "VARCHAR", |
|
96 |
'filters' => array( 0 => array( 'event' => 'SHOW', |
|
97 |
'type' => 'IDNTOUTF8') |
|
98 |
), |
|
99 |
'formtype' => "TEXT", |
|
100 |
'op' => "like", |
|
101 |
'prefix' => "%", |
|
102 |
'suffix' => "%", |
|
103 |
'width' => "", |
|
104 |
'value' => ""); |
a59731
|
105 |
|
D |
106 |
|
7fe908
|
107 |
$liste["item"][] = array( 'field' => "ns", |
MC |
108 |
'datatype' => "VARCHAR", |
|
109 |
'filters' => array( 0 => array( 'event' => 'SHOW', |
|
110 |
'type' => 'IDNTOUTF8') |
|
111 |
), |
|
112 |
'formtype' => "TEXT", |
|
113 |
'op' => "like", |
|
114 |
'prefix' => "%", |
|
115 |
'suffix' => "%", |
|
116 |
'width' => "", |
|
117 |
'value' => ""); |
a59731
|
118 |
|
7fe908
|
119 |
?> |