i-share 爱生活爱分享's Archiver

無名 发表于 2020-4-27 15:58

仿X3官方纵横搜索【升级版】

[align=center]来源:[img]https://kuchingshare.my/other/p/bones.jpg[/img]  [url=http://bone.joinbbs.net][color=red][b]bone[/b][/color][/url]        作者:[img]https://kuchingshare.my/other/p/bone.jpg[/img]  [color=#0086FF]骨头[/color]  [/align]

[align=center][attach]267[/attach]  [/align]

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

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


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

                <td class="adv_srch">
</td>
                        <!--{/if}-->
                </tr>
</tbody></table>
<!--{/if}-->

               


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

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

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

                                        <tr>
                                                <td>{lang search_thread_range}</td>
                                                <td>
                                                        <label><input type="radio" name="srchfilter" value="all" checked="checked" /> {lang search_thread_range_all}</label>
                                                        <label><input type="radio" name="srchfilter" value="digest" /> {lang search_thread_range_digest}</label>
                                                        <label><input type="radio" name="srchfilter" value="top" /> {lang search_thread_range_top}</label>
                                                </td>
                                        </tr>
                                <!--{/if}-->

                                <!--{if $checkarray[posts]}-->
                                        <tr>
                                                <td>{lang special_thread}</td>
                                                <td>
                                                        <label><input type="checkbox" name="special[]" value="1" /> {lang special_poll}</label>
                                                        <label><input type="checkbox" name="special[]" value="2" /> {lang special_trade}</label>
                                                        <label><input type="checkbox" name="special[]" value="3" /> {lang special_reward}</label>
                                                        <label><input type="checkbox" name="special[]" value="4" /> {lang special_activity}</label>
                                                        <label><input type="checkbox" name="special[]" value="5" /> {lang special_debate}</label>
                                                        <!--{loop $threadplugins $pluginid $threadplugin}-->
                                                                <label><input type="checkbox" name="specialplugin[]" value="$threadplugin[iconid]" /> $threadplugin[name]</label>
                                                        <!--{/loop}-->
                                                </td>
                                        </tr>
                                <!--{/if}-->

                                <!--{if $srchtype == 'trade'}-->
                                        <tr>
                                                <td>{lang search_tradetype}</td>
                                                <td>
                                                        <select name="srchtypeid"><option value="">{lang all}</option>
                                                        <!--{loop $tradetypes $typeid $typename}-->
                                                                <option value="$typeid">$typename</option>
                                                        <!--{/loop}-->
                                                        </select>
                                                </td>
                                        </tr>
                                <!--{/if}-->

                                <!--{if $checkarray[posts] || $srchtype == 'trade'}-->
                                        <tr>
                                                <th><label for="srchfrom">{lang search_time}</label></th>
                                                <td>
                                                        <select id="srchfrom" name="srchfrom">
                                                                <option value="0">{lang search_any_date}</option>
                                                                <option value="86400">{lang 1_days_ago}</option>
                                                                <option value="172800">{lang 2_days_ago}</option>
                                                                <option value="604800">{lang 7_days_ago}</option>
                                                                <option value="2592000">{lang 30_days_ago}</option>
                                                                <option value="7776000">{lang 90_days_ago}</option>
                                                                <option value="15552000">{lang 180_days_ago}</option>
                                                                <option value="31536000">{lang 365_days_ago}</option>
                                                        </select>
                                                        <label><input type="radio" name="before" value="" checked="checked" /> {lang search_newer}</label>
                                                        <label><input type="radio" name="before" value="1" /> {lang search_older}</label>
                                                </td>
                                        </tr>

                                        <tr>
                                                <td><label for="orderby">{lang search_orderby}</label></td>
                                                <td>
                                                        <select id="orderby1" name="orderby">
                                                                <option value="lastpost" selected="selected">{lang order_lastpost}</option>
                                                                <option value="dateline">{lang order_starttime}</option>
                                                                <option value="replies">{lang order_replies}</option>
                                                                <option value="views">{lang order_views}</option>
                                                        </select>
                                                        <select id="orderby2" name="orderby" style="position: absolute; display: none" disabled>
                                                                <option value="dateline" selected="selected">{lang dateline}</option>
                                                                <option value="price">{lang post_trade_price}</option>
                                                                <option value="expiration">{lang trade_remaindays}</option>
                                                        </select>
                                                        <label><input type="radio" name="ascdesc" value="asc" /> {lang order_asc}</label>
                                                        <label><input type="radio" name="ascdesc" value="desc" checked="checked" /> {lang order_desc}</label>
                                                </td>
                                        </tr>
                                <!--{/if}-->

                                <tr>
                                        <td valign="top"><label for="srchfid">{lang search_range}</label></td>
                                        <td>
                                                <select id="srchfid" name="srchfid[]" multiple="multiple" size="10" style="width: 26em;">
                                                        <option value="all"{if !$srchfid} selected="selected"{/if}>{lang search_allforum}</option>
                                                        $forumselect
                                                </select>
                                        </td>
                                </tr>

                                <!--{if $srchtype == 'threadsort'}-->
                                        <tr>
                                                <th>&nbsp;</th>
                                                <td><button class="submit" type="submit" name="searchsubmit" value="true">{lang search}</button></td>
                                        </tr>
                                <!--{/if}-->
                        </table>
                </div>
                <!--{/if}-->

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

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


