<?php
$this->breadcrumbs=array(
	Yii::t('intranet', 'Usuarios')=>array('index'),
        //(count($dataProvider) == 1) ? $dataProvider->name : 'Ver usuarios',
        Yii::t('intranet', 'Ver usuarios'),
);

$this->menu=array(
	array(
            'label'=>'<img class="mgright5" alt="Lista de usuarios" src="' . Yii::app()->baseUrl . '/images/icons/small/white/user.png"/>Lista de usuarios',
            'url'=>array('index'),
            'linkOptions'=>array('class'=>'iconlink'),
        ),
	array(
            'label'=>'<img class="mgright5" alt="Nuevo usuario" src="' . Yii::app()->baseUrl . '/images/icons/small/white/user.png"/>Nuevo usuario',
            'url'=>array('create'),
            'linkOptions'=>array('class'=>'iconlink2'),
        ),
	array(
            'label'=>'<img class="mgright5" alt="Modificar usuario" src="' . Yii::app()->baseUrl . '/images/icons/small/white/user.png"/>Modificar usuario',
            //'url'=>array('view', 'id'=>$model->id),
            'linkOptions'=>array('class'=>'iconlink2'),
        ),    
	array(
            'label'=>'<img class="mgright5" alt="Eliminar usuario" src="' . Yii::app()->baseUrl . '/images/icons/small/white/user.png"/>Eliminar usuario',
            'url'=>'#',
            'linkOptions'=>array(
                'class'=>'iconlink2',
                //'submit'=>array('delete','id'=>$model->id),
                'confirm'=>'Are you sure you want to delete this item?',
            ),
        ),      
);

//$this->pageTitle='Usuario ' . $model->name . ' (' . $model->username . ')';
?>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
        'enablePagination'=>false,
        'summaryText'=>'',
)); ?>

