<?php $this->widget('admin.widgets.TableCover');?>
[<?php echo CHtml::link('添加新任务', array('create'));?>]
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'dataProvider'=>$dataProvider,
    'itemsCssClass' => 'widefat post',
    'summaryText'=>'显示{start}-{end}条 总共{count}条',
    'columns' => array(
        'id',
        'subject',
        'description',
        array(
            'name' => 'status',
            'value' => '$data->getStatusView()',
        ),
        'count',
        'reward',
        'createdate',
        array(
            'header' => '操作',
            'class' => 'CButtonColumn',
            'template' => '{update} {delete}',
        )
    ),
));