Marius Burkard
2016-07-01 49441bdd0f3ff75d5092d5b832b97ea722a66363
commit | author | age
9f94a1 1 <?php
MF 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 if($_SESSION['s']['user']['typ'] == 'admin') {
17     $liste["name"]     = "xmpp_domain_admin";
18 } else {
19     $liste["name"]     = "xmpp_domain";
20 }
21
22 // Database table
23 $liste["table"]    = "xmpp_domain";
24
25 // Index index field of the database table
26 $liste["table_idx"]   = "domain_id";
27
28 // Search Field Prefix
29 $liste["search_prefix"]  = "search_";
30
31 // Records per page
32 $liste["records_per_page"]  = "15";
33
34 // Script File of the list
35 $liste["file"]    = "xmpp_domain_list.php";
36
37 // Script file of the edit form
38 $liste["edit_file"]   = "xmpp_domain_edit.php";
39
40 // Script File of the delete script
41 $liste["delete_file"]  = "xmpp_domain_del.php";
42
43 // Paging Template
44 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
45
46 // Enable auth
47 $liste["auth"]    = "yes";
48
49
50 /*****************************************************
51 * Suchfelder
52 *****************************************************/
53
54
55 $liste["item"][] = array( 'field'  => "active",
56     'datatype' => "VARCHAR",
57     'formtype' => "SELECT",
58     'op'  => "=",
59     'prefix' => "",
60     'suffix' => "",
61     'width'  => "",
0ea7b9 62     '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>"));
9f94a1 63
MF 64
65 if($_SESSION['s']['user']['typ'] == 'admin') {
66     $liste["item"][] = array( 'field'  => "sys_groupid",
67         'datatype' => "INTEGER",
68         'formtype' => "SELECT",
69         'op'  => "=",
70         'prefix' => "",
71         'suffix' => "",
72         'datasource' => array (  'type' => 'SQL',
73             'querystring' => 'SELECT groupid, name FROM sys_group WHERE groupid != 1 ORDER BY name',
74             'keyfield'=> 'groupid',
75             'valuefield'=> 'name'
76         ),
77         'width'  => "",
78         'value'  => "");
79 }
80
81
82 $liste["item"][] = array( 'field'  => "server_id",
83     'datatype' => "INTEGER",
84     'formtype' => "SELECT",
85     'op'  => "like",
86     'prefix' => "",
87     'suffix' => "",
88     'datasource' => array (  'type' => 'SQL',
89         'querystring' => 'SELECT a.server_id, a.server_name FROM server a, xmpp_domain b WHERE (a.server_id = b.server_id) AND ({AUTHSQL-B}) ORDER BY a.server_name',
90         'keyfield'=> 'server_id',
91         'valuefield'=> 'server_name'
92     ),
93     'width'  => "",
94     'value'  => "");
95
96 $liste["item"][] = array( 'field'  => "domain",
97     'datatype' => "VARCHAR",
98     'filters'   => array( 0 => array( 'event' => 'SHOW',
99             'type' => 'IDNTOUTF8')
100     ),
101     'formtype' => "TEXT",
102     'op'  => "like",
103     'prefix' => "%",
104     'suffix' => "%",
105     'width'  => "",
106     'value'  => "");
107
108
109 ?>