<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}条',
        'ajaxUpdate' => false,
        'columns' => array(
            'id',
            'uid',
            'username',
            array(
                'name' => '书名',
                'value' => '$data->book->bookname',
            ),
            'bookid',
            array(
                'name' => 'createdate',
                'value' => 'date("Y-m-d H:i:s", $data->createdate)',
            ),
//            array(
//                'name' => 'issuper',
//                'value' => '$data->issuper ? "超管" : "书管"',
//            ),
//            array(
//                'class'=>'CButtonColumn',
//            ),

        ),
    )
);
?>