thinkphp5.0的volist如何多次执行?
我想让这部分内容执行三次,但是这会报错。<divclass="form-group"style="margin-top:15px;"><labelfor="name"cl...
我想让这部分内容执行三次,但是这会报错。
<div class="form-group" style="margin-top:15px;">
<label for="name" class="control-label col-xs-12 col-sm-2">超级管理员:</label>
<div class="col-xs-12 col-sm-8">
{volist id="user" name="user"}
{if condition="$user.user_right == 0"}
<input name="delete_super" type="checkbox" value="{$user.user_ID}"/>{$user.user_name}({$user.name})";
{/if}
{/volist}
</div>
</div>
<div class="form-group" style="margin-top:15px;">
<label for="name" class="control-label col-xs-12 col-sm-2">管理员:</label>
<div class="col-xs-12 col-sm-8">
{volist id="user" name="user"}
{if condition="$user.user_right == 1"}
<input name="delete_admin" type="checkbox" value="{$user.user_ID}"/>{$user.user_name}({$user.name})";
{/if}
{/volist}
</div>
</div>
<div class="form-group" style="margin-top:15px;">
<label for="name" class="control-label col-xs-12 col-sm-2">游客:</label>
<div class="col-xs-12 col-sm-8">
{volist id="user" name="user"}
{if condition="$user.user_right == 2"}
<input name="delete_admin" type="checkbox" value="{$user.user_ID}"/>{$user.user_name}({$user.name})";
{/if}
{/volist}
</div>
</div> 展开
<div class="form-group" style="margin-top:15px;">
<label for="name" class="control-label col-xs-12 col-sm-2">超级管理员:</label>
<div class="col-xs-12 col-sm-8">
{volist id="user" name="user"}
{if condition="$user.user_right == 0"}
<input name="delete_super" type="checkbox" value="{$user.user_ID}"/>{$user.user_name}({$user.name})";
{/if}
{/volist}
</div>
</div>
<div class="form-group" style="margin-top:15px;">
<label for="name" class="control-label col-xs-12 col-sm-2">管理员:</label>
<div class="col-xs-12 col-sm-8">
{volist id="user" name="user"}
{if condition="$user.user_right == 1"}
<input name="delete_admin" type="checkbox" value="{$user.user_ID}"/>{$user.user_name}({$user.name})";
{/if}
{/volist}
</div>
</div>
<div class="form-group" style="margin-top:15px;">
<label for="name" class="control-label col-xs-12 col-sm-2">游客:</label>
<div class="col-xs-12 col-sm-8">
{volist id="user" name="user"}
{if condition="$user.user_right == 2"}
<input name="delete_admin" type="checkbox" value="{$user.user_ID}"/>{$user.user_name}({$user.name})";
{/if}
{/volist}
</div>
</div> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询