<div class="searchlist threadlist datalist" style="margin: 20px 170px!important;width: 769px;">
        <div class="itemtitle s_clear">
                <h1><!--{if $keyword}-->{lang search_result_keyword}<!--{else}-->{lang search_result}<!--{/if}--></h1>
                <!--{if !empty($multipage)}--><!--{/if}-->
        </div>
        <table summary="{lang search}" cellspacing="0" cellpadding="0" width="100%" class="datatable">
                <thead>
                        <tr class="colplural">
                                <td class="folder">&nbsp;</td>
                                <td class="icon">&nbsp;</td>
                                <th>{lang subject}</th>
                                <td class="forum">{lang forum}</td>
                                <td class="author">{lang author}</td>
                                <td class="nums">{lang replies}/{lang views}</td>
                                <td class="lastpost"><cite>{lang lastpost}</cite></td>
                        </tr>
                </thead>

                <!--{loop $threadlist $thread}-->
                        <tbody>
                        <tr>
                                <td class="folder">
                                        <a href="viewthread.php?tid=$thread[tid]&highlight=$index[keywords]" title="{lang target_blank}" target="_blank">
                                        <!--{if $thread[folder] == 'lock'}-->
                                                <img src="{IMGDIR}/folder_lock.gif" /></a>
                                        <!--{else}-->
                                                <img src="{IMGDIR}/folder_$thread[folder].gif" /></a>
                                        <!--{/if}-->
                                </td>
                                <td class="icon">
                                        <!--{if $thread['special'] == 1}-->
                                                <img src="{IMGDIR}/pollsmall.gif" alt="{lang thread_poll}" />
                                        <!--{elseif $thread['special'] == 2}-->
                                                <img src="{IMGDIR}/tradesmall.gif" alt="{lang thread_trade}" />
                                        <!--{elseif $thread['special'] == 3}-->
                                                <img src="{IMGDIR}/rewardsmall.gif" alt="{lang thread_reward}" />
                                        <!--{elseif $thread['special'] == 4}-->
                                                <img src="{IMGDIR}/activitysmall.gif" alt="{lang thread_activity}" />
                                        <!--{elseif $thread['special'] == 5}-->
                                                <img src="{IMGDIR}/debatesmall.gif" alt="{lang thread_debate}" />
                                        <!--{else}-->
                                                $thread['icon']
                                        <!--{/if}-->
                                </td>
                                <th class="subject">
                                        <label>
                                        <!--{if $thread['digest'] > 0}-->
                                                <img src="{IMGDIR}/digest_$thread[digest].gif" alt="{lang thread_digest} $thread[digest]" />
                                        <!--{/if}-->
                                        &nbsp;
                                        </label>
                                        <a href="viewthread.php?tid=$thread[tid]&highlight=$index[keywords]" target="_blank" $thread[highlight]>$thread[subject]</a>
                                        <!--{if $thread['attachment'] == 2}-->
                                                <img src="images/attachicons/image_s.gif" alt="{lang attach_img}" class="attach" />
                                        <!--{elseif $thread['attachment'] == 1}-->
                                                <img src="images/attachicons/common.gif" alt="{lang attachment}" class="attach" />
                                        <!--{/if}-->
                                        <!--{if $thread[multipage]}--><span class="threadpages">$thread[multipage]</span><!--{/if}-->
                                </th>
                                <td class="forum"><a href="forumdisplay.php?fid=$thread[fid]">$thread[forumname]</a></td>
                                <td class="author">
                                        <cite>
                                        <!--{if $thread['authorid'] && $thread['author']}-->
                                                <a href="space.php?uid=$thread[authorid]">$thread[author]</a>
                                        <!--{else}-->
                                                <!--{if $forum['ismoderator']}--><a href="space.php?uid=$thread[authorid]">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
                                        <!--{/if}-->
                                        </cite>
                                        <em>$thread[dateline]</em>
                                </td>
                                <td class="nums"><strong>$thread[replies]</strong> / <em>$thread[views]</em></td>
                                <td class="lastpost">
                                        <cite><!--{if $thread['lastposter']}--><a href="space.php?username=$thread[lastposterenc]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
                                        <em><a href="redirect.php?tid=$thread[tid]&amp;goto=lastpost$highlight#lastpost">$thread[lastpost]</a></em>
                                </td>
                        </tr>
                        </tbody>
                <!--{/loop}-->

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

        </table>
<!--{if !empty($multipage)}--><div class="pages_btns s_clear">$multipage</div><!--{/if}-->
</div>
<div id="footer_zs">
<p class="copyright">
由 <strong>纵横搜索</strong> 驱动 <span class="pipe">|</span> <a href="http://你的论坛地址/">论坛首页</a>
</p>
</div>[/code]**** Hidden Message *****

东窗凝月 发表于 2020-4-30 15:35

打包带走,不解释!

北落师门 发表于 2020-7-18 18:14

[quote]看帖回帖那是一定要的:[img]http://i-share.funbbs.me/images/smilies/007/02.gif[/img]哈哈!好资源,拿走了![/quote]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.