联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
组合筛选结果页,如何输入当前选中项的值
类型:迅睿CMS 更新时间:2021-01-04 12:29:33

模板标签里面

组合筛选结果页,如何输入当前选中项的值?那个机械行业(下拉框)怎么输出?

<div>当前选中:<span>{dr_linkage('address', $params.diqu, 0, 'name')}</span><span>机械行业</span></div>

                        <div class="filter-t">地区:</div>
                        <div class="filter-d">
                            <ul class="clearfix">
                                <li><a class="{if !$params.diqu || dr_linkage('address', $params.diqu, 0, 'child')}active{/if}" href="{dr_search_url($params, 'diqu', NULL)}">不限</a></li>
                                {list action=linkage code=address pid=$params.diqu}
                                <li><a class="{if $t.id==$params.diqu}active{/if}" href="{dr_search_url($params, 'diqu', $t.id)}">{$t.name}</a></li>
                                {/list}
                            </ul>
                        </div>
                        <div class="filter-t">行业:</div>
                        <div class="filter-d">
                            <ul>
                                {php $field = dr_field_options(29);}
                                <li><a class="{if !$params.hangye}active{/if}" href="{dr_search_url($params, 'hangye', NULL)}">不限</a></li>
                                {loop $field $i $t}
                                <li><a class="{if $i==$params.hangye}active{/if}" href="{dr_search_url($params, 'hangye', $i)}">{$t}</a></li>
                                {/loop}
                            </ul>
                        </div>


回帖
  • 迅睿粉丝
    #1楼    迅睿粉丝
    2020-12-11 21:40:40
    Chrome 0
    demo模板不是有吗

    满意答案
  • 迅睿粉丝
    #2楼    迅睿粉丝
    2021-01-04 12:29:33
    Firefox 84.0 0
    @乌骨人:完结之后本帖将不再提供回复