Newer
Older

tbrehm
committed
<?php
//* Name of the list
$liste['name'] = 'support_message';

tbrehm
committed
//* Database table
$liste['table'] = 'support_message';

tbrehm
committed
//* Index index field of the database table
$liste['table_idx'] = 'support_message_id';

tbrehm
committed
//* Search Field Prefix
$liste['search_prefix'] = 'search_';

tbrehm
committed
//* Records per page
$liste['records_per_page'] = 15;

tbrehm
committed
//* Script File of the list
$liste['file'] = 'support_message_list.php';

tbrehm
committed
//* Script file of the edit form
$liste['edit_file'] = 'support_message_edit.php';

tbrehm
committed
//* Script File of the delete script
$liste['delete_file'] = 'support_message_del.php';

tbrehm
committed
//* Paging Template
$liste['paging_tpl'] = 'templates/paging.tpl.htm';

tbrehm
committed
//* Enable auth

tbrehm
committed
/*****************************************************
* Search fields
*****************************************************/
$liste['item'][] = array( 'field' => 'sender_id',
'formtype' => 'SELECT',
'op' => '=',
'prefix' => '',
'suffix' => '',
'width' => '',
'datasource'=> array ( 'type' => 'SQL',
// 'querystring' => 'SELECT userid,username FROM sys_user WHERE {AUTHSQL} ORDER BY username',
'querystring' => 'SELECT userid,username FROM sys_user ORDER BY username',
'keyfield' => 'userid',
'valuefield' => 'username'
),
'value' => '');
$liste['item'][] = array( 'field' => 'subject',
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'op' => 'like',
'prefix' => '%',
'suffix' => '%',
'width' => '',
'value' => '');
$liste['item'][] = array( 'field' => 'tstamp',
'datatype' => 'DATETIMETSTAMP',
'formtype' => 'TEXT',
'op' => '=',
'prefix' => '',
'suffix' => '',
'width' => '',
'value' => '');
?>