本文整理汇总了PHP中Empleado::representingColumn方法的典型用法代码示例。如果您正苦于以下问题:PHP Empleado::representingColumn方法的具体用法?PHP Empleado::representingColumn怎么用?PHP Empleado::representingColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Empleado
的用法示例。
在下文中一共展示了Empleado::representingColumn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
/** @var EmpleadoSubalternoController $this */
/** @var AweActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
<?php
echo $form->textFieldRow($model, 'id');
?>
<?php
echo $form->dropDownListRow($model, 'empleado_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Empleado::model()->findAll(), 'id', Empleado::representingColumn()));
?>
<div class="form-actions">
<?php
$this->widget('bootstrap.widgets.TbButton', array('type' => 'primary', 'label' => Yii::t('AweCrud.app', 'Search')));
?>
</div>
<?php
$this->endWidget();
示例2: array
<!-- widget header -->
<div class="widget-header bg-cyan">
<!-- widget title -->
<h4 class="widget-title"><i class="aweso-user"></i> <?php
echo Yii::t('AweCrud.app', 'Manage');
?>
<?php
echo ContactoTelefonico::label(2);
?>
</h4>
<!-- widget action, you can also use btn, btn-group, nav-tabs or nav-pills (also support dropdown). enjoy! -->
<div class="widget-action">
<button data-toggle="collapse" data-collapse="#widget-button" class="btn">
<i class="aweso-chevron-up color-cyan" data-toggle-icon="aweso-chevron-down aweso-chevron-up"></i>
</button>
</div>
</div><!-- /widget header -->
<!-- widget content -->
<div class="widget-content bg-white">
<div style='overflow:auto'>
<?php
//$this->widget('bootstrap.widgets.TbGridView',array(
$this->widget('ext.selgridview.BootSelGridView', array('id' => 'contacto-telefonico-grid', 'type' => 'striped bordered hover advance ', 'template' => '{summary}{items}{pager}', 'dataProvider' => $model->search(), 'pagerCssClass' => 'pagination text-center', 'selectableRows' => 2, 'columns' => array('id', 'numero', array('name' => 'tipo', 'filter' => array('FIJO' => 'FIJO', 'CELULAR' => 'CELULAR')), array('name' => 'principlal', 'filter' => array('SI' => 'SI', 'NO' => 'NO')), array('name' => 'estado', 'filter' => array('ACTIVO' => 'ACTIVO', 'INACTIVO' => 'INACTIVO')), array('name' => 'empleado_id', 'value' => 'isset($data->empleado) ? $data->empleado : null', 'filter' => CHtml::listData(Empleado::model()->findAll(), 'id', Empleado::representingColumn())), array('class' => 'CButtonColumn', 'template' => '{view} {update} {delete}', 'deleteConfirmation' => CrugeTranslator::t('admin', 'Are you sure you want to delete this user'), 'buttons' => array('view' => array('label' => '<button class="btn btn-success"><i class="aweso-eye-open"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'View')), 'imageUrl' => false), 'update' => array('label' => '<button class="btn btn-info"><i class="aweso-pencil"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Update')), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="aweso-trash"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Delete')), 'imageUrl' => false)), 'htmlOptions' => array('width' => '206px')))));
?>
</div>
</div>
</div>
</div>
</div>
<!--</fieldset>-->