<h3>后台帐户列表</h3>
<?php echo $this->renderPartial('_search');?>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
        'dataProvider' => $dataprovider,
        'itemsCssClass' => 'widefat post',
        'ajaxUpdate' => true,
        'summaryText'=>'显示{start}-{end}条 总共{count}条',
        'columns' => array(
            'id',
            'username',
            'createdate',
            'updatedate',
            'login_ip',
            array(
                'name' => 'status',
                'value' => 'Manager::$status[$data->status]'
            ),
            'remark',
            array(
                'header' => '操做',
                'class'=>'CButtonColumn',
                'template' => '{update} {delete}',
            ),
        ),
    )
);
?>