This topic is locked

Mdifing the Templates

3/18/2006 18:36:09
PHPRunner General questions
K
ke5rs author

Hello Great Programmers,

I would like to remove the drop down selections in the simple search field in the 'list' pages and have only the text box, 'Search' & 'Show all' buttons in that spot or table cell. For my application, the drop downs are just confusing the users and they never need them for what we are doing.

Would this be an easy template modification?

Thank you :-)

John

D
Dale 3/18/2006

It was suggested for another user to simply hide the selects in question
Find the code in the list.php template as below
<SELECT ID="SearchField" NAME="SearchField" SIZE="1">
and add the style="display:' ' " to the select you wish to hide.
I tried to find the exact post but I get the feeling that history is being lopped off in the forum for old topics.
It will make the fields dissappear but I am not sure on if there will be any effects on existing javascript trying to access the selects. The problem with making things hidden or invisible. :>

K
ke5rs author 3/19/2006

It was suggested for another user to simply hide the selects in question

Find the code in the list.php template as below
<SELECT ID="SearchField" NAME="SearchField" SIZE="1">
and add the style="display:' ' " to the select you wish to hide.
I tried to find the exact post but I get the feeling that history is being lopped off in the forum for old topics.
It will make the fields dissappear but I am not sure on if there will be any effects on existing javascript trying to access the selects. The problem with making things hidden or invisible. :>


Thanks Dale for the reply

I added the text you suggested as follows and the dropdown still shows up.
<SELECT ID="SearchField" NAME="SearchField" SIZE="1" style="display:' '">
Is this what you suggested or did I interpret it wrong. I am no expert with PHP or HTML. I tried adding "hidden='true'" as well and maybe that was too simple but no luck... :-)
Thanks...

John

D
Dale 3/19/2006

Hey John,
Sorry for the issue.
The reply should have been
style="display:'none'" to hide a field. style="display:''" will display the field.
I should have double checked my reply.

<SELECT ID="SearchField" NAME="SearchField" SIZE="1" style="display:none;">
<SELECT ID="SearchOption" NAME="SearchOption" SIZE="1"style="display:none;">
Hope this helps.

K
ke5rs author 3/20/2006

Hey John,

Sorry for the issue.
The reply should have been
style="display:'none'" to hide a field. style="display:''" will display the field.
I should have double checked my reply.

<SELECT ID="SearchField" NAME="SearchField" SIZE="1" style="display:none;">
<SELECT ID="SearchOption" NAME="SearchOption" SIZE="1"style="display:none;">
Hope this helps.


Cool Dale.

It works great!

Thank you

John