shell_user.list.php 2.29 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"]     = "shell_user";
17
18

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

// Index index field of the database table
22
$liste["table_idx"]   = "shell_user_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"]    = "shell_user_list.php";
32
33

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

// Script File of the delete script
37
$liste["delete_file"]  = "shell_user_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
50


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


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


$liste["item"][] = array( 'field'  => "server_id",
	'datatype' => "VARCHAR",
	'formtype' => "SELECT",
	'op'  => "like",
	'prefix' => "%",
	'suffix' => "%",
	'datasource' => array (  'type' => 'SQL',
68
		'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND mirror_server_id = 0 ORDER BY server_name',
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
		'keyfield'=> 'server_id',
		'valuefield'=> 'server_name'
	),
	'width'  => "",
	'value'  => "");

$liste["item"][] = array( 'field'  => "parent_domain_id",
	'datatype' => "VARCHAR",
	'filters'   => array( 0 => array( 'event' => 'SHOW',
			'type' => 'IDNTOUTF8')
	),
	'formtype' => "SELECT",
	'op'  => "=",
	'prefix' => "",
	'suffix' => "",
	'datasource' => array (  'type' => 'SQL',
		'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain",
		'keyfield'=> 'domain_id',
		'valuefield'=> 'domain'
	),
	'width'  => "",
	'value'  => "");

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


?>