Marius Cramer
2015-08-06 37b29231e47a0c4458dc1c15d98588f16f07e1e2
commit | author | age
ae71f0 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"]     = "software_repo";
ae71f0 17
T 18 // Database table
b1a6a5 19 $liste["table"]    = "software_repo";
ae71f0 20
T 21 // Index index field of the database table
b1a6a5 22 $liste["table_idx"]   = "software_repo_id";
ae71f0 23
T 24 // Search Field Prefix
b1a6a5 25 $liste["search_prefix"]  = "search_";
ae71f0 26
T 27 // Records per page
b1a6a5 28 $liste["records_per_page"]  = "15";
ae71f0 29
T 30 // Script File of the list
b1a6a5 31 $liste["file"]    = "software_repo_list.php";
ae71f0 32
T 33 // Script file of the edit form
b1a6a5 34 $liste["edit_file"]   = "software_repo_edit.php";
ae71f0 35
T 36 // Script File of the delete script
b1a6a5 37 $liste["delete_file"]  = "software_repo_del.php";
ae71f0 38
T 39 // Paging Template
b1a6a5 40 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
ae71f0 41
T 42 // Enable auth
b1a6a5 43 $liste["auth"]    = "yes";
ae71f0 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'  => "",
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>"));
ae71f0 58
b1a6a5 59 $liste["item"][] = array( 'field'  => "repo_name",
MC 60     'datatype' => "VARCHAR",
61     'formtype' => "TEXT",
62     'op'  => "like",
63     'prefix' => "%",
64     'suffix' => "%",
65     'width'  => "",
66     'value'  => "");
ae71f0 67
T 68
b1a6a5 69 $liste["item"][] = array( 'field'  => "repo_url",
MC 70     'datatype' => "VARCHAR",
71     'formtype' => "TEXT",
72     'op'  => "like",
73     'prefix' => "%",
74     'suffix' => "%",
75     'width'  => "",
76     'value'  => "");
ae71f0 77
b1a6a5 78 ?>