Viewing file: v_showRealStudyPlan.php (4.91 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%">
<tr>
<td>
<div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
<tr>
<td align="center"><span class="h error">กำหนดโปรแกรมการเรียนจริง</span></td>
</tr>
<tr>
<td colspan="3"><br /></td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="0" cellspacing="1" cellpadding="1" bordercolor="<?php echo $table_color_even;?>" align="center">
<tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>">
<td width="40%" height="25" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ชั้นปี</b></font></td>
<td width="50%" align="center">
<table width="100%">
<tr>
<?php
foreach($rs_sy->result() as $row_sy) {
?>
<td align="center"><font size="2" color="<?php echo $font_color_table;?>"><b><?php echo $row_sy->syCode;?></b></font></td>
<?php
}
?>
</tr>
</table></td>
<td width="10%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>รวม</b></font></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>">
<td height="25" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ภาคการศึกษา</b></font></td>
<td align="center">
<table width="100%">
<tr>
<?php
for ($i = 1; $i <= $rs_sy->num_rows(); $i++) {
foreach ($rs_tm->result() as $row_tm) {
?>
<td width="5%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b><?php echo $row_tm->tmCode;?></b></font></td>
<?php
}
}
?>
</tr>
</table></td>
<td align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>หน่วยกิต</b></font></td>
</tr>
<?php
if (count($arr)) {
foreach ($arr as $key => $val) {
if ($arr[$key]['level'] == 0) {
?>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td height="22"><font size="2"><?php echo $arr[$key]['name'];?></font></td>
<td colspan="<?php echo $rs_sy->num_rows();?>" align="center"></td>
</tr>
<?php
} else if ($arr[$key]['level'] == 1) {
?>
<tr>
<td height="22">
<img src="<?php echo base_url().$this->config->item("rg_ico3");?>" align="absmiddle" border="0" />
<span class="hand" onClick="sendPost('frm_shw',<?php echo $arr[$key]['linkShowDetail'];?>,
'<?php echo site_url($this->config->item('rg_folder').'popup/showDetailRsp');?>', {width:500,height:500})" /><font size="2">ปีการศึกษา <?php echo $arr[$key]['name'];?></font></span></td>
<td align="center">
<table width="100%">
<tr>
<?php
for ($i = 0; $i < count($arr[$key]['link']); $i++) {
if ($arr[$key]['link'][$i] == 0) { //ยังไม่ได้กำหนดโปรแกรมการเรียนจริง
$link = "<font color=".$this->config->item('rg_font_color_err')."><span onClick=\"sendPost('hidform',".$arr[$key]['url'][$i].",
'".site_url($this->config->item("rg_folder").'fee/addRealStudyPlan')."')\" class=\"hand\" >".$arr[$key]['sumCredit'][$i]."</span></font>";
} else if ($arr[$key]['link'][$i] == 1) { // กำหนดโปรแกรมการเรียนจริงแล้ว
$link = "<font color=".$this->config->item('rg_font_color_true')."><span onClick=\"sendPost('hidform',".$arr[$key]['url'][$i].",
'".site_url($this->config->item("rg_folder").'fee/addRealStudyPlan')."')\" class=\"hand\" >".$arr[$key]['sumCredit'][$i]."</span></font>";
} else {
$link = '-';
}
?>
<td width="5%" align="center"><b><?php echo $link;?></b></td>
<?php
}
?>
</tr>
</table></td>
<td width="10%" align="center"><font size="2"><?php echo number_format($arr[$key]['sumCreditTotal']);?></font></td>
</tr>
<?php
}
}
}
?>
</table></td>
</tr>
</table></div>
<br></td>
</tr>
<tr>
<td><table width="100%">
<tr>
<td width="8%"><font size="2" color="<?php echo $font_color_err;?>"><b>หมายเหตุ : </b></font></td>
<td width="92%"><font size="2" color="<?php echo $font_color_err;?>">ใช้เมาส์คลิกที่ปีการศึกษาตามหลักสูตรเพื่อดูรายละเอียดของโปรแกรมการเรียนจริง</font></td>
</tr>
<tr>
<td></td>
<td><font size="2" color="<?php echo $font_color_err;?>">สีแดง = ยังไม่บันทึก, สีเขียว = บันทึกแล้ว</font></td>
</tr>
</table></td>
</tr>
</table>
|