<?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',
            'bookname',
            'author',
            'username',
            'uid',
            array(
                'name' => 'createdate',
                'value' => 'date("Y-m-d H:i:s", $data->createdate)',
            ),
            array(
            	'name' => 'status',
                'value' => 'Demands::$status[$data->status]'
            ),
            array(
                'header' => '操作',
                'template' => '{cancel} {complete}',
                'class' => 'admin.components.buttoncolumn.DemandsColumn',
            )
    ),
));