循环问题

浏览:71 发布日期:2018/12/06 分类:求助交流 关键字: 循环
//数组
array(3) {
[0] => array(4) {
["role_id"] => int(1)
["role_name"] => string(15) "超级管理员"
["role_auth_ids"] => string(1) "0"
["auth_name"] => string(18) "拥有全部权限"
}
[1] => array(4) {
["role_id"] => int(2)
["role_name"] => string(9) "采集员"
["role_auth_ids"] => string(17) "2,8,9,10,11,12,13"
["auth_name"] => array(7) {
[0] => array(1) {
["auth_name"] => string(12) "文章管理"
}
[1] => array(1) {
["auth_name"] => string(12) "文章列表"
}
[2] => array(1) {
["auth_name"] => string(12) "文章添加"
}
[3] => array(1) {
["auth_name"] => string(12) "文章删除"
}
[4] => array(1) {
["auth_name"] => string(12) "文章修改"
}
[5] => array(1) {
["auth_name"] => string(15) "文章回收站"
}
[6] => array(1) {
["auth_name"] => string(12) "文章还原"
}
}
}
[2] => array(4) {
["role_id"] => int(3)
["role_name"] => string(12) "开发人员"
["role_auth_ids"] => string(45) "2,8,9,10,11,12,13,3,14,15,16,17,4,18,19,20,21"
["auth_name"] => array(17) {
[0] => array(1) {
["auth_name"] => string(12) "文章管理"
}
[1] => array(1) {
["auth_name"] => string(12) "文章列表"
}
[2] => array(1) {
["auth_name"] => string(12) "文章添加"
}
[3] => array(1) {
["auth_name"] => string(12) "文章删除"
}
[4] => array(1) {
["auth_name"] => string(12) "文章修改"
}
[5] => array(1) {
["auth_name"] => string(15) "文章回收站"
}
[6] => array(1) {
["auth_name"] => string(12) "文章还原"
}
[7] => array(1) {
["auth_name"] => string(12) "分类管理"
}
[8] => array(1) {
["auth_name"] => string(12) "分类列表"
}
[9] => array(1) {
["auth_name"] => string(12) "分类添加"
}
[10] => array(1) {
["auth_name"] => string(12) "分类编辑"
}
[11] => array(1) {
["auth_name"] => string(12) "分类删除"
}
[12] => array(1) {
["auth_name"] => string(15) "管理员管理"
}
[13] => array(1) {
["auth_name"] => string(15) "管理员编辑"
}
[14] => array(1) {
["auth_name"] => string(15) "管理员列表"
}
[15] => array(1) {
["auth_name"] => string(15) "管理员删除"
}
[16] => array(1) {
["auth_name"] => string(15) "管理员添加"
}
}
}
}

//页面
{volist name="role" id="r"}
<tr style="text-align:center;">
<td>{$r.role_id}</td>
<td>{$r.role_name}</td>
<td>
//这里如何把auth_name的内容输出出来????
</td>
</tr>
{/volist}
最佳答案
评论( 相关
后面还有条评论,点击查看>>