Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
commit | author | age
acbf53 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"]    = "clients";
acbf53 17
T 18 // Database table
b1a6a5 19 $liste["table"]   = "client";
acbf53 20
T 21 // Index index field of the database table
b1a6a5 22 $liste["table_idx"]  = "client_id";
acbf53 23
T 24 // Search Field Prefix
b1a6a5 25 $liste["search_prefix"]  = "search_";
acbf53 26
T 27 // Records per page
b1a6a5 28 $liste["records_per_page"]  = "15";
acbf53 29
T 30 // Script File of the list
b1a6a5 31 $liste["file"]   = "client_list.php";
acbf53 32
T 33 // Script file of the edit form
b1a6a5 34 $liste["edit_file"]  = "client_edit.php";
acbf53 35
T 36 // Script File of the delete script
b1a6a5 37 $liste["delete_file"]  = "client_del.php";
acbf53 38
T 39 // Paging Template
b1a6a5 40 $liste["paging_tpl"]  = "templates/paging.tpl.htm";
acbf53 41
T 42 // Enable authe
b1a6a5 43 $liste["auth"]   = "yes";
acbf53 44
T 45
46 /*****************************************************
47 * Suchfelder
48 *****************************************************/
49
222ea2 50 $liste["item"][] = array(   'field'     => "client_id",
b1a6a5 51     'datatype' => "INTEGER",
MC 52     'formtype' => "TEXT",
53     'op' => "=",
54     'prefix' => "",
55     'suffix' => "",
56     'width' => "",
57     'value' => "");
b3248e 58
222ea2 59 $liste["item"][] = array(   'field'     => "company_name",
b1a6a5 60     'datatype' => "VARCHAR",
MC 61     'formtype' => "TEXT",
62     'op' => "like",
63     'prefix' => "%",
64     'suffix' => "%",
65     'width' => "",
66     'value' => "");
acbf53 67
222ea2 68 $liste["item"][] = array(   'field'     => "contact_name",
b1a6a5 69     'datatype' => "VARCHAR",
MC 70     'formtype' => "TEXT",
71     'op' => "like",
72     'prefix' => "%",
73     'suffix' => "%",
74     'width' => "",
75     'value' => "");
10b4c8 76
T 77 $liste["item"][] = array(   'field'     => "customer_no",
b1a6a5 78     'datatype' => "VARCHAR",
MC 79     'formtype' => "TEXT",
80     'op' => "like",
81     'prefix' => "%",
82     'suffix' => "%",
83     'width' => "",
84     'value' => "");
acbf53 85
222ea2 86 $liste["item"][] = array(   'field'     => "username",
b1a6a5 87     'datatype' => "VARCHAR",
MC 88     'formtype' => "TEXT",
89     'op' => "like",
90     'prefix' => "%",
91     'suffix' => "%",
92     'width' => "",
93     'value' => "");
d4708d 94
222ea2 95 $liste["item"][] = array(   'field'     => "city",
b1a6a5 96     'datatype' => "VARCHAR",
MC 97     'formtype' => "TEXT",
98     'op' => "like",
99     'prefix' => "%",
100     'suffix' => "%",
101     'width' => "",
102     'value' => "");
acbf53 103
222ea2 104 $liste["item"][] = array(   'field'     => "country",
b1a6a5 105     'datatype' => "VARCHAR",
MC 106     'formtype' => "SELECT",
107     'op' => "=",
108     'prefix' => "",
109     'suffix' => "",
110     'datasource'=> array (  'type'          => 'SQL',
111         'querystring'   => 'SELECT iso,printable_name FROM country ORDER BY iso ASC',
112         'keyfield'      => 'iso',
113         'valuefield'    => 'printable_name'
114     ),
115     'width' => "",
116     'value' => "");
d22277 117     
MB 118 if(is_file(ISPC_WEB_PATH.'/robot/lib/robot_config.inc.php')){
119     $liste["item"][] = array( 'field'  => "validation_status",
120     'datatype' => "VARCHAR",
121     'formtype' => "SELECT",
122     'op'  => "=",
123     'prefix' => "",
124     'suffix' => "",
125     'width'  => "",
126     'value'  => array('accept' => 'accept', 'review' => 'review', 'reject' => 'reject'));
127 }
1f6ae2 128
b1a6a5 129 ?>