Marius Burkard
2016-07-01 49441bdd0f3ff75d5092d5b832b97ea722a66363
commit | author | age
54fb59 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"]     = "mail_content_filter";
54fb59 17
T 18 // Database table
b1a6a5 19 $liste["table"]    = "mail_content_filter";
54fb59 20
T 21 // Index index field of the database table
b1a6a5 22 $liste["table_idx"]   = "content_filter_id";
54fb59 23
T 24 // Search Field Prefix
b1a6a5 25 $liste["search_prefix"]  = "search_";
54fb59 26
T 27 // Records per page
b1a6a5 28 $liste["records_per_page"]  = "15";
54fb59 29
T 30 // Script File of the list
b1a6a5 31 $liste["file"]    = "mail_content_filter_list.php";
54fb59 32
T 33 // Script file of the edit form
b1a6a5 34 $liste["edit_file"]   = "mail_content_filter_edit.php";
54fb59 35
T 36 // Script File of the delete script
b1a6a5 37 $liste["delete_file"]  = "mail_content_filter_del.php";
54fb59 38
T 39 // Paging Template
b1a6a5 40 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
54fb59 41
T 42 // Enable auth
b1a6a5 43 $liste["auth"]    = "yes";
54fb59 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>"));
08caf7 59
54fb59 60
T 61
b1a6a5 62 $liste["item"][] = array( 'field'  => "server_id",
MC 63     'datatype' => "VARCHAR",
64     'formtype' => "SELECT",
65     'op'  => "like",
66     'prefix' => "%",
67     'suffix' => "%",
68     'datasource' => array (  'type' => 'SQL',
aff9ac 69         'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND mirror_server_id = 0 ORDER BY server_name',
b1a6a5 70         'keyfield'=> 'server_id',
MC 71         'valuefield'=> 'server_name'
72     ),
73     'width'  => "",
74     'value'  => "");
54fb59 75
b1a6a5 76 $liste["item"][] = array( 'field'  => "pattern",
MC 77     'datatype' => "VARCHAR",
78     'formtype' => "TEXT",
79     'op'  => "like",
80     'prefix' => "%",
81     'suffix' => "%",
82     'width'  => "",
83     'value'  => "");
54fb59 84
b1a6a5 85 $liste["item"][] = array( 'field'  => "action",
MC 86     'datatype' => "VARCHAR",
87     'formtype' => "SELECT",
88     'op'  => "like",
89     'prefix' => "%",
90     'suffix' => "%",
91     'width'  => "",
92     'value'  => array('DISCARD' => 'DISCARD', 'DUNNO'=>'DUNNO', 'FILTER'=>'FILTER', 'HOLD'=>'HOLD', 'IGNORE'=>'IGNORE', 'PREPEND'=>'PREPEND', 'REDIRECT'=>'REDIRECT', 'REPLACE'=>'REPLACE', 'REJECT'=>'REJECT', 'WARN'=>'WARN'));
54fb59 93
T 94
95
b1a6a5 96 ?>