Viewing file: v_showDetailRfAndDbAndLateFine.php (3.73 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$rowStd = (isset($qu_std) && $qu_std!=NULL) ? $qu_std->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 height="22"><font size="2"><b>รหัสนักศึกษา</b> <?php echo $rowStd->stdCode;?></font></td>
<td colspan="2"><font size="2"><b>ชื่อ-สกุล</b> <?php echo $rowStd->prefixName.$rowStd->stdName.' '.$rowStd->stdSurname;?></font></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td height="22" colspan="3"><font size="2" ><b>หลักสูตร</b> <?php echo $rowStd->curName;?></font></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td width="35%" height="22"><font size="2" ><b>ปีการศึกษา</b> <?php echo $acY;?></font></td>
<td width="35%"><font size="2" ><b>ภาคการศึกษา</b> <?php echo $tm;?></font></td>
<td width="30%"><font size="2" ><b>ชั้นปี</b> <?php echo $rowStd->syCode;?></font></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center">
<table class="headCol">
<tr>
<th class="seqCol">ที่</th>
<th>รายการ</th>
<th>ค้างชำระ</th>
</tr>
<?php
$sumRemainPay = 0;
$i = 0;
if(isset($arr) && $arr!=NULL) {
foreach($arr as $key => $value) {
$sumRemainPay += $arr[$key]['rf']->rfBalance;
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+1;?></font></td>
<td><font size="2"><?php echo 'ค่าลงทะเบียน '.$arr[$key]['rf']->rfTmId.'/'.$arr[$key]['rf']->rfAcY;?></font></td>
<td align="right"><font size="2" ><?php echo number_format($arr[$key]['rf']->rfBalance,2);?></font></td>
</tr>
<?php
$i++;
if($arr[$key]['pm']->num_rows()) {
foreach($arr[$key]['pm']->result() as $rowPm) {
if($rowPm->pmLateStatus=='Y')
$sumRemainPay += $rowPm->pfLateFine;
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+1;?></font></td>
<td><font size="2"><?php echo 'ค่าปรับล่าช้าในการลงทะเบียน '.$arr[$key]['rf']->rfTmId.'/'.$arr[$key]['rf']->rfAcY.' ('.fullDate(splitDateDb($rowPm->pmDate)).')';?></font></td>
<td align="right"><font size="2"><?php echo ($rowPm->pmLateStatus=='Y') ? number_format($rowPm->pmLateFine, 2) : '0.00';?></font></td>
</tr>
<?php
$i++;
}
}
}
} // end if isset arr
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+1;?></font></td>
<td><font size="2">หนี้สินอื่นๆ</font></td>
<td align="right"><font size="2"><?php echo number_format($dbt,2);?></font></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>">
<td colspan="2" align="right"><b>รวมค้างชำระทั้งหมด</b></span></td>
<td align="right"><span><?php echo number_format($sumRemainPay+$dbt, 2);?></span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="22"></td>
</tr>
<tr>
<td align="center"><input type="submit" name="close" value="ปิดหน้าต่าง" onClick="javascript:window.close();"></td>
</tr>
</table>
|