<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'conlist-grid',
'dataProvider'=>$dataProvider,
'columns'=>array(
array(
'type'=>'raw',
'value'=>'CHtml::link($data->con_id, array("conlist/view", "id"=>$data->con_id))',
),
array(
'header'=> 'date',
'sortable'=> true,
'name' => 'con_date',
'value' => 'date("Y-m-d H:i",strtotime($data->con_date))',
),
'con_track',
array(
'type'=>'text',
'value'=>'implode("/",array($data->con_ap,$data->con_ip,$data->con_fp))',
),
array(
'type'=>'raw',
'value'=>'CHtml::link("Выключить", array("conlist/switchoff", "id"=>$data->con_id))',
),
),
)); ?>
Yii Справочник v0.05 © 2007-2024 Igor Salnikov aka SunDoctor