模板如下:
<table border="1">
<tr>
<th width="35">S.No.</th>
<th align="left">Club Member</th>
<th width="155">Schedule</th>
<th width="155">Point</th>
</tr>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_reportSchedule',
)); ?>
</table>
我要爲每一天數據添加一個序號。
代碼:
<?php echo $index;?>