|
Lines 174-189
build a HTML select with the following code :
Link Here
|
| 174 |
|
174 |
|
| 175 |
=head3 in TEMPLATE |
175 |
=head3 in TEMPLATE |
| 176 |
|
176 |
|
| 177 |
<form action='<!-- TMPL_VAR name="script_name" -->' method=post> |
177 |
<select name="itemtype" id="itemtype"> |
| 178 |
<select name="itemtype"> |
178 |
<option value=""></option> |
| 179 |
<option value="">Default</option> |
179 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
| 180 |
<!-- TMPL_LOOP name="itemtypeloop" --> |
180 |
[% IF ( itemtypeloo.selected ) %] |
| 181 |
<option value="<!-- TMPL_VAR name="itemtype" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->> <!--TMPL_IF Name="imageurl"--><img alt="<!-- TMPL_VAR name="description" -->" src="<!--TMPL_VAR Name="imageurl"-->><!--TMPL_ELSE-->"<!-- TMPL_VAR name="description" --><!--/TMPL_IF--></option> |
181 |
<option value="[% itemtypeloo.itemtype %]" selected="selected">[% itemtypeloo.description %]</option> |
| 182 |
<!-- /TMPL_LOOP --> |
182 |
[% ELSE %] |
| 183 |
</select> |
183 |
<option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.description %]</option> |
| 184 |
<input type=text name=searchfield value="<!-- TMPL_VAR name="searchfield" -->"> |
184 |
[% END %] |
| 185 |
<input type="submit" value="OK" class="button"> |
185 |
[% END %] |
| 186 |
</form> |
186 |
</select> |
| 187 |
|
187 |
|
| 188 |
=cut |
188 |
=cut |
| 189 |
|
189 |
|
| 190 |
- |
|
|