<?php $this->widget('admin.widgets.TableCover');?>
<?php $this->renderPartial('_search');?>
<?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/bookvote/view","id"=>$data->id))',
        ),
        'bookid',
        array(
            'name' => 'createdate',
            'value' => 'date("Y-m-d H:i:s",$data->createdate)',
        ),
        array(
            'name' => 'expire',
            'value' => 'date("Y-m-d H:i:s",$data->expire)',
        ),
        array(
            'name' => 'issuper',
            'value' => 'ApplyBm::$isSuper[$data->issuper]',
        ),
        'maxchoices',
        'award',
        'description',
    ),
));