Viewing file: v_checkRegistDetails.php (6.64 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $row_std = isset($qu_std) ? $qu_std->row() : NULL; $row_tm = isset($qu_tm) ? $qu_tm->row() : NULL; ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <div align="center"><span class="h" style="color:<?php echo $font_color_err;?>">ผลการลงทะเบียน</span> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1"> <?php if (!$std) { ?> <tr> <td><?php echo form_open($this->config->item('rg_folder').'checkregis/checkRegistDetails');?> <span><b>รหัสนักศึกษา</b></span> <input type="text" id="stdCode" name="stdCode" size="15" maxlength="15" /> <input type="submit" id="btnSearch" name="btnSearch" value="ค้นหา" /> <?php echo form_close();?></td> </tr> <?php } ?> <tr> <td><br /></td> </tr> <?php if (isset($stdCode)) { if (isset($qu_std)) { ?> <tr> <td><table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><span><b>รหัสนักศึกษา</b></span></td> <td><span><?php echo getval('stdCode', $row_std);?></span> <input type="hidden" id="stdId" name="stdId" value="<?php echo getval('stdId', $row_std);?>" /></td> <td class="coltd_szone"><span><b>ชื่อ-นามสกุล</b></span></td> <td><span><?php echo getval('prefixName', $row_std).getval('stdName', $row_std).' '.getval('stdSurname', $row_std);?></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><span><b>หลักสูตร</b></span></td> <td><span><?php echo explodeSquare(getval('curName', $row_std));?></span> <input type="hidden" id="curId" name="curId" value="<?php echo getval('curId', $row_std);?>" /></td> <td class="coltd_szone"><span><b>ชั้นปี</b></span></td> <td><?php echo getval('syCode', $row_std);?> <input type="hidden" id="syId" name="syId" value="<?php echo getval('syId', $row_std);?>" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><span><b>ปีการศึกษา</b></span></td> <td><span><?php echo $acY;?></span></td> <td class="coltd_szone"><span><b>ภาคการศึกษา</b></span></td> <td><span><?php echo getval('tmCode', $row_tm);?></span></td> </tr> </table></td> </tr> <tr> <td><br /></td> </tr> <tr> <td><span><b>ปีการศึกษา</b> <?php $js = "id=\"acY\" onChange=\"sendPost('hidform', {'stdCode':".$stdCode.",'acY':this.value,'tmId':".$tmId.",'std':'".$std."'}, '".$std."checkRegistDetails')\""; echo form_dropdown('acY', $rs_rgAcY, $acY, $js); ?> <b> ภาคการศึกษา</b></span> <?php $js = "id=\"tmId\" onChange=\"sendPost('hidform', {'stdCode':".$stdCode.",'acY':".$acY.",'tmId':this.value,'std':'".$std."'}, '".$std."checkRegistDetails')\""; echo form_dropdown('tmId', $rs_rgTmId, $tmId, $js); ?> </td> </tr> <tr> <td><table class="headCol"> <tr> <th class="domAmtCol"><span>รหัสรายวิชา</span></th> <th><span>ชื่อรายวิชา</span></th> <th class="stdCodeCol"><span>หน่วยกิต</span></th> <th class="editCol"><span>กลุ่ม</span></th> <th class="groupCol"><span>สถานะ</span></th> </tr> <?php $i = 0; foreach ($rs_rd->result() as $row_rd) { echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?> <td class="indent"><span><?php echo $row_rd->crsCode;?></span></td> <td class="indent"><span><?php echo $row_rd->crsName;?></span></td> <td align="center"><span><?php echo $row_rd->crsUnit;?></span></td> <td align="center"><span><?php echo $row_rd->coSection;?></span></td> <td align="center"><span><?php echo $row_rd->rgStatus;?></span></td> </tr> <?php $i++; } // end foreach
$j = $i; foreach ($rs_rw->result() as $row_rw) { echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?> <td class="indent"><span><?php echo $row_rw->crsCode;?></span></td> <td class="indent"><span><?php echo $row_rw->crsName;?></span></td> <td align="center"><span><?php echo $row_rw->crsUnit;?></span></td> <td align="center"><span><?php echo $row_rw->coSection;?></span></td> <td align="center"><span><?php echo $row_rw->rgStatus.'*';?></span></td> </tr> <?php $j++; } // end foreach if ($j == 0) { ?> <tr> <td colspan="6" align="center"><span style="color:<?php echo $font_color_err;?>">** ไม่ปรากฏรายวิชาในการลงทะเบียนเรียน **</span></td> </tr> <?php }
if (isset($kssFlag)) { ?> <tr> <td colspan="6" align="center"><span style="color:<?php echo $font_color_err;?>"><?php echo $kssFlag;?></span></td> </tr> <?php } ?> <tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>"> <td colspan="2" align="right"><span><b>รวมหน่วยกิต</b></span></td> <td align="center"><span><?php echo number_format($sumCrAt);?></span></td> <td colspan="3"></td> </tr> </table></td> </tr> <?php } else { ?> <tr> <td align="center"><span style="color:<?php echo $font_color_err;?>"><?php echo $err_msg;?></span></td> </tr> <?php } // end if qu_std } // end if stdCode ?> </table></div> <br></td> </tr> <tr> <td><table class="mark"> <tr> <td class="coltd_mark"><span style="color:<?php echo $font_color_err;?>"><b>หมายเหตุ : </b></span></td> <td><span style="color:<?php echo $font_color_err;?>">N = ปกติ, N* = ถอนรายวิชาที่ลงทะเบียนก่อนช่วงเพิ่ม-ถอน</span></td> </tr> <tr> <td class="coltd_mark"></td> <td><span style="color:<?php echo $font_color_err;?>">A = เพิ่ม, A* = ถอนรายวิชาที่ลงทะเบียนในช่วงเพิ่ม-ถอน</span></td> </tr> <tr> <td class="coltd_mark"></td> <td><span style="color:<?php echo $font_color_err;?>">C = ถอนรายวิชาเนื่องจากรักษาสภาพ, T = รายวิชาเทียบเท่า/เทียบโอน</span></td> </tr> </table></td> </tr> </table>
|