Snippet 7 - DTML Method search
1 <dtml-var standard_html_header>
2 <dtml-unless keywords>
3 <dtml-call "REQUEST.set('keywords','')">
4 </dtml-unless>
5 <table>
6 <tr valign="top">
7 <td>
8 <form name="form_keywords" method="post" action="search">
9 <select name="keywords">
10 <dtml-in "Catalog_Art.uniqueValuesFor('keywords')" prefix=seq>
11 <option <dtml-if "keywords==seq_item">selected</dtml-if> value="& dtml-seq_item;">& dtml-seq_item;</option>
12 </dtml-in>
13 </select>
14 <input type=submit name="search_keywords" value=" Search ">
15 </form>
16 </td>
17 </tr>
18 </table>
19 <dtml-if search_keywords>
20 <dtml-var search_rep>
21 </dtml-if>
22 <dtml-var standard_html_footer>
|