Viewing file: v_showDetailRegisFee.php (7.02 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_std = isset($qu_std) ? $qu_std->row() : NULL;
$row_sy = isset($qu_sy) ? $qu_sy->row() : NULL;
$row_tm = isset($qu_tm) ? $qu_tm->row() : NULL;
?>
<title>ค่าลงทะเบียนเรียน</title>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone"><span><b>รหัสนักศึกษา</b></span></td>
<td><?php echo getval('stdCode', $row_std);?></span></td>
<td class="coltd_szone"><span><b>ชื่อ-สกุล</b></span></td>
<td><span><?php echo getval('prefixName', $row_std).getval('stdName', $row_std).' '.getval('stdSurname', $row_std);?></span></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone"><span><b>หลักสูตร</b></span></td>
<td><span><?php echo explodeSquare(getval('curName', $row_std))?></span></td>
<td class="coltd_szone"><span><b>ชั้นปี</b></span></td>
<td><span><?php echo getval('syCode', $row_sy);?></span></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone"><span><b>ปีการศึกษา</b></span></td>
<td><span><?php echo $acY;?></span></td>
<td class="coltd_szone"><span><b>ภาคการศึกษา</b></span></td>
<td><span><?php echo getval('tmCode', $row_tm);?></span></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<?php
if($std!="") {
$atts = array(
'width' => '800',
'height' => '700',
'scrollbars' => 'yes',
'status' => 'yes',
'resizable' => 'yes',
'screenx' => '0',
'screeny' => '0',
'title' => 'ใบลงทะเบียนเรียน/แจ้งค่าใช้จ่าย'
);
?>
<tr>
<td align="right"><?php echo anchor_popup($this->config->item("rg_folder")."rpt_regis/printRepRis106/".getval('stdId', $row_std)."/".$acY."/".getval('syId', $row_sy)."/".getval('tmId', $row_tm)."/".getval('curId', $row_std), "<img src=\"".base_url().$this->config->item('rg_print')."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />", $atts);?></td>
</tr>
<?php
}
?>
<tr>
<td align="center">
<table class="szone">
<tr bgcolor="<?php echo $this->config->item("rg_head_tb_color");?>">
<td width="5%" height="22" align="center"><span><b>ที่</b></span></td>
<td width="55%" height="22" align="center"><span><b>รายการ</b></span></td>
<td width="10%" height="22" align="center"><span><b>หน่วยกิต</b></span></td>
<td width="10%" height="22" align="center"><span><b>รวมเงิน</b></span></td>
<td width="20%" height="22" align="center"><span><b>หมายเหตุ</b></span></td>
</tr>
<tr>
<td align="center"><span>1</span></td>
<td><span>ค่าหน่วยกิต</span></td>
<td></td>
<td></td>
<td> <span>เบิกได้ตามสิทธิ์</span></td>
</tr>
<?php
if(isset($rs_rd) && $rs_rd!=NULL) {
foreach($rs_rd->result() as $rowRd) {
?>
<tr>
<td></td>
<td><span><?php echo $rowRd->crsCode.' : '.explodeSquare($rowRd->crsName);?></span></td>
<td align="center"><span><?php echo $rowRd->crsUnit;?></span></td>
<td align="right"><span>-</span></td>
<td></td>
</tr>
<?php
}
}
?>
<tr>
<td></td>
<td align="right"><span><b>รวมหน่วยกิตทฤษฎี</b></span></td>
<td align="center"><span><b><?php echo number_format($sumCredit1);?></b></span></td>
<td align="right"><span><b><?php echo number_format($sumLcFee, 2);?></b></span></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="right"><span><b>รวมหน่วยกิตทดลอง/ปฏิบัติ</b></span></td>
<td align="center"><span><b><?php echo number_format($sumCredit2);?></b></span></td>
<td align="right"><span><b><?php echo number_format($sumLbFee, 2);?></b></span></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="right"><span><b>รวมหน่วยกิตที่ลงทะเบียน</b></span></td>
<td align="center"><span><b><?php echo number_format($sumCreditAttempt);?></b></span></td>
<td align="right"><span><b><?php echo number_format($sumLcFee+$sumLbFee, 2);?></b></span></td>
<td></td>
</tr>
<?php
$i = 2;
if(isset($rs_cmf) && $rs_cmf!=NULL) {
foreach($rs_cmf->result() as $rowCmf) {
?>
<tr>
<td align="center"><span><?php echo $i;?></span></td>
<td><span><?php echo $rowCmf->feeName;?></span></td>
<td></td>
<td align="right"><span><?php echo number_format($rowCmf->cmfAmt,2);?></span></td>
<td> <span><?php if($rowCmf->feeCanRefund=='Y') echo 'เบิกได้ตามสิทธิ์'; else 'เบิกไม่ได้';?></span></td>
</tr>
<?php
$i++;
}
}
$j = $i;
if(isset($rs_cf) && $rs_cf!=NULL) {
foreach($rs_cf->result() as $rowCf) {
?>
<tr>
<td align="center"><span><?php echo $j;?></span></td>
<td><span><?php echo $rowCf->feeName;?></span></td>
<td></td>
<td align="right"><span><?php echo number_format($rowCf->cfAmt,2);?></span></td>
<td> <span><?php if($rowCf->feeCanRefund=='Y') echo 'เบิกได้ตามสิทธิ์'; else 'เบิกไม่ได้';?></span></td>
<!-- <td> <span><?php if($rowCmf->feeCanRefund=='Y') echo 'เบิกได้ตามสิทธิ์'; else 'เบิกไม่ได้';?></span></td> -->
</tr>
<?php
$j++;
}
}
?>
<tr>
<td align="center"><span><?php echo $j;?></span></td>
<td><span>ค่ารักษาสถานภาพการเป็นนักศึกษา</span></td>
<td></td>
<td align="right"><span><?php echo number_format($sumKssFee,2);?></span></td>
<td> <span>เบิกไม่ได้</span></td>
</tr>
<tr bgcolor="<?php echo $this->config->item("rg_head_tb_color");?>">
<td height="22" colspan="3" align="right"><span><b>รวมยอดเงินที่ต้องชำระทั้งหมด</b></span></td>
<td align="right"><span><?php echo number_format($sumToTalAmt,2);?></span></td>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td align="center">
<input type="button" name="print" value="พิมพ์หน้านี้" onClick="sendPost('hidform', {'stdId':<?php echo $row_std->stdId;?>,'acY':<?php echo $acY;?>,'syId':<?php echo $row_sy->syId;?>,'tmId':<?php echo $row_tm->tmId;?>,'curId':<?php echo $row_std->stdCurId;?>}, '<?php echo site_url($this->config->item('rg_folder').'rpt_regis/printRepRis106PDF');?>', {})">
<?php
if (!$std) {
?>
<input type="button" name="close" value="ปิดหน้าต่าง" onClick="javascript:window.close();">
<?php
}
?>
</td>
</tr>
</table>
|