spamfilter_users.list.php 2.47 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/*
	Datatypes:
	- INTEGER
	- DOUBLE
	- CURRENCY
	- VARCHAR
	- TEXT
	- DATE
*/



// Name of the list
16
$liste["name"]     = "spamfilter_users";
17
18

// Database table
19
$liste["table"]    = "spamfilter_users";
20
21

// Index index field of the database table
22
$liste["table_idx"]   = "id";
23
24

// Search Field Prefix
25
$liste["search_prefix"]  = "search_";
26
27

// Records per page
28
$liste["records_per_page"]  = "15";
29
30

// Script File of the list
31
$liste["file"]    = "spamfilter_users_list.php";
32
33

// Script file of the edit form
34
$liste["edit_file"]   = "spamfilter_users_edit.php";
35
36

// Script File of the delete script
37
$liste["delete_file"]  = "spamfilter_users_del.php";
38
39

// Paging Template
40
$liste["paging_tpl"]  = "templates/paging.tpl.htm";
41
42

// Enable auth
43
$liste["auth"]    = "yes";
44
45
46
47
48
49


/*****************************************************
* Suchfelder
*****************************************************/

50
51
52
53
54
55
56
$liste["item"][] = array( 'field'  => "local",
	'datatype' => "VARCHAR",
	'formtype' => "SELECT",
	'op'  => "=",
	'prefix' => "",
	'suffix' => "",
	'width'  => "",
Marius Cramer's avatar
Marius Cramer committed
57
	'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>"));
58
59
60
61
62
63
64
65
66


$liste["item"][] = array( 'field'  => "server_id",
	'datatype' => "VARCHAR",
	'formtype' => "SELECT",
	'op'  => "like",
	'prefix' => "%",
	'suffix' => "%",
	'datasource' => array (  'type' => 'SQL',
67
		'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND mirror_server_id = 0 ORDER BY server_name',
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
		'keyfield'=> 'server_id',
		'valuefield'=> 'server_name'
	),
	'width'  => "",
	'value'  => "");


$liste["item"][] = array( 'field'  => "priority",
	'datatype' => "VARCHAR",
	'formtype' => "SELECT",
	'op'  => "=",
	'prefix' => "",
	'suffix' => "",
	'width'  => "",
	'value'  => array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10));

$liste["item"][] = array( 'field'  => "policy_id",
	'datatype' => "VARCHAR",
	'formtype' => "SELECT",
	'op'  => "like",
	'prefix' => "%",
	'suffix' => "%",
	'datasource' => array (  'type' => 'SQL',
		'querystring' => 'SELECT id,policy_name FROM spamfilter_policy WHERE {AUTHSQL} ORDER BY policy_name',
		'keyfield'=> 'id',
		'valuefield'=> 'policy_name'
	),
	'width'  => "",
	'value'  => "");

$liste["item"][] = array( 'field'  => "fullname",
	'datatype' => "VARCHAR",
	'formtype' => "TEXT",
	'op'  => "like",
	'prefix' => "%",
	'suffix' => "%",
	'width'  => "",
	'value'  => "");


?>