免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
🌓黑暗模式
帖子

返回列表 发帖
查看: 379|回复: 2 收起左侧
开启左侧收起左侧开启左侧
上一主题 下一主题 打印

仿X3官方纵横搜索【升级版】   [复制链接]

来源:  bone        作者:  骨头  



  



打开search_threads模板,然后全部替换为:
  1. <style>.searchform,#footer_z{display:none!important}
  2. .scform_form{margin-left: 0px!important;}
  3. .srch{margin: -25px 30px!important;}
  4. .tabs .current{color: #333;}
  5. .tabs li {margin-bottom: 5px;padding-left: 8px;color: #999;}
  6. .tabs li a{color: #00C;}
  7. #search_option{display:none!important}
  8. .srch .copyright{margin:0!important;}
  9. .copyright{padding: 0!important;}
  10. .itemtitle{margin-bottom: 0px!important;height: 32px;}
  11. </style>
  12. <h2 class="logolist">
  13. <a href=""><img src="https://www.discuz.net/static/image/common/logo.png" alt="logo" style="width: 100px;"></a>
  14. </h2>
  15.         <form class="searchformlist" method="post" action="search.php"{if $qihoo['status']} target="_blank"{/if} style="position: absolute;margin: -52px 113px;">
  16.                 <input type="hidden" name="formhash" value="{FORMHASH}" />
  17.                 <!--{if !empty($srchtype)}--><input type="hidden" name="srchtype" value="$srchtype" /><!--{/if}-->

  18. <p style="margin-left: 0px;">
  19. <label class="current1" for="srchtypeposts" onclick="window.location=('search.php')" {$checkarray[posts]} id="srchtypeposts"/>{lang search_title}</label>
  20. <label class="current2" for="srchtypetrade" onclick="window.location=('search.php?srchtype=trade')" {$checkarray[trade]} id="srchtypetrade"/>{lang search_trade}</label>
  21. </p>


  22. <!--{if $srchtype != 'threadsort'}-->
  23.                 <table class="scform_form" cellspacing="0" cellpadding="0">
  24. <tbody><tr>
  25.                 <td class="td_srchtxt">
  26.                         <input type="text" id="srchtxt" name="srchtxt" prompt="search_kw" size="45" maxlength="40" value="$keyword" class="scform_srchtxt" tabindex="1" /></td>
  27.                         
  28.                         <td class="td_srchbtn" onmouseover="MYSearch.changeSubmitBackground(this);"><input type="submit" class="scform_submit" name="searchsubmit" id="searchsubmit" value="搜索" prompt="search_submit"></td>
  29.                         <!--{if $checkarray[posts]}-->

  30.                 <td class="adv_srch">
  31. </td>
  32.                         <!--{/if}-->
  33.                 </tr>
  34. </tbody></table>
  35. <!--{/if}-->

  36.                


  37.                 {eval $policymsgs = $p = '';}
  38.                 <!--{loop $creditspolicy['search'] $id $policy}-->
  39.                 <!--{block policymsg}--><!--{if $extcredits[$id][img]}-->$extcredits[$id][img] <!--{/if}-->$extcredits[$id][title] $policy $extcredits[$id][unit]<!--{/block}-->
  40.                 {eval $policymsgs .= $p.$policymsg;$p = ', ';}
  41.                 <!--{/loop}-->
  42.                 <!--{if $policymsgs}--><p style="margin-left: 220px;">{lang search_credit_msg}</p><!--{/if}-->

  43.                 <!--{if $srchtype != 'qihoo'}-->
  44.                 <div id="search_option" {if $checkarray[posts] && empty($_DCOOKIE[displaysearch_adv])}style="display: none;"{/if}>
  45.                         <hr class="shadowline"/>
  46.                         <h3 style="margin-left: 220px;">{lang search_option}</h3>
  47.                         <table summary="{lang search}" cellspacing="0" cellpadding="0" class="formtable" style="margin-left: 220px;">
  48.                                 <!--{if $srchtype == 'threadsort'}-->
  49.                                 <tr>
  50.                                         <th><label for="typeid">{lang threadtype_option}</label></th>
  51.                                         <td>
  52.                                                 <select name="sortid" onchange="ajaxget('post.php?action=threadsorts&sortid='+this.options[this.selectedIndex].value+'&operate=1&sid=$sid', 'threadsorts', 'threadsortswait')">
  53.                                                         <option value="0">{lang none}</option>$threadsorts
  54.                                                 </select>
  55.                                                 <span id="threadsortswait"></span>
  56.                                         </td>
  57.                                 </tr>
  58.                                 <tbody id="threadsorts"></tbody>
  59.                                 <!--{/if}-->

  60.                                 <!--{if $checkarray[posts] || $srchtype == 'trade'}-->
  61.                                         <tr>
  62.                                                 <td>{lang author}</td>
  63.                                                 <td><input type="text" id="srchname" name="srchuname" size="45" maxlength="40" class="txt" /></td>
  64.                                         </tr>

  65.                                         <tr>
  66.                                                 <td>{lang search_thread_range}</td>
  67.                                                 <td>
  68.                                                         <label><input type="radio" name="srchfilter" value="all" checked="checked" /> {lang search_thread_range_all}</label>
  69.                                                         <label><input type="radio" name="srchfilter" value="digest" /> {lang search_thread_range_digest}</label>
  70.                                                         <label><input type="radio" name="srchfilter" value="top" /> {lang search_thread_range_top}</label>
  71.                                                 </td>
  72.                                         </tr>
  73.                                 <!--{/if}-->

  74.                                 <!--{if $checkarray[posts]}-->
  75.                                         <tr>
  76.                                                 <td>{lang special_thread}</td>
  77.                                                 <td>
  78.                                                         <label><input type="checkbox" name="special[]" value="1" /> {lang special_poll}</label>
  79.                                                         <label><input type="checkbox" name="special[]" value="2" /> {lang special_trade}</label>
  80.                                                         <label><input type="checkbox" name="special[]" value="3" /> {lang special_reward}</label>
  81.                                                         <label><input type="checkbox" name="special[]" value="4" /> {lang special_activity}</label>
  82.                                                         <label><input type="checkbox" name="special[]" value="5" /> {lang special_debate}</label>
  83.                                                         <!--{loop $threadplugins $pluginid $threadplugin}-->
  84.                                                                 <label><input type="checkbox" name="specialplugin[]" value="$threadplugin[iconid]" /> $threadplugin[name]</label>
  85.                                                         <!--{/loop}-->
  86.                                                 </td>
  87.                                         </tr>
  88.                                 <!--{/if}-->

  89.                                 <!--{if $srchtype == 'trade'}-->
  90.                                         <tr>
  91.                                                 <td>{lang search_tradetype}</td>
  92.                                                 <td>
  93.                                                         <select name="srchtypeid"><option value="">{lang all}</option>
  94.                                                         <!--{loop $tradetypes $typeid $typename}-->
  95.                                                                 <option value="$typeid">$typename</option>
  96.                                                         <!--{/loop}-->
  97.                                                         </select>
  98.                                                 </td>
  99.                                         </tr>
  100.                                 <!--{/if}-->

  101.                                 <!--{if $checkarray[posts] || $srchtype == 'trade'}-->
  102.                                         <tr>
  103.                                                 <th><label for="srchfrom">{lang search_time}</label></th>
  104.                                                 <td>
  105.                                                         <select id="srchfrom" name="srchfrom">
  106.                                                                 <option value="0">{lang search_any_date}</option>
  107.                                                                 <option value="86400">{lang 1_days_ago}</option>
  108.                                                                 <option value="172800">{lang 2_days_ago}</option>
  109.                                                                 <option value="604800">{lang 7_days_ago}</option>
  110.                                                                 <option value="2592000">{lang 30_days_ago}</option>
  111.                                                                 <option value="7776000">{lang 90_days_ago}</option>
  112.                                                                 <option value="15552000">{lang 180_days_ago}</option>
  113.                                                                 <option value="31536000">{lang 365_days_ago}</option>
  114.                                                         </select>
  115.                                                         <label><input type="radio" name="before" value="" checked="checked" /> {lang search_newer}</label>
  116.                                                         <label><input type="radio" name="before" value="1" /> {lang search_older}</label>
  117.                                                 </td>
  118.                                         </tr>

  119.                                         <tr>
  120.                                                 <td><label for="orderby">{lang search_orderby}</label></td>
  121.                                                 <td>
  122.                                                         <select id="orderby1" name="orderby">
  123.                                                                 <option value="lastpost" selected="selected">{lang order_lastpost}</option>
  124.                                                                 <option value="dateline">{lang order_starttime}</option>
  125.                                                                 <option value="replies">{lang order_replies}</option>
  126.                                                                 <option value="views">{lang order_views}</option>
  127.                                                         </select>
  128.                                                         <select id="orderby2" name="orderby" style="position: absolute; display: none" disabled>
  129.                                                                 <option value="dateline" selected="selected">{lang dateline}</option>
  130.                                                                 <option value="price">{lang post_trade_price}</option>
  131.                                                                 <option value="expiration">{lang trade_remaindays}</option>
  132.                                                         </select>
  133.                                                         <label><input type="radio" name="ascdesc" value="asc" /> {lang order_asc}</label>
  134.                                                         <label><input type="radio" name="ascdesc" value="desc" checked="checked" /> {lang order_desc}</label>
  135.                                                 </td>
  136.                                         </tr>
  137.                                 <!--{/if}-->

  138.                                 <tr>
  139.                                         <td valign="top"><label for="srchfid">{lang search_range}</label></td>
  140.                                         <td>
  141.                                                 <select id="srchfid" name="srchfid[]" multiple="multiple" size="10" style="width: 26em;">
  142.                                                         <option value="all"{if !$srchfid} selected="selected"{/if}>{lang search_allforum}</option>
  143.                                                         $forumselect
  144.                                                 </select>
  145.                                         </td>
  146.                                 </tr>

  147.                                 <!--{if $srchtype == 'threadsort'}-->
  148.                                         <tr>
  149.                                                 <th>&nbsp;</th>
  150.                                                 <td><button class="submit" type="submit" name="searchsubmit" value="true">{lang search}</button></td>
  151.                                         </tr>
  152.                                 <!--{/if}-->
  153.                         </table>
  154.                 </div>
  155.                 <!--{/if}-->

  156.                 <!--{if empty($srchtype) && empty($keyword)}-->
  157.                         <hr class="shadowline"/>
  158.                         <h3 style="margin-left: 220px;">{lang search_quick}</h3>
  159.                 <!--{/if}-->
  160.         </form>

  161. <div class="sidebar" id="left-sidebar" style="position: absolute;margin-top: 20px;border-right: 1px solid #CCC;width: 160px;">
  162.                                             <ul class="tabs titlist" id="tab-facet-pForumId">
  163.                                                                                             <li class="current"><em>› </em>便捷搜索:</li>
  164.                                                                                                                                        
  165. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=3600&searchsubmit=yes">1 小时以内的新帖</a></li>
  166. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=14400&searchsubmit=yes">4 小时以内的新帖</a></li>
  167. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=28800&searchsubmit=yes">8 小时以内的新帖</a></li>
  168. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=86400&searchsubmit=yes">24 小时以内的新帖</a></li>
  169. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=604800&searchsubmit=yes">1 周内帖子</a></li>
  170. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=2592000&searchsubmit=yes">1 月内帖子</a></li>
  171. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=15552000&searchsubmit=yes">6 月内帖子</a></li>
  172. <li><em style="color: #fff;">› </em><a href="search.php?srchfrom=31536000&searchsubmit=yes">1 年内帖子</a></li>
  173.                                                                                 </ul>
  174.                     </div>


  175. <div class="searchlist threadlist datalist" style="margin: 20px 170px!important;width: 769px;">
  176.         <div class="itemtitle s_clear">
  177.                 <h1><!--{if $keyword}-->{lang search_result_keyword}<!--{else}-->{lang search_result}<!--{/if}--></h1>
  178.                 <!--{if !empty($multipage)}--><!--{/if}-->
  179.         </div>
  180.         <table summary="{lang search}" cellspacing="0" cellpadding="0" width="100%" class="datatable">
  181.                 <thead>
  182.                         <tr class="colplural">
  183.                                 <td class="folder">&nbsp;</td>
  184.                                 <td class="icon">&nbsp;</td>
  185.                                 <th>{lang subject}</th>
  186.                                 <td class="forum">{lang forum}</td>
  187.                                 <td class="author">{lang author}</td>
  188.                                 <td class="nums">{lang replies}/{lang views}</td>
  189.                                 <td class="lastpost"><cite>{lang lastpost}</cite></td>
  190.                         </tr>
  191.                 </thead>

  192.                 <!--{loop $threadlist $thread}-->
  193.                         <tbody>
  194.                         <tr>
  195.                                 <td class="folder">
  196.                                         <a href="viewthread.php?tid=$thread[tid]&highlight=$index[keywords]" title="{lang target_blank}" target="_blank">
  197.                                         <!--{if $thread[folder] == 'lock'}-->
  198.                                                 <img src="{IMGDIR}/folder_lock.gif" /></a>
  199.                                         <!--{else}-->
  200.                                                 <img src="{IMGDIR}/folder_$thread[folder].gif" /></a>
  201.                                         <!--{/if}-->
  202.                                 </td>
  203.                                 <td class="icon">
  204.                                         <!--{if $thread['special'] == 1}-->
  205.                                                 <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
  206.                                         <!--{elseif $thread['special'] == 2}-->
  207.                                                 <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
  208.                                         <!--{elseif $thread['special'] == 3}-->
  209.                                                 <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
  210.                                         <!--{elseif $thread['special'] == 4}-->
  211.                                                 <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
  212.                                         <!--{elseif $thread['special'] == 5}-->
  213.                                                 <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
  214.                                         <!--{else}-->
  215.                                                 $thread['icon']
  216.                                         <!--{/if}-->
  217.                                 </td>
  218.                                 <th class="subject">
  219.                                         <label>
  220.                                         <!--{if $thread['digest'] > 0}-->
  221.                                                 <img src="{IMGDIR}/digest_$thread[digest].gif" alt="{lang thread_digest} $thread[digest]" />
  222.                                         <!--{/if}-->
  223.                                         &nbsp;
  224.                                         </label>
  225.                                         <a href="viewthread.php?tid=$thread[tid]&highlight=$index[keywords]" target="_blank" $thread[highlight]>$thread[subject]</a>
  226.                                         <!--{if $thread['attachment'] == 2}-->
  227.                                                 <img src="images/attachicons/image_s.gif" alt="{lang attach_img}" class="attach" />
  228.                                         <!--{elseif $thread['attachment'] == 1}-->
  229.                                                 <img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" />
  230.                                         <!--{/if}-->
  231.                                         <!--{if $thread[multipage]}--><span class="threadpages">$thread[multipage]</span><!--{/if}-->
  232.                                 </th>
  233.                                 <td class="forum"><a href="forumdisplay.php?fid=$thread[fid]">$thread[forumname]</a></td>
  234.                                 <td class="author">
  235.                                         <cite>
  236.                                         <!--{if $thread['authorid'] && $thread['author']}-->
  237.                                                 <a href="space.php?uid=$thread[authorid]">$thread[author]</a>
  238.                                         <!--{else}-->
  239.                                                 <!--{if $forum['ismoderator']}--><a href="space.php?uid=$thread[authorid]">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
  240.                                         <!--{/if}-->
  241.                                         </cite>
  242.                                         <em>$thread[dateline]</em>
  243.                                 </td>
  244.                                 <td class="nums"><strong>$thread[replies]</strong> / <em>$thread[views]</em></td>
  245.                                 <td class="lastpost">
  246.                                         <cite><!--{if $thread['lastposter']}--><a href="space.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
  247.                                         <em><a href="redirect.php?tid=$thread[tid]&amp;goto=lastpost$highlight#lastpost">$thread[lastpost]</a></em>
  248.                                 </td>
  249.                         </tr>
  250.                         </tbody>
  251.                 <!--{/loop}-->

  252.                 <!--{if empty($threadlist)}-->
  253.                         <tbody><tr><th colspan="7">{lang search_nomatch}</th></tr></tbody>
  254.                 <!--{/if}-->

  255.         </table>
  256. <!--{if !empty($multipage)}--><div class="pages_btns s_clear">$multipage</div><!--{/if}-->
  257. </div>
  258. <div id="footer_zs">
  259. <p class="copyright">
  260. 由 <strong>纵横搜索</strong> 驱动 <span class="pipe">|</span> <a href="http://你的论坛地址/">论坛首页</a>
  261. </p>
  262. </div>
复制代码
本帖隐藏的内容需要回复才可以浏览
附件: 您需要登录才可以下载或查看附件。没有帐号?注册

最近看过此主题的会员

無名
访问时间:2023-06-25 11:00
9528
访问时间:2022-09-29 18:35
北落师门
访问时间:2020-07-20 10:57
超级皮卡
访问时间:2020-04-30 15:35

点评
B Color Link Smilies

您还可以输入:个字符
X

 X

打包带走,不解释!
点评
B Color Link Smilies

您还可以输入:个字符
X

 X

看帖回帖那是一定要的:哈哈!好资源,拿走了!
点评
B Color Link Smilies

您还可以输入:个字符
X

 X

返回列表 发帖
快速
返回顶部
返回首页