Marius Burkard
2016-07-01 49441bdd0f3ff75d5092d5b832b97ea722a66363
commit | author | age
524077 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
b1a6a5 16 $liste["name"]     = "web_folder";
524077 17
T 18 // Database table
b1a6a5 19 $liste["table"]    = "web_folder";
524077 20
T 21 // Index index field of the database table
b1a6a5 22 $liste["table_idx"]   = "web_folder_id";
524077 23
T 24 // Search Field Prefix
b1a6a5 25 $liste["search_prefix"]  = "search_";
524077 26
T 27 // Records per page
b1a6a5 28 $liste["records_per_page"]  = "15";
524077 29
T 30 // Script File of the list
b1a6a5 31 $liste["file"]    = "web_folder_list.php";
524077 32
T 33 // Script file of the edit form
b1a6a5 34 $liste["edit_file"]   = "web_folder_edit.php";
524077 35
T 36 // Script File of the delete script
b1a6a5 37 $liste["delete_file"]  = "web_folder_del.php";
524077 38
T 39 // Paging Template
b1a6a5 40 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
524077 41
T 42 // Enable auth
b1a6a5 43 $liste["auth"]    = "yes";
524077 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>"));
524077 59
T 60
b1a6a5 61 $liste["item"][] = array( 'field'  => "server_id",
MC 62     'datatype' => "VARCHAR",
63     'formtype' => "SELECT",
64     'op'  => "like",
65     'prefix' => "%",
66     'suffix' => "%",
67     'datasource' => array (  'type' => 'SQL',
aff9ac 68         'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND mirror_server_id = 0 ORDER BY server_name',
b1a6a5 69         'keyfield'=> 'server_id',
MC 70         'valuefield'=> 'server_name'
71     ),
72     'width'  => "",
73     'value'  => "");
524077 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',
511ba5 85         'querystring' => "SELECT domain_id,domain FROM web_domain WHERE (type = 'vhost' OR type = 'vhostsubdomain' OR type = 'vhostalias') AND {AUTHSQL} ORDER BY domain",
b1a6a5 86         'keyfield'=> 'domain_id',
MC 87         'valuefield'=> 'domain'
88     ),
89     'width'  => "",
90     'value'  => "");
524077 91
b1a6a5 92 $liste["item"][] = array( 'field'  => "path",
MC 93     'datatype' => "VARCHAR",
94     'formtype' => "TEXT",
95     'op'  => "like",
96     'prefix' => "%",
97     'suffix' => "%",
98     'width'  => "",
99     'value'  => "");
524077 100
T 101
b1a6a5 102 ?>