<h2>高级评论投诉列表</h2>
<?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/bookpostreply/view","pid"=>$data->postid),array("target"=>"_blank"))',
        ),
        'content',
        'postid',
        'author',
        'authorid',
        'username',
        'uid',
        array(
            'name' => 'createdate',
            'value' => 'date("Y-m-d H:i:s", $data->createdate)',
        ),
        'bookid',
        array(
            'header' => '操作',
            'template' => '{delete} {punish} {award}',
            'class' => 'admin.components.buttoncolumn.BookPostComplaintsList',
        )
    ),
));