commit | author | age
|
e22f1e
|
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 |
7d6ec3
|
16 |
if($_SESSION['s']['user']['typ'] == 'admin') { |
7fe908
|
17 |
$liste["name"] = "mail_domain_admin"; |
7d6ec3
|
18 |
} else { |
7fe908
|
19 |
$liste["name"] = "mail_domain"; |
7d6ec3
|
20 |
} |
e22f1e
|
21 |
|
T |
22 |
// Database table |
7fe908
|
23 |
$liste["table"] = "mail_domain"; |
e22f1e
|
24 |
|
T |
25 |
// Index index field of the database table |
7fe908
|
26 |
$liste["table_idx"] = "domain_id"; |
e22f1e
|
27 |
|
T |
28 |
// Search Field Prefix |
7fe908
|
29 |
$liste["search_prefix"] = "search_"; |
e22f1e
|
30 |
|
T |
31 |
// Records per page |
7fe908
|
32 |
$liste["records_per_page"] = "15"; |
e22f1e
|
33 |
|
T |
34 |
// Script File of the list |
7fe908
|
35 |
$liste["file"] = "mail_domain_list.php"; |
e22f1e
|
36 |
|
T |
37 |
// Script file of the edit form |
7fe908
|
38 |
$liste["edit_file"] = "mail_domain_edit.php"; |
e22f1e
|
39 |
|
T |
40 |
// Script File of the delete script |
7fe908
|
41 |
$liste["delete_file"] = "mail_domain_del.php"; |
e22f1e
|
42 |
|
T |
43 |
// Paging Template |
7fe908
|
44 |
$liste["paging_tpl"] = "templates/paging.tpl.htm"; |
e22f1e
|
45 |
|
T |
46 |
// Enable auth |
7fe908
|
47 |
$liste["auth"] = "yes"; |
e22f1e
|
48 |
|
T |
49 |
|
|
50 |
/***************************************************** |
|
51 |
* Suchfelder |
|
52 |
*****************************************************/ |
|
53 |
|
|
54 |
|
7fe908
|
55 |
$liste["item"][] = array( 'field' => "active", |
MC |
56 |
'datatype' => "VARCHAR", |
|
57 |
'formtype' => "SELECT", |
|
58 |
'op' => "=", |
|
59 |
'prefix' => "", |
|
60 |
'suffix' => "", |
|
61 |
'width' => "", |
2c408f
|
62 |
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('Yes')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('No')."</span></div>")); |
08caf7
|
63 |
|
e22f1e
|
64 |
|
7d6ec3
|
65 |
if($_SESSION['s']['user']['typ'] == 'admin') { |
7fe908
|
66 |
$liste["item"][] = array( 'field' => "sys_groupid", |
MC |
67 |
'datatype' => "INTEGER", |
|
68 |
'formtype' => "SELECT", |
|
69 |
'op' => "=", |
|
70 |
'prefix' => "", |
|
71 |
'suffix' => "", |
|
72 |
'datasource' => array ( 'type' => 'SQL', |
7ee336
|
73 |
//'querystring' => 'SELECT groupid, name FROM sys_group WHERE groupid != 1 ORDER BY name', |
MC |
74 |
'querystring' => "SELECT sys_group.groupid,CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), IF(client.contact_firstname != '', CONCAT(client.contact_firstname, ' '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as name FROM sys_group, client WHERE sys_group.groupid != 1 AND sys_group.client_id = client.client_id ORDER BY client.company_name, client.contact_name", |
7fe908
|
75 |
'keyfield'=> 'groupid', |
MC |
76 |
'valuefield'=> 'name' |
|
77 |
), |
|
78 |
'width' => "", |
|
79 |
'value' => ""); |
7d6ec3
|
80 |
} |
T |
81 |
|
e22f1e
|
82 |
|
7fe908
|
83 |
$liste["item"][] = array( 'field' => "server_id", |
9cb6fe
|
84 |
'datatype' => "INTEGER", |
7fe908
|
85 |
'formtype' => "SELECT", |
MC |
86 |
'op' => "like", |
9cb6fe
|
87 |
'prefix' => "", |
TB |
88 |
'suffix' => "", |
7fe908
|
89 |
'datasource' => array ( 'type' => 'SQL', |
MC |
90 |
'querystring' => 'SELECT a.server_id, a.server_name FROM server a, mail_domain b WHERE (a.server_id = b.server_id) AND ({AUTHSQL-B}) ORDER BY a.server_name', |
|
91 |
'keyfield'=> 'server_id', |
|
92 |
'valuefield'=> 'server_name' |
|
93 |
), |
|
94 |
'width' => "", |
|
95 |
'value' => ""); |
e22f1e
|
96 |
|
7fe908
|
97 |
$liste["item"][] = array( 'field' => "domain", |
MC |
98 |
'datatype' => "VARCHAR", |
|
99 |
'filters' => array( 0 => array( 'event' => 'SHOW', |
|
100 |
'type' => 'IDNTOUTF8') |
|
101 |
), |
|
102 |
'formtype' => "TEXT", |
|
103 |
'op' => "like", |
|
104 |
'prefix' => "%", |
|
105 |
'suffix' => "%", |
|
106 |
'width' => "", |
|
107 |
'value' => ""); |
e22f1e
|
108 |
|
T |
109 |
|
7fe908
|
110 |
?> |