Marius Burkard
2016-07-01 49441bdd0f3ff75d5092d5b832b97ea722a66363
commit | author | age
b74ef5 1 <?php
T 2
3 /*
4     Datatypes:
5     - INTEGER
6     - DOUBLE
7     - CURRENCY
8     - VARCHAR
9     - TEXT
10     - DATE
11 */
12
13
14
15 // Name of the list
b1a6a5 16 $liste["name"]     = "openvz_ostemplate";
b74ef5 17
T 18 // Database table
b1a6a5 19 $liste["table"]    = "openvz_ostemplate";
b74ef5 20
T 21 // Index index field of the database table
b1a6a5 22 $liste["table_idx"]   = "ostemplate_id";
b74ef5 23
T 24 // Search Field Prefix
b1a6a5 25 $liste["search_prefix"]  = "search_";
b74ef5 26
T 27 // Records per page
b1a6a5 28 $liste["records_per_page"]  = 15;
b74ef5 29
T 30 // Script File of the list
b1a6a5 31 $liste["file"]    = "openvz_ostemplate_list.php";
b74ef5 32
T 33 // Script file of the edit form
b1a6a5 34 $liste["edit_file"]   = "openvz_ostemplate_edit.php";
b74ef5 35
T 36 // Script File of the delete script
b1a6a5 37 $liste["delete_file"]  = "openvz_ostemplate_del.php";
b74ef5 38
T 39 // Paging Template
b1a6a5 40 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
b74ef5 41
T 42 // Enable authe
b1a6a5 43 $liste["auth"]    = "yes";
b74ef5 44
T 45
46 /*****************************************************
47 * Suchfelder
48 *****************************************************/
49
b1a6a5 50 $liste["item"][] = array( 'field'  => "active",
MC 51     'datatype' => "VARCHAR",
52     'formtype' => "SELECT",
53     'op'  => "=",
54     'prefix' => "",
55     'suffix' => "",
56     'width'  => "",
0ea7b9 57     '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>"));
b74ef5 58
b1a6a5 59 $liste["item"][] = array( 'field'  => "ostemplate_id",
MC 60     'datatype' => "INTEGER",
61     'formtype' => "TEXT",
62     'op'  => "=",
63     'prefix' => "",
64     'suffix' => "",
65     'width'  => "",
66     'value'  => "");
ae8bfe 67
b74ef5 68
b1a6a5 69 $liste["item"][] = array( 'field'  => "template_name",
MC 70     'datatype' => "VARCHAR",
71     'formtype' => "TEXT",
72     'op'  => "like",
73     'prefix' => "%",
74     'suffix' => "%",
75     'width'  => "",
76     'value'  => "");
b74ef5 77
b1a6a5 78 $liste["item"][] = array( 'field'  => "server_id",
MC 79     'datatype' => "VARCHAR",
80     'formtype' => "SELECT",
81     'op'  => "like",
82     'prefix' => "",
83     'suffix' => "",
84     'datasource' => array (  'type' => 'SQL',
aff9ac 85         'querystring' => 'SELECT server_id, server_name FROM server WHERE vserver_server = 1 AND mirror_server_id = 0 ORDER BY server_name',
b1a6a5 86         'keyfield'=> 'server_id',
MC 87         'valuefield'=> 'server_name'
88     ),
89     'width'  => "",
90     'value'  => "");
b74ef5 91
b1a6a5 92 $liste["item"][] = array( 'field'  => "allservers",
MC 93     'datatype' => "VARCHAR",
94     'formtype' => "SELECT",
95     'op'  => "=",
96     'prefix' => "",
97     'suffix' => "",
98     'width'  => "",
0ea7b9 99     '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>"));
b74ef5 100
T 101
102
b1a6a5 103 ?>