Skip to content
Snippets Groups Projects
support_message.list.php 1.64 KiB
Newer Older
$liste['name']     = 'support_message';
$liste['table']    = 'support_message';

//* Index index field of the database table
$liste['table_idx']   = 'support_message_id';
$liste['search_prefix']  = 'search_';
$liste['records_per_page']  = 15;
$liste['file']    = 'support_message_list.php';
$liste['edit_file']   = 'support_message_edit.php';
$liste['delete_file']  = 'support_message_del.php';
$liste['paging_tpl']  = 'templates/paging.tpl.htm';
$liste['auth']    = 'yes';


/*****************************************************
* Search fields
*****************************************************/

$liste['item'][] = array( 'field'  => 'sender_id',
	'datatype' => 'INTEGER',
	'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'  => '');


?>