server.list.php 3.04 KB
Newer Older
tbrehm's avatar
tbrehm committed
1
2
3
4
5
6
7
<?php
/*
	Datatypes:
	- INTEGER
	- DOUBLE
	- CURRENCY
	- VARCHAR
8
	- SELECT
tbrehm's avatar
tbrehm committed
9
10
11
	- DATE
*/

12
//* Name of the list
13
$liste['name']     = 'server';
tbrehm's avatar
tbrehm committed
14

15
//* Database table
16
$liste['table']    = 'server';
tbrehm's avatar
tbrehm committed
17

18
//* Index index field of the database table
19
$liste['table_idx']   = 'server_id';
tbrehm's avatar
tbrehm committed
20

21
//* Search Field Prefix
22
$liste['search_prefix']  = 'search_';
tbrehm's avatar
tbrehm committed
23

24
//* Records per page
25
$liste['records_per_page']  = "15";
tbrehm's avatar
tbrehm committed
26

27
//* Script File of the list
28
$liste['file']    = 'server_list.php';
tbrehm's avatar
tbrehm committed
29

30
//* Script file of the edit form
31
$liste['edit_file']   = 'server_edit.php';
tbrehm's avatar
tbrehm committed
32

33
//* Script File of the delete script
34
$liste['delete_file']  = 'server_del.php';
tbrehm's avatar
tbrehm committed
35

36
//* Paging Template
37
$liste['paging_tpl']  = 'templates/paging.tpl.htm';
tbrehm's avatar
tbrehm committed
38

39
//* Enable auth
40
$liste['auth']    = 'yes';
tbrehm's avatar
tbrehm committed
41
42
43
44
45
46


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

47
48
49
50
51
52
53
54
55
56
57
58
59
60
$liste['item'][] = array( 'field'  => 'server_name',
	'datatype' => 'VARCHAR',
	'filters'   => array( 0 => array( 'event' => 'SHOW',
			'type' => 'IDNTOUTF8')
	),
	'formtype' => 'TEXT',
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '',
	'value'  => '');

$liste['item'][] = array( 'field'  => 'mail_server',
	'datatype' => 'VARCHAR',
61
	'formtype' => 'SELECT',
62
63
64
65
66
67
68
69
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '',
	'value'  => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));

$liste['item'][] = array( 'field'  => 'web_server',
	'datatype' => 'VARCHAR',
70
	'formtype' => 'SELECT',
71
72
73
74
75
76
77
78
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '',
	'value'  => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));

$liste['item'][] = array( 'field'  => 'dns_server',
	'datatype' => 'VARCHAR',
79
	'formtype' => 'SELECT',
80
81
82
83
84
85
86
87
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '',
	'value'  => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));

$liste['item'][] = array( 'field'  => 'file_server',
	'datatype' => 'VARCHAR',
88
	'formtype' => 'SELECT',
89
90
91
92
93
94
95
96
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '',
	'value'  => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));

$liste['item'][] = array( 'field'  => 'db_server',
	'datatype' => 'VARCHAR',
97
	'formtype' => 'SELECT',
98
99
100
101
102
103
104
105
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '',
	'value'  => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));

$liste['item'][] = array( 'field'  => 'vserver_server',
	'datatype' => 'VARCHAR',
106
	'formtype' => 'SELECT',
107
108
109
110
111
112
113
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '',
	'value'  => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));

?>