迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
想以一个下拉列表式的(联动菜单)做一个搜索 网点内容搜索
从dede那边导不过来 infos 的文章数据。
用迅睿不大熟,始终找不到关键点。
样式如下,
{dr_fieldform(\Phpcmf\Service::C()->get_cache('table-field', 99999), '')}
99999是地区字段的id
<form class="shop-serch f-cb" action="/index.php" method="get"> <span class="fl text" id="span_nativeplace"><select><option value="山东省">山东省</option></select></span> <span class="fl text" id="span_nativeplace_son"><select><option value="济宁市">济宁市</option></select></span> <span class="fl text" id="span_nativeplace_sec"> <select name="nativeplace_sec" id="nativeplace_sec"> {list action=linkage code=shandongdiqu pid=106} <option value="0">请选择..</option> <option value="{$t.cname}"><a class="label {if $t.id==$params.diqu}label-success{else}label-default{/if}" href="{Router::search_url($params, 'diqu', $t.id)}">{$t.name}</a></option> {/list} </select> </span> <input type="hidden" name="s" value="infos"> <input type="hidden" name="c" value="search"> <input type="text" name="keyword" placeholder="请输入关键词搜索" value="" class="fl text"> <input type="submit" value="" class="submit fl"> </form>
<select name="diqu" id="diqu">
标签解析:{list action=search module=infos id=32fdeb18111a1d580d3cb985aaf7665f total=0 order= catid=0 page=1 pagesize=10 urlrule= 搜索解析:SELECT `dr_1_infos`.`id` FROM `dr_1_infos` WHERE `dr_1_infos`.`status` = 9 AND (`dr_1_infos`.`diqu`=1672) AND (`dr_1_infos`.`sousuofenlei`=2) ORDER BY NULL 当前地址: 当前路由:infos/search/index 没有搜索结果 变量前缀:t 开发模式:已开启 数据缓存:后台未开启缓存 分页功能:未开启
当前地址:
<form class="shop-serch f-cb" action="/index.php" method="get"> <span class="fl text" id="span_nativeplace"><select><option value="山东省">山东省</option></select></span> <span class="fl text" id="span_nativeplace_son"><select><option value="济宁市">济宁市</option></select></span> <span class="fl text" id="span_nativeplace_sec"> <select name="diqu" id="diqu"> <option value="jining">请选择..</option> {list action=linkage code=shandongdiqu pid=106} <option value="{$t.cname}"><a class="label {if $t.id==$params.diqu}label-success{else}label-default{/if}" href="{Router::search_url($params, 'diqu', $t.id)}">{$t.name}</a></option> {/list} </select> </span> <input type="hidden" name="s" value="infos"> <input type="hidden" name="c" value="search"> <input type="hidden" name="sousuofenlei" value="2"> <input type="text" name="keyword" placeholder="请输入关键词搜索" value="" class="fl text"> <input type="submit" value="" class="submit fl"> </form>
{search module=infos id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=10 urlrule=$urlrule} <tr> <td> <span class="box f-cb"> <h2>网</h2> <!--<div class="fl"> <h3 title="[field:linkman/]">[field:linkman/]</h3> </div> --> </span> </td> <td class="box-b"> <p>{$t.title}</p> </td> <td class="box-b"> <p>{$t.dianhua}</p> </td> <td class="box-b"> <p>{$t.dizhi}</p> </td> </tr> {/search}
99999是地区字段的id