迅睿開源框架是一款PHP8高性能·簡(jiǎn)單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
在線咨詢
某個(gè)模塊的篩選字段 怎樣在 首頁(yè)循環(huán)展示
可以的,調(diào)用方法必須上id號(hào),url鏈接參數(shù)必須加上模塊目錄變量
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
回復(fù)迅??蚣軇?chuàng)始人
目前首頁(yè)獲取的是到 這個(gè)模塊的鏈接
/index.php?s=news&c=search
首頁(yè)篩選鏈接如何獲取到后邊的參數(shù)?首頁(yè)點(diǎn)擊后直接進(jìn)入模塊的搜索頁(yè)進(jìn)行篩選
/index.php?s=news&c=search&zhizr=1
<ul> <li class="{if !$params.zhizr}color_f00{else}{/if}"><a href="{Router::search_url($params, 'zhizr', NULL,news)}">全部</a></li> {php $field = dr_field_options(9);} {loop $field $v $name} <li class="{if dr_is_double_search($params.zhizr, $value)} color_f00 {else}{/if}"><a href="{Router::search_url($params, 'zhizr', $value,'news')}">{$name}</a></li> {/loop} </ul>
目前這么寫的 ????
<a href="{Router::search_url($params, 'zhizr', $value,'news')}&catid=1&zhizr={$key+1}">{$name}</a>
可以的,調(diào)用方法必須上id號(hào),url鏈接參數(shù)必須加上模塊目錄變量
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
回復(fù)迅??蚣軇?chuàng)始人
目前首頁(yè)獲取的是到 這個(gè)模塊的鏈接
/index.php?s=news&c=search
首頁(yè)篩選鏈接如何獲取到后邊的參數(shù)?首頁(yè)點(diǎn)擊后直接進(jìn)入模塊的搜索頁(yè)進(jìn)行篩選
/index.php?s=news&c=search&zhizr=1
<ul> <li class="{if !$params.zhizr}color_f00{else}{/if}"><a href="{Router::search_url($params, 'zhizr', NULL,news)}">全部</a></li> {php $field = dr_field_options(9);} {loop $field $v $name} <li class="{if dr_is_double_search($params.zhizr, $value)} color_f00 {else}{/if}"><a href="{Router::search_url($params, 'zhizr', $value,'news')}">{$name}</a></li> {/loop} </ul>回復(fù)迅??蚣軇?chuàng)始人
目前這么寫的 ????
<a href="{Router::search_url($params, 'zhizr', $value,'news')}&catid=1&zhizr={$key+1}">{$name}</a>