Marius Burkard
2016-07-01 49441bdd0f3ff75d5092d5b832b97ea722a66363
commit | author | age
18341e 1 <?php
T 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
3669b3 16 $liste["name"]     = "web_childdomain";
18341e 17
T 18 // Database table
b1a6a5 19 $liste["table"]    = "web_domain";
18341e 20
T 21 // Index index field of the database table
b1a6a5 22 $liste["table_idx"]   = "domain_id";
18341e 23
T 24 // Search Field Prefix
b1a6a5 25 $liste["search_prefix"]  = "search_";
18341e 26
T 27 // Records per page
b1a6a5 28 $liste["records_per_page"]  = "15";
18341e 29
T 30 // Script File of the list
3669b3 31 $liste["file"]    = "web_childdomain_list.php";
18341e 32
T 33 // Script file of the edit form
3669b3 34 $liste["edit_file"]   = "web_childdomain_edit.php";
18341e 35
T 36 // Script File of the delete script
3669b3 37 $liste["delete_file"]  = "web_childdomain_del.php";
18341e 38
T 39 // Paging Template
b1a6a5 40 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
18341e 41
T 42 // Enable auth
b1a6a5 43 $liste["auth"]    = "yes";
18341e 44
T 45
46 /*****************************************************
47 * Suchfelder
48 *****************************************************/
49
50
b1a6a5 51 $liste["item"][] = array( 'field'  => "active",
MC 52     'datatype' => "VARCHAR",
53     'formtype' => "SELECT",
54     'op'  => "=",
55     'prefix' => "",
56     'suffix' => "",
57     'width'  => "",
0ea7b9 58     'value'  => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
18341e 59
T 60
b1a6a5 61 $liste["item"][] = array( 'field'  => "server_id",
aff9ac 62     'datatype' => "INTEGER",
b1a6a5 63     'formtype' => "SELECT",
MC 64     'op'  => "like",
65     'prefix' => "%",
66     'suffix' => "%",
67     'datasource' => array (  'type' => 'SQL',
aff9ac 68         'querystring' => 'SELECT a.server_id, a.server_name FROM server a, web_domain b WHERE (a.server_id = b.server_id) AND ({AUTHSQL-B}) ORDER BY a.server_name',
b1a6a5 69         'keyfield'=> 'server_id',
MC 70         'valuefield'=> 'server_name'
71     ),
72     'width'  => "",
73     'value'  => "");
18341e 74
b1a6a5 75 $liste["item"][] = array( 'field'  => "parent_domain_id",
MC 76     'datatype' => "VARCHAR",
77     'filters'   => array( 0 => array( 'event' => 'SHOW',
78             'type' => 'IDNTOUTF8')
79     ),
80     'formtype' => "SELECT",
81     'op'  => "=",
82     'prefix' => "",
83     'suffix' => "",
84     'datasource' => array (  'type' => 'SQL',
85         'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain",
86         'keyfield'=> 'domain_id',
87         'valuefield'=> 'domain'
88     ),
89     'width'  => "",
90     'value'  => "");
18341e 91
b1a6a5 92 $liste["item"][] = array( 'field'  => "domain",
MC 93     'datatype' => "VARCHAR",
94     'filters'   => array( 0 => array( 'event' => 'SHOW',
95             'type' => 'IDNTOUTF8')
96     ),
97     'formtype' => "TEXT",
98     'op'  => "like",
99     'prefix' => "%",
100     'suffix' => "%",
101     'width'  => "",
102     'value'  => "");
18341e 103
T 104
b1a6a5 105 ?>