迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
在搜索页面怎么获取当前选中(单选或者多选)字段的中文名而不是选中的值。
<li>
<span>福利版本:</span>
<p>
<a href="{Router::search_url($params, 'fulibanben', NULL)}" {if !$params.fulibanben}class="current"{/if}>全部</a>
{php $field = dr_field_options($ci->module['field']['fulibanben']['id']);}
{loop $field $value $name}
<a href="{Router::search_url($params, 'fulibanben', $value)}" {if $value==$params.fulibanben}class="current"{/if}>{$name}</a>
{/loop}
</p>
</li>
<span>游戏分类:</span>
<a href="{Router::search_url($params, 'youxifenlei', NULL)}" {if !$params.youxifenlei}class="current"{/if}>全部</a>
{php $field = dr_field_options($ci->module['field']['youxifenlei']['id']);}
<a href="{Router::search_url($params, 'youxifenlei', $value)}" {if $value==$params.youxifenlei}class="current"{/if}>{$name}</a>
<li> <span>福利版本:</span> <p> <a target="_blank" href="{Router::search_url($params, 'fulibanben', NULL)}" {if !$params.fulibanben}class="current"{/if}>全部</a> {php $field = dr_field_options($ci->module['field']['fulibanben']['id']);} {loop $field $value $name} <a target="_blank" href="{Router::search_url($params, 'fulibanben', $value)}" {if $value==$params.fulibanben}class="current"{/if}>{$name}</a> {/loop} </p> {if $params.fulibanben} 选中了:{$field[$params.fulibanben}]} {/if} </li> <li> <span>游戏分类:</span> <p> <a target="_blank" href="{Router::search_url($params, 'youxifenlei', NULL)}" {if !$params.youxifenlei}class="current"{/if}>全部</a> {php $field = dr_field_options($ci->module['field']['youxifenlei']['id']);} {loop $field $value $name} <a target="_blank" href="{Router::search_url($params, 'youxifenlei', $value)}" {if $value==$params.youxifenlei}class="current"{/if}>{$name}</a> {/loop} </p> {if $params.youxifenlei} 选中了:{$field[$params.youxifenlei}]} {/if} </li>
<li>
<span>福利版本:</span>
<p>
<a href="{Router::search_url($params, 'fulibanben', NULL)}" {if !$params.fulibanben}class="current"{/if}>全部</a>
{php $field = dr_field_options($ci->module['field']['fulibanben']['id']);}
{loop $field $value $name}
<a href="{Router::search_url($params, 'fulibanben', $value)}" {if $value==$params.fulibanben}class="current"{/if}>{$name}</a>
{/loop}
</p>
</li>
<li>
<span>游戏分类:</span>
<p>
<a href="{Router::search_url($params, 'youxifenlei', NULL)}" {if !$params.youxifenlei}class="current"{/if}>全部</a>
{php $field = dr_field_options($ci->module['field']['youxifenlei']['id']);}
{loop $field $value $name}
<a href="{Router::search_url($params, 'youxifenlei', $value)}" {if $value==$params.youxifenlei}class="current"{/if}>{$name}</a>
{/loop}
</p>
</li>