Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
commit | author | age
a70698 1 <?php
18341e 2 /*
7e5f92 3     Datatypes:
P 4     - INTEGER
5     - DOUBLE
6     - CURRENCY
7     - VARCHAR
8     - TEXT
9     - DATE
18341e 10 */
T 11
7e5f92 12 //* Name of list
b1a6a5 13 $liste['name']     = 'server_ip';
18341e 14
7e5f92 15 //* Database table
b1a6a5 16 $liste['table']    = 'server_ip';
18341e 17
7e5f92 18 //* Primary index column
b1a6a5 19 $liste['table_idx']   = 'server_ip_id';
18341e 20
7e5f92 21 //* Search Field Prefix
b1a6a5 22 $liste['search_prefix']  = 'search_';
18341e 23
7e5f92 24 //* Records per page
b1a6a5 25 $liste['records_per_page']  = "15";
18341e 26
7e5f92 27 //* Script file for listing
b1a6a5 28 $liste['file']    = 'server_ip_list.php';
18341e 29
7e5f92 30 //* Script file to edit
b1a6a5 31 $liste['edit_file']   = 'server_ip_edit.php';
18341e 32
7e5f92 33 //* Script file to delete
b1a6a5 34 $liste['delete_file']  = 'server_ip_del.php';
18341e 35
7e5f92 36 //* Paging template
b1a6a5 37 $liste['paging_tpl']  = 'templates/paging.tpl.htm';
18341e 38
7e5f92 39 //* Enable auth
b1a6a5 40 $liste['auth']    = 'no';
18341e 41
T 42
43 /*****************************************************
44 * Suchfelder
45 *****************************************************/
46
b1a6a5 47 $liste['item'][] = array( 'field'  => 'server_id',
2df826 48     'datatype' => 'INTEGER',
b1a6a5 49     'formtype' => 'SELECT',
2df826 50     'op'  => '=',
MC 51     'prefix' => '',
52     'suffix' => '',
b1a6a5 53     'datasource' => array (  'type' => 'SQL',
aff9ac 54         'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} AND mirror_server_id = 0 ORDER BY server_name',
b1a6a5 55         'keyfield'=> 'server_id',
MC 56         'valuefield'=> 'server_name'
57     ),
58     'width'  => '',
59     'value'  => '');
18341e 60
b1a6a5 61 $liste['item'][] = array( 'field'  => 'client_id',
2df826 62     'datatype' => 'INTEGER',
b1a6a5 63     'formtype' => 'SELECT',
2df826 64     'op'  => '=',
MC 65     'prefix' => '',
66     'suffix' => '',
b1a6a5 67     'datasource' => array (  'type' => 'SQL',
MC 68         'querystring' => 'SELECT client_id,contact_name FROM client WHERE {AUTHSQL} ORDER BY contact_name',
69         'keyfield'=> 'client_id',
70         'valuefield'=> 'contact_name'
71     ),
72     'width'  => '',
73     'value'  => '');
a70698 74
b1a6a5 75 $liste['item'][] = array( 'field'  => 'ip_type',
MC 76     'datatype' => 'VARCHAR',
77     'formtype' => 'SELECT',
78     'op'  => '=',
79     'prefix' => '',
80     'suffix' => '',
81     'width'  => '',
82     'value'  => array('IPv4' => 'IPv4', 'IPv6' => 'IPv6'));
a70698 83
b1a6a5 84 $liste['item'][] = array( 'field'  => 'ip_address',
MC 85     'datatype' => 'VARCHAR',
86     'op'  => '=',
87     'prefix' => '',
88     'suffix' => '',
89     'width'  => '');
18341e 90
b1a6a5 91 $liste["item"][] = array( 'field'  => "virtualhost",
MC 92     'datatype' => "VARCHAR",
93     'formtype' => "SELECT",
94     'op'  => "=",
95     'prefix' => "",
96     'suffix' => "",
97     'width'  => "",
2c408f 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>"));
a70698 99
T 100
b1a6a5 101 $liste['item'][] = array( 'field'  => 'virtualhost_port',
MC 102     'datatype' => 'VARCHAR',
103     'op'  => '=',
104     'prefix' => '',
105     'suffix' => '',
106     'width'  => '');
a70698 107
b1a6a5 108 ?>