<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Admin'=>array('admin'),
	'View Users'=>array('index'),
	$model->username,
);
?>
<?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 Users', 'url'=>array('index')),
	array('label'=>'Define New User', 'url'=>array('create')),
	
);
?>

<h1>User Detail Information</h1>

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

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
                    'username',
                    'email',
                    array(
                        'name'=>'login_type',                    
                        'value'=> Yii::app()->constanta->type_login[$model->login_type],
                        ),
                    'last_login',
                    'n_tries',
                    'last_try',
                    'ucrea',
                    'dcrea',
                    'icrea',
                    'uupd',
                    'dupd',
                    'iupd',
                        
	),
)); ?>
