迅睿搜索代碼
<form class="search-form" action="/index.php" method="get">
<input type="hidden" name="s" value="news">
<input type="hidden" name="c" value="search">
<input type="text" placeholder="搜索內容..." name="keyword">
<input type="submit" value="提交搜索" />
</form>
<form class="search-form" action="/index.php" method="get">
<input type="hidden" name="s" value="pb">
<input type="hidden" name="c" value="search">
<input type="text" placeholder="搜索內容..." name="keyword">
<input type="submit" value="提交搜索" />
</form>
-----搜索標簽參數是固定寫法不可增減,pagesize參數是控制每頁顯示數(可以修改),more=1表示顯示欄目模型字段------
{search module=MOD_DIR id=$searchid total=$sototal order=$params.order more=1 catid=$catid page=1 pagesize=5 urlrule=$urlrule return=rs}
當前行數(從1開始):{$key_rs+1} 當前行數(從0開始):{$key_rs}
標題:{$rs.title} 地址:{$rs.url}
縮略圖: {dr_thumb($rs.thumb, 200, 200)} 判斷有無縮略圖:{if $rs.thumb}有的{else}沒有{/if}
時間:{$rs.updatetime} 自定義時間:{dr_date($rs._updatetime, 'Y-m-d')}
所屬欄目;{dr_cat_value($rs.catid, 'name')} 欄目地址:{dr_cat_value($rs.catid, 'url')}
=====其他字段調用方式 點擊下方按鈕生成
{/search}
分頁:{$pages_rs}
調試排錯診斷信息:{$debug_rs} (開發者模式下才可用)
如果您的問題還未解決可以聯系站長付費協助。

有問題可以加入技術QQ群一起交流學習
本站vip會員 請加入無憂模板網 VIP群(50604020) PS:加入時備注用戶名或昵稱
普通注冊會員或訪客 請加入無憂模板網 技術交流群(50604130)
客服微信號:15898888535
聲明:本站所有文章資源內容,如無特殊說明或標注,均為采集網絡資源。如若內容侵犯了原著者的合法權益,可聯系站長刪除。