{extend name="index:layout" /} {block name="menu"}{/block} {block name="content"}
修改{$info.title}后台权限
{volist name="listdb" id="array"}{php}$_key = $key;{/php}
{$array.title}
{volist name="array.sons" id="vs"}

{$vs.title}
  {volist name="$vs.sons" id="rs"} {php} is_array($rs['link']) && $rs['link'] = $rs['link'][0]; $k=$_key.'-'.$rs['model'].'-'.$rs['link']; {/php}
  {$rs.title}
  - {php} $rs['power'] = preg_match('/\/index$/',$rs['link'])&&!isset($rs['power'])?['add','edit','delete']:$rs['power']; $power = []; $_title=['add'=>'新增','edit'=>'修改','delete'=>'删除']; foreach($rs['power'] AS $_k=>$_v)$power[is_numeric($_k)?$_v:$_k] = is_numeric($_k)?$_title[$_v]:$_v; list($controller) = explode('/',$rs['link']); {/php} {volist name="power" id="ps"}{php} $k=$_key.'-'.$rs['model'].'-'.(strstr($key,'/')?'':$controller.'/').$key;{/php}
    {$ps}
    {/volist}
  {/volist}

{/volist}
{/volist}
{/block}