Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
commit | author | age
ef55b5 1 <?php
F 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"]     = "directive_snippets";
ef55b5 17
F 18 // Database table
b1a6a5 19 $liste["table"]    = "directive_snippets";
ef55b5 20
F 21 // Index index field of the database table
b1a6a5 22 $liste["table_idx"]   = "directive_snippets_id";
ef55b5 23
F 24 // Search Field Prefix
b1a6a5 25 $liste["search_prefix"]  = "search_";
ef55b5 26
F 27 // Records per page
b1a6a5 28 $liste["records_per_page"]  = "15";
ef55b5 29
F 30 // Script File of the list
b1a6a5 31 $liste["file"]    = "directive_snippets_list.php";
ef55b5 32
F 33 // Script file of the edit form
b1a6a5 34 $liste["edit_file"]   = "directive_snippets_edit.php";
ef55b5 35
F 36 // Script File of the delete script
b1a6a5 37 $liste["delete_file"]  = "directive_snippets_del.php";
ef55b5 38
F 39 // Paging Template
b1a6a5 40 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
ef55b5 41
F 42 // Enable auth
b1a6a5 43 $liste["auth"]    = "yes";
ef55b5 44
F 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'  => "",
2c408f 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>"));
ef55b5 58
F 59
b1a6a5 60 $liste["item"][] = array( 'field'  => "name",
MC 61     'datatype' => "VARCHAR",
62     'formtype' => "TEXT",
63     'op'  => "like",
64     'prefix' => "%",
65     'suffix' => "%",
66     'width'  => "",
67     'value'  => "");
ef55b5 68
b1a6a5 69 $liste["item"][] = array( 'field'  => "type",
MC 70     'datatype' => "VARCHAR",
71     'formtype' => "SELECT",
72     'op'  => "=",
73     'prefix' => "",
74     'suffix' => "",
75     'width'  => "",
76     'value'  => array('apache' => 'Apache', 'nginx' => 'nginx', 'php' => 'PHP', 'proxy' => 'Proxy'));
8e4f4d 77     
FT 78 $liste["item"][] = array( 'field'  => "customer_viewable",
79     'datatype' => "VARCHAR",
80     'formtype' => "SELECT",
81     'op'  => "=",
82     'prefix' => "",
83     'suffix' => "",
84     'width'  => "",
2c408f 85     '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>"));
d22277 86     
MB 87 $liste["item"][] = array( 'field'  => "master_directive_snippets_id",
88     'datatype' => "BOOLEAN",
89     'formtype' => "SELECT",
90     'op'  => "IS",
91     'prefix' => "",
92     'suffix' => "",
93     'width'  => "",
94     'value'  => array(0 => $app->lng('select_directive_snippet_txt'), 1 => $app->lng('select_master_directive_snippet_txt')));
ef55b5 95
b1a6a5 96 ?>