Viewing file: v_g_curriculums.php (6.41 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cfg = isset($qu_cfg) ? $qu_cfg->row() : NULL;
$row_cur = isset($qu_cur) ? $qu_cur->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<?php echo form_open($this->config->item("rg_folder")."general/curs", array("name" => "myform", "id" => "myform"));?>
<br>
<span class="h error">หลักสูตรที่เปิดสอน</span><br>
<table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="szone">
<tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
<td class="coltd_szone"><span>หลักสูตร</span></td>
<td>
<?php
$js = "id=\"curId\" onChange=\"sendPost('hidform', {'curId':this.value,'typeLang':'T1'}, '".site_url($this->config->item('rg_folder').'general/curs')."')\"";
echo form_dropdown('curId', $rs_cur, $curId, $js);
?>
</td>
</tr>
<tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
<td class="coltd_szone"><span>ภาษา</span>
<td>
<span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'T1'}, '<?php echo site_url($this->config->item('rg_folder').'general/curs');?>')">ไทย - เลขอารบิก</span>
<br />
<span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'T2'}, '<?php echo site_url($this->config->item('rg_folder').'general/curs');?>')">ไทย - เลขไทย</span>
<br />
<span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'E'}, '<?php echo site_url($this->config->item('rg_folder').'general/curs');?>')">อังกฤษ</span></span></td>
</tr>
</table></td>
</tr>
<?php
if ($curId) {
?>
<tr>
<td align="center"><br><table width="100%" align="left">
<tr>
<td colspan="4" height="22"><span class="fontF error">โครงสร้างหลักสูตร</span></td>
</tr>
<tr>
<td colspan="4" height="22"><span class="fontH"><b>หลักสูตร : </b><?php echo ($typeLang == 'E') ? $row_cur->curNameE : (($typeLang=="T1") ? th2a(explodeSquare($row_cur->curName)) : a2th(explodeSquare($row_cur->curName)));?></span></td>
</tr>
<tr>
<td colspan="4" height="22"><span class="fontH"><b>ระดับการศึกษา : </b><?php echo ($typeLang == 'E') ? $row_cur->levelNameEng : (($typeLang=="T1") ? th2a($row_cur->levelName) : a2th($row_cur->levelName));?></span></td>
</tr>
<tr>
<td colspan="4" height="22"><span class="fontH"><b>จำนวนหน่วยกิตที่เรียน : </b><?php echo ($typeLang=="T2") ? a2th($row_cur->curMinCredit) : $row_cur->curMinCredit;?> <b> หลักสูตร : </b><?php echo ($typeLang=="T2") ? a2th($row_cur->curNumStudyY) : $row_cur->curNumStudyY;?> ปี <b> จำนวนปีที่ศึกษาสูงสุด : </b><?php echo ($typeLang=="T2") ? a2th($row_cur->curMaxStudyY) : $row_cur->curMaxStudyY;?> ปี</span></td>
</tr>
<tr>
<td><br /></td>
</tr>
<?php
if ($rs) {
foreach ($rs as $key => $val) {
$row_cd = $rs[$key]['qu_cd']->row();
?>
<tr>
<td colspan="4" height="22">
<span class="fontH error">
<?php echo ($rs[$key]['cdType']=='H') ? "<b>" : '';?>
<?php echo (($typeLang=="T2") ? a2th($rs[$key]['seq']) : $rs[$key]['seq']).". ";?>
<?php echo ($typeLang == 'E') ? $row_cd->cdNameE : (($typeLang=="T1") ? th2a($row_cd->cdName) : a2th($row_cd->cdName));?>
<?php echo ", จำนวน ".(($typeLang=="T2") ? a2th($rs[$key]['credit']) : th2a($rs[$key]['credit']))." หน่วยกิต";?>
<?php echo ($rs[$key]['cdType']=='H') ? "</b>" : '';?>
</span></td>
</tr>
<?php
if (isset($rs[$key]['rs_pcr'])) {
$rs_pcr = $rs[$key]['rs_pcr'];
?>
<tr bgcolor="<?php echo $this->config->item("rg_table_end");?>">
<td align="center" width="120px" height="22px">
<span style="color:<?php echo setValue('cfgFnClHeadTb',$row_cfg);?>"><b>รหัสวิชา</b></span></td>
<td align="center"><span style="color:<?php echo setValue('cfgFnClHeadTb',$row_cfg);?>"><b>รายวิชา</b></span></td>
<td align="center" width="100px"><span style="color:<?php echo setValue('cfgFnClHeadTb',$row_cfg);?>"><b>หน่วยกิต</b></span></td>
</tr>
<?php
if ($rs_pcr->num_rows()) {
foreach ($rs[$key]['rs_pcr']->result() as $row_pcr) {
?>
<tr>
<td height="22">
<span><b> <?php echo ($typeLang == 'E') ? $row_pcr->crsCodeE."eng" : (($typeLang=="T1") ? th2a($row_pcr->crsCode) : a2th($row_pcr->crsCode));?></b></span></td>
<td><span> <?php echo ($typeLang == 'E') ? explodeSquare($row_pcr->crsNameE) : (($typeLang=="T1") ? th2a(explodeSquare($row_pcr->crsName)) : a2th(explodeSquare($row_pcr->crsName)));?></span></td>
<td align="center"><span><?php echo (($typeLang=="T2") ? a2th($row_pcr->crsUnit) : th2a($row_pcr->crsUnit));?></span></td>
</tr>
<?php
}
} else {
?>
<tr>
<td height="22" colspan="3" align="center"><span style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>">** ไม่ปรากฏรายการรายวิชาในหมวดวิชา หรือ กลุ่มวิชาดังกล่าว **</span></td>
</tr>
<?php
}
?>
<tr bgcolor="<?php echo setValue('cfgBgClTrAndTd',$row_cfg);?>">
<td height="22" colspan="3"></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<?php
} // end if rs_pcr
} // end foreach
} // end if rs
?>
</table></td>
</tr>
<?php
} // end if curId
?>
</table>
<?php echo form_close();?></td>
</tr>
</table></td>
</tr>
</table>
|