<?php use \common\libs\MyLib; ?> <script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> <script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script> <script type="text/javascript" language="javascript" src="/js/ajax.js"></script> <script type="text/javascript" language="javascript" src="/js/func.js"></script> <script type="text/javascript" language="javascript"> </script> <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table"> <tr> <td width="50" align="center" align="center" class="bg_tr" nowrap>序号</td> <td width="100" align="center" align="center" class="bg_tr" nowrap>录入日期</td> <td align="center" class="bg_tr" nowrap>大类</td> <td align="center" class="bg_tr" nowrap>项目</td> <td align="center" class="bg_tr" nowrap>单价</td> <td align="center" class="bg_tr" nowrap>数量</td> <td align="center" class="bg_tr" nowrap>总计</td> <td align="center" class="bg_tr" nowrap>备注</td> </tr> <form id="delFrm"> <?php foreach($items as $index => $item) { ?> <tr onMouseOver=overColor(this) onMouseOut=outColor(this)> <td align="center" class="td_bg" nowrap><?=$index+1?></td> <td align="center" class="td_bg" nowrap><?=$item->record_date?></td> <td align="center" class="td_bg" nowrap><?=$item->class->name?></td> <td align="center" class="td_bg" nowrap><?=$item->title?></td> <td align="center" class="td_bg" nowrap><?=number_format($item->price,2)?></td> <td align="center" class="td_bg" nowrap><?=$item->num?></td> <td align="center" class="td_bg" nowrap><?=number_format($item->total,2)?></td> <td align="center" class="td_bg" nowrap><?=$item->note?></td> </tr> <?php } ?> </form> </table>