Marius Cramer
2013-11-14 7fe908c50c8dbc5cc05f571dbe11d66141caacd4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
 
// Name of the list
$liste['name'] = 'faq_manage_questions';
 
// Database table
$liste['table'] = 'help_faq';
 
// Index index field of the database table
$liste['table_idx'] = 'hf_id';
 
// Search Field Prefix
//$liste['search_prefix'] = 'search_';
 
// Records per page
$liste['records_per_page']= 30;
 
// Script File of the list
$liste['file'] = 'faq_manage_questions_list.php';
 
// Script file of the edit form
$liste['edit_file'] = 'faq_edit.php';
 
// Script File of the delete script
$liste['delete_file'] = 'faq_delete.php';
 
// Paging Template
$liste['paging_tpl'] = 'templates/paging.tpl.htm';
 
// Enable auth
$liste['auth'] = 'yes';
 
 
$liste["item"][] = array(   'field'     => "hf_section",
    'datatype'  => "VARCHAR",
    'formtype'  => "SELECT",
    'op'        => "=",
    'prefix'    => "",
    'suffix'    => "",
    'datasource'    => array (  'type'  => 'SQL',
        'querystring' => 'SELECT a.hf_section, b.hfs_name FROM help_faq a, help_faq_sections b WHERE (a.hf_section = b.hfs_id)',
        'keyfield'=> 'hf_section',
        'valuefield'=> 'hfs_name'
    ),
    'width'     => "",
    'value'     => "");
?>