迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
在后臺選擇搜索模板為什么不生效呢
代碼部分是搬得默認模板的搜索代碼
回復@迅睿框架技術-陳老師 可以給代碼嗎?老師,我加了但是不行,欄目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是用來執行搜索的 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>
回復@迅??蚣芗夹g-陳老師 這還需要二開嗎,老師
回復@迅睿框架技術-陳老師 可以給代碼嗎?老師,我加了但是不行,欄目id號是30
回復@迅??蚣芗夹g-陳老師 這還需要二開嗎,老師