module.htm 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {eval
  2. function tpl_global_header_mobile($searchparams, $srchotquery) {
  3. global $_G;
  4. }
  5. <!--{block return}-->
  6. <!--{if !empty($searchparams[url])}-->
  7. <div id="scbar" class="{if $_G['setting']['srchhotkeywords'] && count($_G['setting']['srchhotkeywords']) > 5}scbar_narrow {/if}cl">
  8. <form id="scbar_form" method="get" autocomplete="off" onsubmit="searchFocus($('scbar_txt'))" action="$searchparams[url]" target="_blank">
  9. <input type="hidden" name="mod" id="scbar_mod" value="search" />
  10. <input type="hidden" name="formhash" value="{FORMHASH}" />
  11. <input type="hidden" name="srchtype" value="title" />
  12. <input type="hidden" name="srhfid" value="$_G[fid]" />
  13. <input type="hidden" name="srhlocality" value="$_G['basescript']::{CURMODULE}" />
  14. <!--{loop $searchparams[params] $key $value}-->
  15. <input type="hidden" name="$key" value="$value" />
  16. <!--{/loop}-->
  17. <input type="hidden" name="source" value="txt.form_{if $_G['setting']['mobile']['mobilesimpletype']}sim{else}nor{/if}.a" />
  18. <input type="hidden" name="wap" value="yes" />
  19. <input type="hidden" name="fId" value="$_G[fid]" />
  20. <div style="display: none; position: absolute; top:37px; left:44px;" id="sg">
  21. <div id="st_box" cellpadding="2" cellspacing="0"></div>
  22. </div>
  23. <table width="100%" cellpadding="0" cellspacing="0">
  24. <tr>
  25. <td><input type="text" class="txt xg1" name="q" id="scbar_txt" value="" autocomplete="off" /></td>
  26. <td align="center" width="46" class="scbar_btn_td"><input type="submit" name="btnsubmit" id="scbar_btn" class="pn pnc" value="{lang search}"></td>
  27. </tr>
  28. <tr>
  29. <!--{if $_G['setting']['srchhotkeywords'] && CURMODULE == 'index'}-->
  30. <td class="scbar_hot_td" colspan="3">
  31. <div id="scbar_hot">
  32. <strong class="xw1">{lang hot_search}: </strong>
  33. <!--{loop $_G['setting']['srchhotkeywords'] $val}-->
  34. <!--{if $encodeval=rawurlencode(trim($val))}-->
  35. <!--{if !empty($searchparams[url])}-->
  36. <a href="$searchparams[url]?q=$encodeval&source=txt.hotsearch_{if $_G['setting']['mobile']['mobilesimpletype']}sim{else}nor{/if}.a{$srchotquery}&wap=yes" target="_blank" class="xi2" sc="1">$val</a>
  37. <!--{else}-->
  38. <a href="search.php?mod=forum&srchtxt=$encodeval&formhash={FORMHASH}&searchsubmit=true&source=txt.hotsearch_{if $_G['setting']['mobile']['mobilesimpletype']}sim{else}nor{/if}.a&wap=yes" target="_blank" class="xi2" sc="1">$val</a>
  39. <!--{/if}-->
  40. <!--{/if}-->
  41. <!--{/loop}-->
  42. </div>
  43. </td>
  44. <!--{/if}-->
  45. </tr>
  46. </table>
  47. </form>
  48. </div>
  49. <ul id="scbar_type_menu" class="p_pop" style="display: none;"><!--{echo implode('', $slist);}--></ul>
  50. <!--{/if}-->
  51. <!--{/block}-->
  52. <!--{eval return $return;}-->
  53. {eval
  54. }
  55. }