[<?php echo CHtml::link('添加竞拍',array('/admin/sale/create'));?>]
<?php $this->widget('admin.widgets.TableCover');?>
<?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/sale/joinlist","id"=>$data->id))'
        ),
        'content',
        'least',
        'createdate',
        'updatedate',
        'begin',
        'end',
        'amount',
        'win_uid',
        'win_username',
        'win_amount',
        array(
            'header' => '操作',
            'class' => 'CButtonColumn',
            'template' => '{edit} {complete}',
            'class'=>'admin.components.buttoncolumn.SaleList',
        )
    ),
));