118 lines
7.4 KiB
HTML
Executable File
118 lines
7.4 KiB
HTML
Executable File
<script type="text/javascript">
|
|
var forum_optionlist = <!--{if $forum_optionlist}-->'$forum_optionlist'<!--{else}-->''<!--{/if}-->;
|
|
</script>
|
|
<script type="text/javascript" src="{$_G['setting']['jspath']}threadsort.js?{VERHASH}"></script>
|
|
|
|
<!--{loop $quicksearchlist $optionid $option}-->
|
|
<!--{eval $formsearch = '';}-->
|
|
<!--{if getstatus($option['search'], 1)}-->
|
|
<!--{block formsearch}-->
|
|
<div style="{if $option['type'] == 'checkbox'}clear:left;padding-bottom: 5px;{else}float: left;width: 48%;height: 30px; overflow: hidden;{/if}">
|
|
<span style="padding-right: 1em;">$option[title]:</span>
|
|
<!--{if in_array($option['type'], array('radio', 'checkbox', 'select', 'range'))}-->
|
|
<span id="select_$option[identifier]">
|
|
<!--{if $option[type] == 'select'}-->
|
|
<!--{if $_GET[searchoption][$optionid][value]}-->
|
|
<script type="text/javascript">
|
|
changeselectthreadsort('$_GET[searchoption][$optionid][value]', $optionid, 'search');
|
|
</script>
|
|
<!--{else}-->
|
|
<select name="searchoption[$optionid][value]" id="$option[identifier]" onchange="changeselectthreadsort(this.value, '$optionid', 'search');" class="ps vm">
|
|
<option value="0">{lang please_select}</option>
|
|
<!--{loop $option['choices'] $id $value}-->
|
|
<!--{if !$value[foptionid]}-->
|
|
<option value="$id">$value[content] <!--{if $value['level'] != 1}-->»<!--{/if}--></option>
|
|
<!--{/if}-->
|
|
<!--{/loop}-->
|
|
</select>
|
|
<input type="hidden" name="searchoption[$optionid][type]" value="$option[type]">
|
|
<!--{/if}-->
|
|
<!--{elseif $option[type] != 'checkbox'}-->
|
|
<select name="searchoption[$optionid][value]" id="$option[identifier]" class="ps vm">
|
|
<option value="0">{lang please_select}</option>
|
|
<!--{loop $option['choices'] $id $value}-->
|
|
<option value="$id" {if $_GET[searchoption][$optionid][value] == $id}selected="selected"{/if}>$value</option>
|
|
<!--{/loop}-->
|
|
</select>
|
|
<input type="hidden" name="searchoption[$optionid][type]" value="$option[type]">
|
|
<!--{else}-->
|
|
<!--{loop $option['choices'] $id $value}-->
|
|
<label><input type="checkbox" class="pc" name="searchoption[$optionid][value][$id]" value="$id" {if is_array($_GET[searchoption][$optionid]) && $_GET[searchoption][$optionid][value][$id]}checked="checked"{/if}>$value</label>
|
|
<!--{/loop}-->
|
|
<input type="hidden" name="searchoption[$optionid][type]" value="checkbox">
|
|
<!--{/if}-->
|
|
</span>
|
|
<!--{else}-->
|
|
<!--{if $option['type'] == 'calendar'}-->
|
|
<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
|
|
<input type="text" name="searchoption[$optionid][value]" size="15" class="px vm" value="{if is_array($_GET[searchoption][$optionid])}$_GET[searchoption][$optionid][value]{/if}" onclick="showcalendar(event, this, false)" />
|
|
<!--{else}-->
|
|
<input type="text" name="searchoption[$optionid][value]" size="15" class="px vm" value="{if is_array($_GET[searchoption][$optionid])}$_GET[searchoption][$optionid][value]{/if}" />
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
</div>
|
|
<!--{/block}-->
|
|
<!--{/if}-->
|
|
<!--{eval $formsearch_html .= $formsearch;}-->
|
|
|
|
<!--{eval $fontsearch = '';$showoption = array();$tmpcount = 0;}-->
|
|
<!--{if getstatus($option['search'], 2)}-->
|
|
<!--{block fontsearch}-->
|
|
<tr>
|
|
<th width="8%">$option[title]:</th>
|
|
<td>
|
|
<ul class="cl tbmu">
|
|
<li{if $_GET[''.$option[identifier]] == 'all'} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET['sortid']&searchsort=1$filterurladd&$option[identifier]=all$sorturladdarray[$option[identifier]]" class="xi2">{lang unlimited}</a></li>
|
|
<!--{if $option[type] == 'select'}-->
|
|
<!--{loop $option['choices'] $id $value}-->
|
|
<!--{if $value[foptionid] == 0}-->
|
|
<li{if preg_match('/^'.$value[optionid].'\./i', $_GET[''.$option[identifier]]) || preg_match('/^'.$value[optionid].'$/i', $_GET[''.$option[identifier]])} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]&searchsort=1&$option[identifier]=$id$sorturladdarray[$option[identifier]]" class="xi2">$value[content]</a></li>
|
|
<!--{/if}-->
|
|
<!--{/loop}-->
|
|
<!--{if !($_GET[''.$option[identifier]] == 'all' || !isset($_GET[''.$option[identifier]]))}-->
|
|
<!--{loop $option['choices'] $id $value}-->
|
|
<!--{if (preg_match('/^'.$value[foptionid].'\./i', $_GET[''.$option[identifier]]) || preg_match('/^'.$value[foptionid].'$/i', $_GET[''.$option[identifier]])) && ($showoption[$value[count]][$id] = $value)}-->
|
|
<!--{/if}-->
|
|
<!--{/loop}-->
|
|
<!--{if ksort($showoption)}--><!--{/if}-->
|
|
<!--{loop $showoption $optioncount $values}-->
|
|
<!--{if $tmpcount != $optioncount && ($tmpcount = $optioncount)}-->
|
|
</ul><ul class="subtsm cl tbmu">
|
|
<!--{loop $values $id $value}-->
|
|
<li{if preg_match('/^'.$value[optionid].'\./i', $_GET[''.$option[identifier]]) || preg_match('/^'.$value[optionid].'$/i', $_GET[''.$option[identifier]])} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]&searchsort=1&$option[identifier]=$id$sorturladdarray[$option[identifier]]" class="xi2">$value[content]</a></li>
|
|
<!--{/loop}-->
|
|
</ul><ul>
|
|
<!--{/if}-->
|
|
<!--{/loop}-->
|
|
<!--{/if}-->
|
|
<!--{else}-->
|
|
<!--{loop $option['choices'] $id $value}-->
|
|
<li{if $_GET[''.$option[identifier]] && !strcmp($id, $_GET[''.$option[identifier]])} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]&searchsort=1&$option[identifier]=$id$sorturladdarray[$option[identifier]]" class="xi2">$value</a></li>
|
|
<!--{/loop}-->
|
|
<!--{/if}-->
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<!--{/block}-->
|
|
<!--{/if}-->
|
|
<!--{eval $fontsearch_html .= $fontsearch;}-->
|
|
<!--{/loop}-->
|
|
|
|
<!--{if $formsearch_html || $fontsearch_html}-->
|
|
<div>
|
|
<!--{if $fontsearch_html}-->
|
|
<div class="ptn pbn mbm bbs">
|
|
<table id="fontsearch" class="tsm cl">
|
|
$fontsearch_html
|
|
</table>
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{if $formsearch_html}-->
|
|
<form method="post" autocomplete="off" name="searhsort" id="searhsort" class="bbs bm_c pns mfm cl" action="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_GET[sortid]">
|
|
<input type="hidden" name="formhash" value="{FORMHASH}" />
|
|
<div class="ptm cl">$formsearch_html
|
|
<button type="submit" class="pn pnc" name="searchsortsubmit"><em>{lang search}</em></button></div>
|
|
</form>
|
|
<!--{/if}-->
|
|
</div>
|
|
<!--{/if}--> |