<h3>用户列表</h3>
<style>
<!--
.operate {
	text-align:center;
	width:200px;
}
-->
</style>
<?php $this->widget('admin.widgets.TableCover');?>
<?php echo $this->renderPartial('_search',array('groups'=>$groups));?>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
        'dataProvider' => $dataProvider,
        'itemsCssClass' => 'widefat post',
        'ajaxUpdate' => true,
        //'summaryText'=>'显示{start}-{end}条 总共{count}条',
        'columns' => array(
            'uid',
            'username',
			'credits',
            array(
                'header' => '用户组',
                'value' => '$data->group->grouptitle'
            ),
            'mobile',
            array(
            	'name' => 'regdate',
                'value' => 'date("Y-m-d H:i:s", $data->regdate)'
            ),
            array(
                'header' => '操作',
                'class'=>'admin.components.buttoncolumn.MemberColumn',
                'template' => '{edit}',
                'htmlOptions' => array('class'=>'operate')
            ),
        ),
    )
);
?>