tbrehm
2012-05-10 f7fceed4bd17a1672068f2e57d517365cdeb76c7
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
16 $liste["name"]                 = "dns_slave";
17
18 // Database table
19 $liste["table"]             = "dns_slave";
20
21 // Index index field of the database table
22 $liste["table_idx"]            = "id";
23
24 // Search Field Prefix
25 $liste["search_prefix"]     = "search_";
26
27 // Records per page
a2e66c 28 $liste["records_per_page"]     = "15";
a59731 29
D 30 // Script File of the list
31 $liste["file"]                = "dns_slave_list.php";
32
33 // Script file of the edit form
34 $liste["edit_file"]            = "dns_slave_edit.php";
35
36 // Script File of the delete script
37 $liste["delete_file"]        = "dns_slave_del.php";
38
39 // Paging Template
40 $liste["paging_tpl"]        = "templates/paging.tpl.htm";
41
42 // Enable auth
43 $liste["auth"]                = "yes";
44
45
46 /*****************************************************
47 * Suchfelder
48 *****************************************************/
49
50
51 $liste["item"][] = array(    'field'        => "active",
52                             'datatype'    => "VARCHAR",
53                             'formtype'    => "SELECT",
54                             'op'        => "=",
55                             'prefix'    => "",
56                             'suffix'    => "",
57                             'width'        => "",
f7fcee 58                             '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 59
D 60
61 $liste["item"][] = array(    'field'        => "server_id",
62                             'datatype'    => "VARCHAR",
63                             'formtype'    => "SELECT",
64                             'op'        => "like",
65                             'prefix'    => "%",
66                             'suffix'    => "%",
67                             'datasource'    => array (     'type'    => 'CUSTOM',
68                                                         'class'=> 'custom_datasource',
69                                                         'function'=> 'dns_servers'
70                                                        ),
71                             'width'        => "",
72                             'value'        => "");
73
74 $liste["item"][] = array(    'field'        => "origin",
75                             'datatype'    => "VARCHAR",
76                             'formtype'    => "TEXT",
77                             'op'        => "like",
78                             'prefix'    => "%",
79                             'suffix'    => "%",
80                             'width'        => "",
81                             'value'        => "");
82
83
84 $liste["item"][] = array(    'field'        => "ns",
85                             'datatype'    => "VARCHAR",
86                             'formtype'    => "TEXT",
87                             'op'        => "like",
88                             'prefix'    => "%",
89                             'suffix'    => "%",
90                             'width'        => "",
91                             'value'        => "");
92
93
94
95
96
97 ?>