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

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

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

18
//* Primary index column
19
$liste['table_idx']   = 'server_ip_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 for listing
28
$liste['file']    = 'server_ip_list.php';
tbrehm's avatar
tbrehm committed
29

30
//* Script file to edit
31
$liste['edit_file']   = 'server_ip_edit.php';
tbrehm's avatar
tbrehm committed
32

33
//* Script file to delete
34
$liste['delete_file']  = 'server_ip_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']    = 'no';
tbrehm's avatar
tbrehm committed
41
42
43
44
45
46


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

47
$liste['item'][] = array( 'field'  => 'server_id',
Marius Cramer's avatar
Marius Cramer committed
48
	'datatype' => 'INTEGER',
49
	'formtype' => 'SELECT',
Marius Cramer's avatar
Marius Cramer committed
50
51
52
	'op'  => '=',
	'prefix' => '',
	'suffix' => '',
53
	'datasource' => array (  'type' => 'SQL',
54
		'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND mirror_server_id = 0 ORDER BY server_name',
55
56
57
58
59
60
61
		'keyfield'=> 'server_id',
		'valuefield'=> 'server_name'
	),
	'width'  => '',
	'value'  => '');

$liste['item'][] = array( 'field'  => 'client_id',
Marius Cramer's avatar
Marius Cramer committed
62
	'datatype' => 'INTEGER',
63
	'formtype' => 'SELECT',
Marius Cramer's avatar
Marius Cramer committed
64
65
66
	'op'  => '=',
	'prefix' => '',
	'suffix' => '',
67
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
	'datasource' => array (  'type' => 'SQL',
		'querystring' => 'SELECT client_id,contact_name FROM client WHERE {AUTHSQL} ORDER BY contact_name',
		'keyfield'=> 'client_id',
		'valuefield'=> 'contact_name'
	),
	'width'  => '',
	'value'  => '');

$liste['item'][] = array( 'field'  => 'ip_type',
	'datatype' => 'VARCHAR',
	'formtype' => 'SELECT',
	'op'  => '=',
	'prefix' => '',
	'suffix' => '',
	'width'  => '',
	'value'  => array('IPv4' => 'IPv4', 'IPv6' => 'IPv6'));

$liste['item'][] = array( 'field'  => 'ip_address',
	'datatype' => 'VARCHAR',
	'op'  => '=',
	'prefix' => '',
	'suffix' => '',
	'width'  => '');

$liste["item"][] = array( 'field'  => "virtualhost",
	'datatype' => "VARCHAR",
	'formtype' => "SELECT",
	'op'  => "=",
	'prefix' => "",
	'suffix' => "",
	'width'  => "",
Marius Cramer's avatar
Marius Cramer committed
98
	'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>"));
99
100
101
102
103
104
105
106
107
108


$liste['item'][] = array( 'field'  => 'virtualhost_port',
	'datatype' => 'VARCHAR',
	'op'  => '=',
	'prefix' => '',
	'suffix' => '',
	'width'  => '');

?>