Till Brehm
2016-07-24 b9a3ef486ebcde18a5ade37865ff8f397185d24f
commit | author | age
aa1724 1 <?php
T 2
3 //* Name of the list
b1a6a5 4 $liste['name']     = 'support_message';
aa1724 5
T 6 //* Database table
b1a6a5 7 $liste['table']    = 'support_message';
aa1724 8
T 9 //* Index index field of the database table
b1a6a5 10 $liste['table_idx']   = 'support_message_id';
aa1724 11
T 12 //* Search Field Prefix
b1a6a5 13 $liste['search_prefix']  = 'search_';
aa1724 14
T 15 //* Records per page
b1a6a5 16 $liste['records_per_page']  = 15;
aa1724 17
T 18 //* Script File of the list
b1a6a5 19 $liste['file']    = 'support_message_list.php';
aa1724 20
T 21 //* Script file of the edit form
b1a6a5 22 $liste['edit_file']   = 'support_message_edit.php';
aa1724 23
T 24 //* Script File of the delete script
b1a6a5 25 $liste['delete_file']  = 'support_message_del.php';
aa1724 26
T 27 //* Paging Template
b1a6a5 28 $liste['paging_tpl']  = 'templates/paging.tpl.htm';
aa1724 29
T 30 //* Enable auth
b1a6a5 31 $liste['auth']    = 'yes';
aa1724 32
T 33
34 /*****************************************************
35 * Search fields
36 *****************************************************/
37
b1a6a5 38 $liste['item'][] = array( 'field'  => 'sender_id',
MC 39     'datatype' => 'VARCHAR',
40     'formtype' => 'SELECT',
41     'op'  => '=',
42     'prefix' => '',
43     'suffix' => '',
44     'width'  => '',
45     'datasource'=> array (  'type' => 'SQL',
083970 46 //        'querystring'  => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username',
FS 47         'querystring'  => 'SELECT userid,username FROM sys_user ORDER BY username',
b1a6a5 48         'keyfield'  => 'userid',
MC 49         'valuefield' => 'username'
50     ),
51     'value'  => '');
aa1724 52
b1a6a5 53 $liste['item'][] = array( 'field'  => 'subject',
MC 54     'datatype' => 'VARCHAR',
55     'formtype' => 'TEXT',
56     'op'  => 'like',
57     'prefix' => '%',
58     'suffix' => '%',
59     'width'  => '',
60     'value'  => '');
61
62 $liste['item'][] = array( 'field'  => 'tstamp',
63     'datatype' => 'DATETIMETSTAMP',
64     'formtype' => 'TEXT',
65     'op'  => '=',
66     'prefix' => '',
67     'suffix' => '',
68     'width'  => '',
69     'value'  => '');
aa1724 70
T 71
b1a6a5 72 ?>