<?php
$root = array(
	'1' => 'test'
);
$data = array(
	'basic' => array(
		"text" => "基本信息", "expanded" => true, "classes" => "important",
		"children" => array(
			'setting' => array('text' => CHtml::link('系统定义', array('default/setting'), array('target'=>'main'))),
			'link' => array('text' => '友情链接'),
			'type' => array('text' => CHtml::link('分类管理', array('type/admin'), array('target'=>'main'))),
			'ad' => array('text' => '广告管理'),
			'news' => array('text' => CHtml::link('公告管理', array('news/list'), array('target'=>'main'))),
            'vote' => array('text' => CHtml::link('投票管理', array('vote/list'), array('target'=>'main'))),
            'applybm' => array('text' => CHtml::link('书管申请', array('applybm/list'), array('target'=>'main'))),
            'pmlink' => array('text' => CHtml::link('短信链接', array('pmlink/list'), array('target'=>'main'))),
			'logout' => array('text' => CHtml::link('退出登录', array('default/logout'))),
		)
	),
	'user' => array(
		"text" => "用户管理", "expanded" => true, "classes" => "important",
			"children" => array(
				0 => array('text' => CHtml::link('会员列表', array('/notice/'))),
				1 => array('text' => CHtml::link('用户组管理', array('usergroup/show'), array('target'=>'main'))),
				2 => array('text' => CHtml::link('评论列表', array('/notice/create'))),
                3 => array('text' => CHtml::link('高级评论', array('bookpostreply/list'), array('target'=>'main')))
			)
	),
	'book' => array(
		"text" => "书籍管理", "expanded" => true, "classes" => "important",
			"children" => array(
				4 => array('text' => CHtml::link('静态生成', array('chapters/html'), array('target'=>'main'))),
			)
	),
	'picture' => array(
		'text' => '图集管理', 'expanded' => true, 'classes' => 'important',
			'children' => array(
				0 => array('text' => CHtml::link('图集列表', array('/plan/'))),
				1 => array('text' => CHtml::link('自动入库', array('default')))
			)
	),
	'rbac' => array(
		"text" => "权限管理", "expanded" => true, "classes" => "important",
			"children" => array(
				'manage' => array('text' => CHtml::link('授权管理', array('/srbac/authItem/manage/manage'), array('target'=>'main'))),
				'assign' => array('text' => CHtml::link('角色管理', array('srbac/authItem/assign'), array('target'=>'main'))),
				'assignments' => array('text' => CHtml::link('权限查询', array('srbac/authItem/assignments'), array('target'=>'main')))
		)
	),
);
$this->widget('CTreeView', array(
	'persist' => 'cookie', 'data' => $data, 'animated' => 'fast', 'htmlOptions' => array(
	'id' => 'treeview', 'class' => 'left'
)
));
?>