<?php $this->breadcrumbs = array( $model->label(2) => array('index'), GxHtml::valueEx($model), ); $this->menu=array( array('label'=>Yii::t('app', 'Listar') . ' ' . $model->label(2), 'url'=>array('index')), array('label'=>Yii::t('app', 'Registrar') . ' ' . $model->label(), 'url'=>array('create')), array('label'=>Yii::t('app', 'Actualizar') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->PK_MZGTCARRERAS)), ////array('label'=>Yii::t('app', 'Eliminar') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->PK_MZGTCARRERAS), 'confirm'=>'Are you sure you want to delete this item?')), array('label'=>Yii::t('app', 'Administrar') . ' ' . $model->label(2), 'url'=>array('admin')), ); ?> <h1><?php echo Yii::t('app', 'Vista') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></h1> <?php $this->widget('zii.widgets.CDetailView', array( 'data' => $model, 'attributes' => array( 'PK_MZGTCARRERAS', 'MZGTCARRERAS_NOMBRE', 'MZGTCARRERAS_BANNER', //'MZGTCARRERAS_ESTADO:boolean', array( 'name'=>'MZGTCARRERAS_ESTADO', 'value'=>('MZGTCARRERAS_ESTADO' === 0) ? Yii::t('app', 'Inactivo') : Yii::t('app', 'Activo'), ), ), )); ?> <h2><?php echo GxHtml::encode($model->getRelationLabel('mzgtbancoautores')); ?></h2> <?php echo GxHtml::openTag('ul'); foreach($model->mzgtbancoautores as $relatedModel) { echo GxHtml::openTag('li'); echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('mzgtbancoautores/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); echo GxHtml::closeTag('li'); } echo GxHtml::closeTag('ul'); ?><h2><?php echo GxHtml::encode($model->getRelationLabel('mzgtdepartamentoses')); ?></h2> <?php echo GxHtml::openTag('ul'); foreach($model->mzgtdepartamentoses as $relatedModel) { echo GxHtml::openTag('li'); echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('mzgtdepartamentos/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); echo GxHtml::closeTag('li'); } echo GxHtml::closeTag('ul'); ?>