我有一张桌子,我希望在星期一,星期二,星期天等表格字段中显示月份的所有日期,是否有人可以帮助我。 我正在使用cakephp v 2.0,如果可能的话,我想使用帮助
<table>
<thead>
<th><div class="nameday"></div></th>
<th ><div class="Mistitle"><?php echo $this->Form->input('Missiontitle',array('label'=>false)); ?></div></th>
<?php
for($i=0;$i<$NumOfDays;$i++){
$thedate = $i+1 .'-'.$month.'-'.$year ;
if (in_array($i+1, $weekend)){ ?>
<th><div class="input-disabled">
<?php echo $this->Form->input('dat.Dates.',array('value'=> $i+1,'label'=>false ,'readonly'=>'readonly' ));?>
</div>
</th></thead>
<tbody>
</tbody>
</table>
在 提前谢谢。