Marius Burkard
2016-07-01 49441bdd0f3ff75d5092d5b832b97ea722a66363
commit | author | age
6c424f 1 <?php
FS 2
3 $liste['name']     = 'server_ip_map';
4 $liste['table']    = 'server_ip_map';
5 $liste['table_idx']   = 'server_ip_map_id';
6 $liste['search_prefix']  = 'search_';
7 $liste['records_per_page']  = "15";
8 $liste['file']    = 'server_ip_map_list.php';
9 $liste['edit_file']   = 'server_ip_map_edit.php';
10 $liste['delete_file']  = 'server_ip_del.php';
11 $liste['paging_tpl']  = 'templates/paging.tpl.htm';
12 $liste['auth']    = 'no';
13
14 $liste["item"][] = array( 'field'  => "active",
15     'datatype' => "VARCHAR",
16     'formtype' => "SELECT",
17     'op'  => "=",
18     'prefix' => "",
19     'suffix' => "",
20     'width'  => "",
0ea7b9 21     '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>"));
6c424f 22
FS 23 $liste['item'][] = array( 'field'  => 'server_id',
24     'datatype' => 'INTEGER',
25     'formtype' => 'SELECT',
26     'op'  => '=',
27     'prefix' => '',
28     'suffix' => '',
29     'datasource' => array (  'type' => 'SQL',
aff9ac 30         'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND mirror_server_id <> 0 ORDER BY server_name',
6c424f 31         'keyfield'=> 'server_id',
FS 32         'valuefield'=> 'server_name'
33     ),
34     'width'  => '',
35     'value'  => '');
36
37 $liste['item'][] = array( 'field'  => 'source_ip',
38     'datatype' => 'VARCHAR',
39     'op'  => '=',
40     'prefix' => '',
41     'suffix' => '',
42     'datasource' => array (  'type' => 'SQL',
43         'querystring' => 'SELECT server_ip_map_id,source_ip FROM server_ip_map WHERE {AUTHSQL}',
44         'keyfield'=> 'server_ip_map_id',
45         'valuefield'=> 'source_ip'
46     ),
47     'width'  => '',
48     'value'  => '');
49
50 $liste['item'][] = array( 'field'  => 'destination_ip',
51     'datatype' => 'VARCHAR',
52     'op'  => '=',
53     'prefix' => '',
54     'suffix' => '',
55     'datasource' => array (  'type' => 'SQL',
56         'querystring' => 'SELECT server_ip_map_id,destination_ip FROM server_ip_map WHERE {AUTHSQL}',
57         'keyfield'=> 'server_ip_map_id',
58         'valuefield'=> 'destination_ip'
59     ),
60     'width'  => '',
61     'value'  => '');
62 ?>