<h1>小说专题</h1>
<?php $this->widget('admin.widgets.TableCover');?>
<?php $this->renderPartial('_search');?>
<?php echo CHtml::link('添加新专题', array('/admin/special/create'));?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'dataProvider'=>$dataProvider,
    'itemsCssClass' => 'widefat post',
    'summaryText'=>'显示{start}-{end}条 总共{count}条',
    'columns' => array(
        'id',
        array(
            'name' => 'subject',
            'type' => 'raw',
            'value' => 'CHtml::link($data->subject, array("/admin/specialsubject/list", "id"=>$data->id))'
        ),
        'remarks',
        array(
            'name' => 'isover',
            'value' => '$data->isOver();',
        ),
        array(
            'name' => 'display',
            'value' => '$data->isDisplay();'
        ),
        'click',
        'createdate',
        'updatedate',
        array(
            'header' => '操作',
            'template' => '{update} {delete}',
            'class' => 'CButtonColumn'
        )
    ),
));