Viewing file: v_showDetailRsp.php (2.69 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%">
<tr>
<td align="center"><span class="h error">รายละเอียดข้อมูลโปรแกรมการเรียนจริง</span></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="szone">
<tr>
<td class="coltd_szone1">หลักสูตร</td>
<td><?php echo $qu_cur->row()->curName;?></td>
</tr>
<tr>
<td class="coltd_szone1">ปีการศึกษา</td>
<td><?php echo $adY;?></td>
</tr>
<?php
if(isset($rs_sy) && $rs_sy->num_rows()) {
foreach($rs_sy->result() as $row_rs_sy) { // ชั้นปี
$sy->syId = $row_rs_sy->rspSyId;
$sy->get_by_key(TRUE);
?>
<tr>
<td height="25px" class="indent" colspan="2"><b>ชั้นปีที่</b> <?php echo $sy->syCode;?></td>
</tr>
<tr>
<td colspan="2"><table class="headCol">
<tr>
<th>รหัสรายวิชา</th>
<th>ชื่อรายวิชา</th>
<th>หน่วยกิต</th>
</tr>
<?php
$con_tm = array('rspCurId' => $curId,
'rspAdY' => $adY,
'rspSyId' => $row_rs_sy->rspSyId);
$grp_tm = array('rspTmId' => 'rspTmId');
$rs_tm = $this->rsp->qryRsp($con_tm,'',$grp_tm);
if($rs_tm->num_rows()) {
foreach($rs_tm->result() as $row_rs_tm) {
$tm->tmId = $row_rs_tm->rspTmId;
$tm->get_by_key(TRUE);
?>
<tr>
<th colspan="3">ภาคการศึกษาที่ <?php echo $tm->tmCode;?></th>
</tr>
<?php
$con_crs = array('rspCurId' => $curId,
'rspAdY' => $adY,
'rspSyId' => $row_rs_sy->rspSyId,
'rspTmId' => $row_rs_tm->rspTmId);
$crs = $rsp->qryRspJoinCoCrs($con_crs);
$sumCreditTotal = 0;
if($crs->num_rows()) {
foreach($crs->result() as $row_crs) {
?>
<tr>
<td align="center"><?php echo $row_crs->crsCode;?></td>
<td class="indent"><?php echo explodeSquare($row_crs->crsName);?></td>
<td align="center"><?php echo $row_crs->crsUnit;?></td>
</tr>
<?php
$sumCreditTotal += $row_crs->crsCreditTotal;
}
}
?>
<tr>
<td bgcolor="<?php echo $this->config->item('rg_table_end');?>" colspan="2" align="right"><b>รวมหน่วยกิต</b></td>
<td bgcolor="<?php echo $this->config->item('rg_table_end');?>" align="center"><?php echo $sumCreditTotal;?></td>
</tr>
<?php
}
}
?>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<?php
}
}
?>
</table></td>
</tr>
<tr>
<td align="center"><input type="button" name="close" value="ปิดหน้าต่าง" onClick="window.close()" /></td>
</tr>
</table>
|