迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
在后臺選擇搜索模板為什么不生效呢
代碼部分是搬得默認(rèn)模板的搜索代碼
回復(fù)@迅??蚣芗夹g(shù)-陳老師 可以給代碼嗎?老師,我加了但是不行,欄目id號是30
<form class="search-form" action="{WEB_DIR}index.php" method="get"> <input type="hidden" name="s" value="api"> <input type="hidden" name="c" value="api"> <input type="hidden" name="m" value="search"> <input type="hidden" name="catid" value="30"> <input type="hidden" name="dir" id="dr_search_module_dir" > <label> <input type="text" class="search-input" name="keyword"> </label> <button type="submit" class="search-btnSubmit" ></button> <select class="search-a"> {php $top_search=[];} {cache name=module-content} {if $t.search} {php !$top_search && $top_search=$t;} <option onclick="javascript:dr_search_module_select('{$t.dirname}', '{$t.name}');">{$t.name} </option> {/if} {/cache} </select> <button type="reset" class="search-btnClear" style="right: 255px;"></button> <script> // 這段js是用來執(zhí)行搜索的 function dr_search_module_select(dir, name) { $("#dr_search_module_dir").val(dir); $("#dr_search_module_name").html(name+' <i class="fa fa-angle-down"></i>'); } dr_search_module_select('{php echo MOD_DIR ? MOD_DIR : $top_search.dirname}', '{php echo MOD_DIR ? MODULE_NAME : $top_search.name}'); </script> </form>
回復(fù)@迅??蚣芗夹g(shù)-陳老師 這還需要二開嗎,老師
回復(fù)@迅??蚣芗夹g(shù)-陳老師 可以給代碼嗎?老師,我加了但是不行,欄目id號是30
回復(fù)@迅??蚣芗夹g(shù)-陳老師 這還需要二開嗎,老師