把以下smarty模版引擎的代码改为thinkphp的模版引擎代码?
<ul>{foreach$p_authas$k=>$v}<li>{$v.auth_name}{$v.auth_c}<input{ifin_array($v.auth_id...
<ul>
{foreach $p_auth as $k => $v}
<li>{$v.auth_name}{$v.auth_c}<input {if in_array($v.auth_id,$role_auth_ids)}checked{/if} name="auth_name[]" type="checkbox" value="{$v.auth_id}"/></li>
<li>
<ul>
{foreach $s_auth as $kk => $vv}
{if $vv.auth_pid == $v.auth_id}
<li>{$vv.auth_name}{$vv.auth_a}<input {if in_array($vv.auth_id,$role_auth_ids)}checked{/if} name="auth_name[]" type="checkbox" value="{$vv.auth_id}"/></li>
<li>
<ul>
{foreach $t_auth as $kkk => $vvv}
{if $vvv.auth_pid == $vv.auth_id}
<li>{$vvv.auth_name}{$vv.auth_a}<input {if in_array($vvv.auth_id,$role_auth_ids)}checked{/if} name="auth_name[]" type="checkbox" value="{$vvv.auth_id}"/></li>
{/if}
{/foreach}
</ul>
</li>
{/if}
{/foreach}
</ul>
</li>
{/foreach}
</ul> 展开
{foreach $p_auth as $k => $v}
<li>{$v.auth_name}{$v.auth_c}<input {if in_array($v.auth_id,$role_auth_ids)}checked{/if} name="auth_name[]" type="checkbox" value="{$v.auth_id}"/></li>
<li>
<ul>
{foreach $s_auth as $kk => $vv}
{if $vv.auth_pid == $v.auth_id}
<li>{$vv.auth_name}{$vv.auth_a}<input {if in_array($vv.auth_id,$role_auth_ids)}checked{/if} name="auth_name[]" type="checkbox" value="{$vv.auth_id}"/></li>
<li>
<ul>
{foreach $t_auth as $kkk => $vvv}
{if $vvv.auth_pid == $vv.auth_id}
<li>{$vvv.auth_name}{$vv.auth_a}<input {if in_array($vvv.auth_id,$role_auth_ids)}checked{/if} name="auth_name[]" type="checkbox" value="{$vvv.auth_id}"/></li>
{/if}
{/foreach}
</ul>
</li>
{/if}
{/foreach}
</ul>
</li>
{/foreach}
</ul> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
2个回答
2015-07-28
展开全部
if(success != 1 && maze[i][j+1] == 0) visit(i, j+1);
if(success != 1 && maze[i+1][j] == 0) visit(i+1, j);
if(success != 1 && maze[i][j-1] == 0) visit(i, j-1);
if(success != 1 && maze[i-1][j] == 0) visit(i-1, j);
if(success != 1)
if(success != 1 && maze[i+1][j] == 0) visit(i+1, j);
if(success != 1 && maze[i][j-1] == 0) visit(i, j-1);
if(success != 1 && maze[i-1][j] == 0) visit(i-1, j);
if(success != 1)
追问
有点看不懂,能解释一下否?
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询