联系官方销售客服
1835022288
028-61286886
模板标签里面
组合筛选结果页,如何输入当前选中项的值?那个机械行业(下拉框)怎么输出?
<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>