<?php
/* @var $this RolePrivilageController */
/* @var $model RolePrivilage */

$this->breadcrumbs=array(
        'Admin'=>array('../rbac/user/admin'),
	'View Role Privilages'=>array('index'),
	$model->sys_x_role_privilage_id,
);

?>
<?php if(Yii::app()->user->hasFlash('update')){?>
    <div class="flash-success">
        <?php echo yii::app()->user->getFlash('update')?>  
    </div>
<?php }?>

<?php

$this->menu=array(
	array('label'=>'View Role Privilages', 'url'=>array('index')),
	array('label'=>'Define Role Privilage', 'url'=>array('create')),
);
?>

<h1>Role Privilege Detail Information</h1>

<div style="text-align: right">
    <?php echo CHtml::link(CHtml::encode('Update Information'), array('update', 'id'=>$model->sys_x_role_privilage_id)); ?>
</div>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'sys_x_role_privilage_id',
		 array(
                    'label'=>'Role',
                    'type'=>'raw',
                    'value'=>CHtml::encode($model->getRoleText(CHtml::encode($model->sys_m_role_id))),
                ),
		array(
                    'label'=>'Privilage',
                    'type'=>'raw',
                    'value'=>CHtml::encode($model->getPrivilageText(CHtml::encode($model->sys_m_privilage_id))),
                ),
		'ucrea',
		'dcrea',
		'icrea',
		'uupd',
		'dupd',
		'iupd',
	),
)); ?>
