sortoption.htm
2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!--{template common/header}-->
<input type="hidden" name="selectsortid" value="$_G['forum_selectsortid']" />
<input type="hidden" name="srchtype" value="threadsort" />
<input type="hidden" name="fid" value="$srchfid" />
<!--{loop $_G['forum_optionlist'] $optionid $option}-->
<!--{if $option['search']}-->
<tr><th>$option[title]</th>
<td>
<!--{if in_array($option['type'], array('number', 'text', 'email', 'calendar', 'image', 'url', 'textarea'))}-->
<!--{if $option['type'] == 'calendar'}-->
<script type="text/javascript" src="{$_G['setting']['jspath']}calendar.js?{VERHASH}"></script>
<input type="text" name="searchoption[$optionid][value]" size="45" value="$option[value]" onclick="showcalendar(event, this, false)" />
<!--{elseif $option['type'] == 'number'}-->
<select name="searchoption[$optionid][condition]">
<option value="0">{lang equal_to}</option>
<option value="1">{lang more_than}</option>
<option value="2">{lang lower_than}</option>
</select>
<input type="text" name="searchoption[$optionid][value]" size="35" value="$option[value]" />
<input type="hidden" name="searchoption[$optionid][type]" value="number">
<!--{else}-->
<input type="text" name="searchoption[$optionid][value]" size="45" value="$option[value]" />
<!--{/if}-->
<!--{elseif in_array($option['type'], array('radio', 'checkbox', 'select'))}-->
<!--{if $option[type] == 'select'}-->
<select name="searchoption[$optionid][value]">
<option value="0">{lang unlimited}</option>
<!--{loop $option['choices'] $id $value}-->
<option value="$id" $option['value'][$id]>$value</option>
<!--{/loop}-->
</select>
<input type="hidden" name="searchoption[$optionid][type]" value="select">
<!--{elseif $option['type'] == 'radio'}-->
<!--{loop $option['choices'] $id $value}-->
<input type="radio" class="pr" name="searchoption[$optionid][value]" size="45" value="$id" $option['value'][$id]> $value
<!--{/loop}-->
<input type="hidden" name="searchoption[$optionid][type]" value="radio">
<!--{elseif $option['type'] == 'checkbox'}-->
<!--{loop $option['choices'] $id $value}-->
<input type="checkbox" class="pc" name="searchoption[$optionid][value][]" size="45" value="$id" $option['value'][$id][$id] /> $value
<!--{/loop}-->
<input type="hidden" name="searchoption[$optionid][type]" value="checkbox">
<!--{/if}-->
<!--{/if}-->
$option[unit]
</td></tr>
<!--{/if}-->
<!--{/loop}-->
<!--{template common/footer}-->