thinkphp volist 循环输出指定值内容问题 5
代码段如下:<div><label>所属分类:</label><selectid="catid"name="catid"><optionvalue="">请选择</opt...
代码段如下:
<div>
<label>所属分类:</label>
<select id="catid" name="catid">
<option value="" >请选择</option>
<volist name="categorylist" id="catvo">
<if condition="$categorylist[$key]['level'] egt $categorylist[$key+1]['level']">
<option value="{$catvo['id']}">
<else />
<option value="{$catvo['id']}" disabled="disabled">
</if>
<for start="1" end="$catvo['level']"> </for>
<if condition="$catvo['level'] gt 1">
├ </if>
{$catvo['catname']}
</option>
</volist>
</select>
<span id="catidTip"></span></div>
---------------------------------------------------
请问,如何让volist仅输出pid=53这个栏目的所有 {$catvo['catname']} 展开
<div>
<label>所属分类:</label>
<select id="catid" name="catid">
<option value="" >请选择</option>
<volist name="categorylist" id="catvo">
<if condition="$categorylist[$key]['level'] egt $categorylist[$key+1]['level']">
<option value="{$catvo['id']}">
<else />
<option value="{$catvo['id']}" disabled="disabled">
</if>
<for start="1" end="$catvo['level']"> </for>
<if condition="$catvo['level'] gt 1">
├ </if>
{$catvo['catname']}
</option>
</volist>
</select>
<span id="catidTip"></span></div>
---------------------------------------------------
请问,如何让volist仅输出pid=53这个栏目的所有 {$catvo['catname']} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询