Viewing file: v_showStudyPlan.php (3.16 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%">
<tr>
<td align="center"><span class="h error">กำหนดโปรแกรมการศึกษา<br></span></td>
</tr>
<tr>
<td align="center"><br></td>
</tr>
<tr>
<td><table class="headCol">
<tr bgcolor="<?php echo $table_color_even;?>">
<th width="40%">ชั้นปี</th>
<?php
foreach($rs_sy->result() as $row) {
?>
<td align="center"><table class="headCol">
<tr>
<th><?php echo $row->syCode;?></th>
</tr>
</table></td>
<?php
}
?>
<th>รวม</th>
</tr>
<tr>
<th>ภาคการศึกษา</th>
<?php
for($i=1; $i<=$rs_sy->num_rows(); $i++) {
?>
<td align="center"><table class="headCol">
<tr>
<?php
foreach($rs_tm->result() as $row) {
?>
<th><?php echo $row->tmCode;?></th>
<?php
}
?>
</tr>
</table></td>
<?php
}
?>
<th>หน่วยกิต</th>
</tr>
<?php
foreach($rs_sp as $curId => $val_cur) {
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td class="indent"><?php
//เปลี่ยน Controller
$lnk = "<span class=\"hand\" onClick=\"sendPost('hidform',{'id':$curId}, '".site_url($this->config->item("rg_folder")."curpbri/sp_detail")."',{'width':500,'height':600})\">".explodeSquare($rs_sp[$curId]["name"])."</span>";
echo $lnk;
?></td>
<?php
foreach($rs_sp[$curId] as $syId => $val_sy) {
if(is_int($syId)) {
?>
<td align="center"><table width="100%">
<tr>
<?php
foreach($rs_sp[$curId][$syId] as $tmId => $sumCreditTotal) {
if($sumCreditTotal == NULL)
$cls = "<font color=\"".$this->config->item('rg_font_color_err')."\">";
else
$cls = "<font color=\"".$this->config->item('rg_font_color_true')."\">";
?>
<td align="center" width ="5%"><b><?php
$lnk = "<span class=\"hand\" onClick=\"sendPost('hidform2',{'curId':$curId,'syId':$syId,'tmId':$tmId}, '".site_url($this->config->item("rg_folder")."curpbri/sp_input")."')\">$cls".number_format($sumCreditTotal)."</font></span>";
echo $lnk;
?></b></td>
<?php
}
?>
</tr>
</table></td>
<?php
}
}
?>
<td align="center"><?php echo number_format($rs_sp[$curId]["creditTotal"]);?></td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table></div><br>
<table class="mark">
<tr>
<td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>
<td><span class="error">ใช้เมาส์คลิกที่ชื่อหลักสูตรเพื่อดูรายละเอียดของโปรแกรมการศึกษา</span></td>
</tr>
<tr>
<td class="coltd_mark"></td>
<td><span class="error">สีแดง = ยังไม่บันทึก, สีเขียว = บันทึกแล้ว</span></td>
</tr>
</table>
|