doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-01-17 00:27
Návrat hore
Odpovedať s citátom
|
I am using a record filter to prevent certain users from accessing records where the `forum_id` is less than 200.
| Kód: |
| $opts['filters'] = 'PMEtable0.forum_id < "200"'; |
It appears the values for the related drop down filter are unaffected by the record filter. As such, it appears I must manually specify the values for the List mode SELECT box. The default SELECT box displays all `forum_id` values which are greater than 200 but which cannot be listed of viewed.
| Kód: |
$forum_id_values = array(1,2,3,4,5,6,100);
$opts['fdd']['forum_id'] = array(
'css' => array('postfix' => 'right-justify'),
'default' => '',
'help|ACP' => 'Forum ID',
'input' => 'R',
'maxlen|ACP' => 4,
'name' => 'FID',
'options' => 'ACPVDFL',
'select' => 'D',
'size|ACP' => 4,
'sqlw' => 'TRIM("$val_as")',
'sort' => true,
'tab|ACP' => 'Forum ID',
'values' => $forum_id_values
); |
I expected the record filter would automatically control the values returned in the drop down SELECT box, but this is apparently not the case. Or else I've forgotten how to work around this.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|