This topic is locked
[SOLVED]

 Advanced search question

7/7/2010 11:49:23 AM
PHPRunner General questions
romaldus author

In advanced search page there is a dropdown menu with options like:
Sometimes this feature confusing me. For example, there is [color="#FF0000"]"More Then" search option for a VARCHAR field....

This is unusual since the search option only used for INTEGER, etc.......
Is it possible to limit the dropdown option to display particular options?

for example i want to limit the search option for the STUDENT_ID field to [color="#FF0000"]Equals only (the drop down show only ).

A
ann 7/8/2010

Hi,
you can setup these preferences in the generated \output\classes\searchcontrol.php file.

To limit search options for the 'STUDENT_ID' field find this line

return $options;



and add just before:

if ($fName=="STUDENT_ID"){

$options="<OPTION VALUE=\"Equals\" ".(($selOpt=="Equals" && !$not)?"selected":"").">".##message EQUALS##."</option>";

}