智慧建站平台,千套网站模板,免费随心选!

您现在的位置: 首页>>网站教程

phpcms v9搜索功能怎么做

来源: 发布时间:2020-02-03热度:1753 ℃
phpcms v9搜索功能怎么做?phpcmsv9 全站搜索功能如何实现给大家分享一下如何运用搜索功能吧,1. 首先, 模块->全站搜索->添加搜索分类,添加搜索分类,此时生成的ID为typeid 2···

phpcms v9搜索功能怎么做

phpcms v9搜索功能怎么做?phpcmsv9 全站搜索功能如何实现

给大家分享一下如何运用搜索功能吧,

1. 首先, 模块->全站搜索->添加搜索分类,添加搜索分类,此时生成的ID为typeid

6276da69b896991eecad177e8f77897.png

 

2. 添加form表单,此时的typeid即为上图的id,siteid为站点的id

<form method="get" action="{APP_PATH}index.php" target="_blank">
   <td width="">搜索:</td>
   <td width="">
     <input type="text" name="q" id="q" value="" class="inputCom" style="width:196px; height:22px; line-height:22px;">
     <input type="hidden" name="m" value="search"/>
     <input type="hidden" name="c" value="index"/>
     <input type="hidden" name="a" value="init"/>
     <input type="hidden" name="typeid" value="{$typeid}" id="typeid"/>
     <input type="hidden" name="siteid" value="{$siteid}" id="siteid"/>
   </td>
   <td width=""><input type="image" src="{IMG_PATH}sousuo.jpg" border="0" class="sousuo" id="search_btn"></td>
</form>
登录后复制

本文地址:http://ezhuoer.com