Viewing file: v_showFee.php (4.77 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $row_cur = (isset($qu_cur) && $qu_cur!=NULL) ? $qu_cur->row() : NULL; $row_sy = (isset($qu_sy) && $qu_sy!=NULL) ? $qu_sy->row() : NULL; $row_tm = (isset($qu_tm) && $qu_tm!=NULL) ? $qu_tm->row() : NULL; ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"> <table class="szone"> <tr> <td colspan="2" align="center"><span class="h error">รายการค่าลงทะเบียน<br/><br/></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>ชื่อหลักสูตร</b></font></td> <td><font size="2"><?php echo setValue('curName',$row_cur);?> <input type="hidden" name="curId" id="curId" value="<?php echo setValue('curId',$row_cur);?>" /></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>ปีการศึกษา</b></font></td> <td><font size="2"><?php echo $acY;?> <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>" /></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>ภาคการศึกษา</b></font></td> <td><font size="2"><?php echo setValue('tmCode',$row_tm);?> <input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm);?>" /></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>ปีการศึกษาที่เข้า</b></font></td> <td><font size="2"><?php echo isset($adY) ? '-' : $adY;?> <input type="hidden" name="adY" id="adY" value="<?php echo $adY;?>" /></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>ชั้นปี</b></font></td> <td><font size="2"><?php echo ($row_sy!=NULL) ? setValue('syCode',$row_sy) : '-';?> <input type="hidden" name="syId" id="syId" value="<?php echo setValue('syId',$row_sy);?>" /></font></td> </tr> <tr> <td><br /></td> </tr> <tr> <td colspan="2"><table class="headCol"> <tr> <th class="seqCol"><font color="<?php echo $font_color_table;?>">ลำดับที่</font></th> <th><font color="<?php echo $font_color_table;?>">รายการ</font></th> <th class="amtCol"><font color="<?php echo $font_color_table;?>">จำนวนเงิน</font></th> </tr> <?php $i = 1; if(isset($arr) && count($arr)) { foreach($arr as $key => $val) { echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; if(isset($arr[$key]['cmft']) && count($arr[$key]['cmft'])) { ?> <td align="center"><font size="2"><?php echo $i;?></font></td> <td class="indent"><font size="2"><?php echo $arr[$key]['cmft']->feeName;?></font></td> <td align="right"><font size="2"><?php echo number_format($arr[$key]['cmft']->cmftAmt, 2);?></font></td> </tr> <?php $i++; } if(isset($arr[$key]['cft']) && count($arr[$key]['cft'])) { ?> <td height="22" align="center"><font size="2"><?php echo $i;?></font></td> <td class="indent"><font size="2"><?php echo $arr[$key]['cft']->feeName;?></font></td> <td align="right"><font size="2"><?php echo number_format($arr[$key]['cft']->cftAmt, 2);?></font></td> </tr> <?php $i++; }
if(isset($arr[$key]['lec'])) { ?> <td height="22" align="center"><font size="2"><?php echo $i;?></font></td> <td class="indent"><font size="2">ค่าหน่วยกิตภาคทฤษฏี</font></td> <td align="right"><font size="2"><?php echo number_format($arr[$key]['lec'],2);?></font></td> </tr> <?php $i++; } if(isset($arr[$key]['lab'])) { echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?> <td height="22" align="center"><font size="2"><?php echo $i;?></font></td> <td class="indent"><font size="2">ค่าหน่วยกิตภาคทดลอง/ปฏิบัติ</font></td> <td align="right"><font size="2"><?php echo number_format($arr[$key]['lab'],2);?></font></td> </tr> <?php $i++; } } } ?> <tr> <td colspan="2" align="center" bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>"><span class="fontT"><b>รวมเงินที่ต้องชำระทั้งหมด</b></span></td> <td align="right" bgcolor="<?php echo $table_color_even;?>"><?php echo number_format($sumTotal,2);?></td> </tr> </table></td> </tr> </table></div> <br></td> </tr> </table>
|