<?php $this->widget('admin.widgets.TableCover');?>
<?php $this->renderPartial('_search');?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'dataProvider'=>$dataProvider,
    'summaryText'=>'显示{start}-{end}条 总共{count}条',
    'itemsCssClass' => 'widefat post',
    'columns' => array(
        'adid',
        array(
            'name' => 'title',
            'type' => 'raw',
            'value' => 'CHtml::link($data->title,array("/admin/ad/detail","id"=>$data->adid,"RangeStart_date[value]"=>date("Y-m-d")))',
        ),
        'url',
        array(
            'name' => 'status',
            'value' => '$data->getStatus($data->status)',
        ),
        array(
            'name' => 'type',
            'value' => 'Adb::$type[$data->type]',
        ),
        'day',
        'day_valid',
        'quota',
        'count',
        array(
            'name' => 'isrand',
            'value' => '$data->isRand($data->isrand)',
        ),
        'spaces',
        'createdate',
        array(
            'header' => '操作',
            'template' => '{update} {delete}',
            'class' => 'CButtonColumn'
        )
    ),
));
?>
今日总访问:<?php echo $count->count;?>