Viewing file:      v_searchStudReStatus.php (5.74 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script language="JavaScript1.2">
 // @use
 function chkAgree() {
     if(document.getElementById("approve").checked==true) {
         document.myform.ssmRefNo.disabled = false;
         document.myform.ssmApprover.disabled = false;
         document.myform.add.disabled = false;
         document.myform.clear.disabled = false;
     } else {
         document.myform.ssmRefNo.disabled = true;
         document.myform.ssmApprover.disabled = true;
         document.myform.add.disabled = true;
         document.myform.clear.disabled = true;
     }
 }
 
 // @use
 function chkBeforeSave() {
     if(document.getElementById("ssmRefNo").value=='') {
         alert("กรุณาป้อนเลขที่เอกสารอ้างอิง !!");
         return 0;
     } else if(document.getElementById("ssmApprover").value=='') { 
         alert("กรุณาป้อนผู้อนุมัติ !!");
         return 0;
     } else {
         document.getElementById("add2").value=1;
         myform.submit();
     }
 }
 </script>
 <table width="100%" align="center">
     <tr>
         <td><div align="center">
             <?php echo form_open($this->config->item("rg_folder")."student/std_searchStdStatus", array("name" => "myform", "id" => "myform"));?>
             <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
                 <tr>
                     <td align="center"><font color="<?php echo $font_color_err;?>" size="3" class="h"><b>คืนสภาพนักศึกษา</b></font></td>
                 </tr>
                 <tr>
                     <td>
                     <table align="center" width="100%" border="0" cellspacing="1" cellpadding="1">
                         <tr>
                             <td><br /></td>
                         </tr>
                         <tr>
                             <td colspan="4"><font size="2"><b>รหัสนักศึกษา</b></font>
                             <input type="text" name="stdCode" id="stdCode" size="10" maxlength="10" value="<?php echo set_value('stdCode');?>" class="required-int" />
                             <input type="submit" name="search" value="ค้นหา" />
                             <br /><span class="error" style="display:inline;"></span></td>
                         </tr>
 
 <?php
                     if(isset($qu_std)) {
                         $std = $qu_std->row();
 ?>
                         <tr>
                             <td><br /></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td width="15%" height="22"><font size="2"><b>รหัสนักศึกษา</b></font>
                             <input type="hidden" name="apprveSpe" id="apprveSpe" value="<?php echo $std->stdSstId;;?>"></td>
                             <td width="35%"><font size="2">: <?php echo $std->stdCode;?></font>
                             <input type="hidden" name="stdId" id="stdId" value="<?php echo $std->stdId;?>"></td>
                             <td width="15%"><font size="2"><b>ชื่อ-สกุล</b></font></td>
                             <td width="35%"><font size="2">: <?php echo $std->prefixName.$std->stdName.' '.$std->stdSurname;?></font></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td height="22"><font  size="2"><b>หลักสูตร</b></font></td>
                             <td colspan="3"><font  size="2">: <?php echo $std->curName;?></font></td>
                         </tr>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td height="22"><font  size="2"><b>ระดับการศึกษา</b></font></td>
                             <td><font  size="2">: <?php echo $std->levelName;?></font></td>
                             <td><font  size="2"><b>ชั้นปี</b></font></td>
                             <td><font  size="2">: <?php echo $std->syCode;?></font>
                             <input type="hidden" name="stdSyId" id="stdSyId" value="<?php echo $std->stdSyId;?>" />
                             <input type="hidden" name="acY" id="acY" value="<?php echo $this->session->userdata('acY');?>">
                             <input type="hidden" name="tm" id="tm" value="<?php echo $this->session->userdata('tmId');?>"></td>
                         </tr>
                         <tr>
                             <td height="22" colspan="4"></td>
                         </tr>
 <?php
                         if(!(isset($flgSuccess))) {
 ?>
                         <tr>
                             <td colspan="4" align="center" height="22">
                             <input type="checkbox" name="approve" id="approve" value="1" onClick="chkAgree()">
                             <font  size="2">อนุมัติให้คืนสภาพนักศึกษา เลขที่เอกสารอ้างอิง</font>
                             <input type="text" name="ssmRefNo" id="ssmRefNo" size="5" maxlength="10" value="<?php echo set_value('ssmRefNo');?>" disabled /></td>
                         </tr>
                         <tr>                    
                             <td height="22" colspan="4"></td>
                         </tr>
                         <tr>
                             <td height="22" colspan="2" align="right"><font  size="2"><b>ผู้อนุมัติ : </b></font></td>
                             <td colspan="2"><input type="text" name="ssmApprover" id="ssmApprover" size="25" disabled value="<?php echo set_value('ssmApprover');?>" /></td>
                         </tr>
                         <tr>                    
                             <td colspan="2" align="right" height="22"><font  size="2"><b>วันที่อนุมัติ : </b></font></td>
                             <td colspan="2"><script>DateInput('ssmApproveDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script></td>
                         </tr>
                         <tr>                    
                             <td height="22" colspan="4"></td>
                         </tr>
                         <tr>
                             <td colspan="4" align="center"><input type="button" name="add" id="add" value="บันทึก" disabled onClick="chkBeforeSave()" />
                             <input type="hidden" name="add2" id="add2" value="" />
                             <input type="reset" name="clear" value="เคลียร์ข้อมูล" disabled /></td>
                         </tr>
 <?php
                         } else if(isset($flgSuccess)) {
 ?>
                         <tr>
                             <td colspan="4" align="center"><font class="h" color="<?php echo $this->config->item("rg_font_color_err");?>"><b><?php echo $flgSuccess;?></b></font><br /></td>
                         </tr>
 <?php
                         }
                     } else if(isset($flgShow)) {
 ?>
                         <tr>
                             <td height="22" align="center" colspan="4"><font color="<?php echo $font_color_err;?>" size="2"><?php echo $flgShow;?></font></td>
                         </tr>
 <?php
                     }
 ?>
                     </table></td>
                 </tr>            
             </table><?php echo form_close();?></div>
         <br></td>
     </tr>
 </table>
  |