Viewing file: v_showRegis.php (7.38 KB) -rwxr-xr-x 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"><br /> <?php echo form_open($this->config->item("rg_folder")."regis/showRegis", array("name" => "myform", "id" => "myform"));?> <table width="100%" align="center"> <tr> <td><b>รหัสนักศึกษา</b> <input type="text" name="stdCode" id="stdCode" value="<?php echo getval('stdCode', $row_std);?>" size="15" maxlength="15" class="required-int" /> <input type="submit" name="search" id="search" value="ค้นหา" /> <span class="error"><?php echo form_error("stdCode");?></span></td> </tr> <tr> <td><br /></td> </tr> <?php if(isset($flg)) { echo $flg; } if (isset($stdCode)) { if ($stdCode) { ?> <tr> <td><table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">รหัสนักศึกษา</td> <td><?php echo $stdCode;?> <input type="hidden" name="stdId" id="stdId" value="<?php echo getval('stdId', $row_std);?>" /></td> <td class="coltd_szone">ชื่อ-นามสกุล</td> <td><?php echo getval('prefixName', $row_std).getval('stdName', $row_std).' '.getval('stdSurname', $row_std);?></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">หลักสูตร</td> <td><?php echo explodeSquare(getval('curName', $row_std));?> <input type="hidden" name="curId" id="curId" value="<?php echo getval('curId', $row_std);?>" /></td> <td class="coltd_szone">ชั้นปี</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">ปีการศึกษา</td> <td><?php echo $acY_R;?> <input type="hidden" name="acY" id="acY" value="<?php echo $acY_R;?>" /></td> <td class="coltd_szone">ภาคการศึกษา</td> <td><?php echo getval('tmCode', $row_tm);?> <input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId_R;?>" /></td> </tr> <tr> <td colspan="4"><br /></td> </tr> </table></td> </tr> <tr> <td><table class="headCol"> <tr> <th class="stdCodeCol">รหัสรายวิชา</th> <th>ชื่อรายวิชา</th> <th>หน่วยกิต</th> <th>กลุ่ม</th> <th class="deleteCol">ลบ</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" height="22"><?php echo $row_rd->crsCode;?></td> <td class="indent"><?php echo $row_rd->crsName;?></td> <td align="center"><?php echo $row_rd->crsUnit;?></td> <td align="center"><?php echo $row_rd->coSection;?></td> <td align="center"> <?php if (($this->session->userdata('acY') == $acY_R) && ($this->session->userdata('tmId') == $tmId_R)) { ?> <span onClick="confirmDel2( {stdId:<?php echo $row_rd->rdStdId;?>, stdCode:<?php echo $row_std->stdCode;?>, acY:<?php echo $row_rd->rdAcY;?>, tmId:<?php echo $row_rd->rdTmId;?>, seq:<?php echo $row_rd->rdSeq;?>, coId:<?php echo $row_rd->rdCoId;?>, rgStatus:'N'}, 'hidform','<?php echo site_url($this->config->item('rg_folder').'regis/rd_delete');?>')" /><img src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span> <?php } else { echo '-'; } ?> </td> </tr> <?php $i++; } // end foreach rd
if (isset($kssFlag)) { ?> <tr> <td colspan="6" align="center"><?php echo $kssFlag;?></td> </tr> <?php } else { if (($this->session->userdata('acY') == $acY_R) && ($this->session->userdata('tmId') == $tmId_R)) { ?> <tr> <td height="22"><input type="text" name="crsCode" id="crsCode" size="7" class="input1" readonly /></td> <td><input type="text" name="crsName" id="crsName" size="30" class="input1" readonly /> <img src="<?php echo base_url().$this->config->item("rg_search");?>" class="hand" onClick="sendPost('hidform', {'stdId':<?php echo $row_std->stdId;?>,'curId':<?php echo $row_std->stdCurId;?>,'syId':<?php echo $row_std->stdSyId;?>,'acY':<?php echo $acY_R;?>,'tmId':<?php echo $tmId_R;?>}, '<?php echo site_url($this->config->item("rg_folder").'popup/coAndRd_popup');?>', {})" /> <font size="2" color="<?php echo $font_color_err;?>">*</font> <input type="hidden" name="rdCoId" id="rdCoId" /> <input type="hidden" name="rdCreditAttempt" id="rdCreditAttempt" /> <input type="hidden" name="rdCredit1" id="rdCredit1" /> <input type="hidden" name="rdCredit2" id="rdCredit2" /> <input type="hidden" name="rdCdId1" id="rdCdId1" /> <input type="hidden" name="rdCdId2" id="rdCdId2" /></td> <td align="center"><input type="text" name="crsUnit" id="crsUnit" size="12" class="input1" readonly /></td> <td align="center"><input type="text" name="rdSection" id="rdSection" size="1" class="input1" readonly /></td> <td><input type="text" name="timeTable" id="timeTable" size="13" class="input1" readonly></td> </tr> <?php } } ?> <tr bgcolor="<?php echo $table_color_even;?>"> <td height="22" colspan="2" align="right"><b>รวมหน่วยกิต</b></td> <td align="center"><span class="fontT"><?php echo number_format($sumCrAt);?></span></td> <td colspan="3"></td> </tr> </table></td> </tr> <?php if (!isset($kssFlag) && ($this->session->userdata('acY') == $acY_R) && ($this->session->userdata('tmId') == $tmId_R)) { ?> <tr> <td align="center"><br /><input type="submit" name="add" id="add" value="บันทึก" onClick="sendPost('myform', {'rgStatus':'N'}, '<?php echo site_url($this->config->item("rg_folder").'regis/rd_insert');?>')" /> <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" /></td> </tr> <?php } } else { if (!isset($err_msg)) { ?> <tr> <td align="center"><font size="2" color="<?php echo $font_color_err;?>"><?php echo getval('prefixName', $row_std).getval('stdName', $row_std).' '.getval('stdSurname', $row_std).' '.getval('sstName', $row_std);?></font></td> </tr> <?php } else { ?> <tr> <td align="center"><font size="2" color="<?php echo $font_color_err;?>"><?php echo $err_msg;?></font></td> </tr> <?php } // end if } // end SearchByStCodeAndStudying } // end if isset(stdCode) ?> </table><?php echo form_close();?></div> <br></td> </tr> <tr> <td><span class="error"><b>หมายเหตุ</b> : ใช้งานเมนูนี้กรณีที่เจ้าหน้าที่ลงทะเบียนให้นักศึกษาผิด/เกิน และสามารถถอนรายวิชาในเทอมที่ลงทะเบียนปัจจุบัน</span></td> </tr> </table>
|