<h2>每日广告数据汇总</h2>
<div class="wide form">
<?php echo CHtml::beginForm(array('/'.$this->route), 'get', array('name'=>'form'));?>
<table class="widefat post">
<thead>
<tr>
	<th colspan=3>查询选项</th>
</tr>
</thead>
<tbody>
<tr>
	<td>时间：<?php echo Operate::date('t-RangeStart_date');?> - <?php echo Operate::date('t-RangeEnd_date');?></td>
	<td></td>
    <td></td>
</tr>
<tr>
    <td colspan="4" style="text-align:center"><?php echo CHtml::submitButton('查询');?><?php echo CHtml::resetButton('重置');?></td>
</tr>
</tbody>
</table>
<?php echo CHtml::endForm();?>
</div><!-- search-form -->
<?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',
            'click',
            'valid_click',
            'u_click',
            'u_valid_click',
            array(
                'name' => 'type',
                'value' => 'AdFluxSum::$type[$data->type]'
            ),
            'date',
    ),
));