server_php.list.php 1.78 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
<?php
/*
    Datatypes:
    - INTEGER
    - DOUBLE
    - CURRENCY
    - VARCHAR
    - TEXT
    - DATE
*/

//* Name of list
13
$liste['name']     = 'server_php';
14
15

//* Database table
16
$liste['table']    = 'server_php';
17
18

//* Primary index column
19
$liste['table_idx']   = 'server_php_id';
20
21

//* Search Field Prefix
22
$liste['search_prefix']  = 'search_';
23
24

//* Records per page
25
$liste['records_per_page']  = "15";
26
27

//* Script file for listing
28
$liste['file']    = 'server_php_list.php';
29
30

//* Script file to edit
31
$liste['edit_file']   = 'server_php_edit.php';
32
33

//* Script file to delete
34
$liste['delete_file']  = 'server_php_del.php';
35
36

//* Paging template
37
$liste['paging_tpl']  = 'templates/paging.tpl.htm';
38
39

//* Enable auth
40
$liste['auth']    = 'no';
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
	'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'  => 'name',
	'datatype' => 'VARCHAR',
	'op'  => 'like',
	'prefix' => '%',
	'suffix' => '%',
	'width'  => '');

?>