Viewing file:      v_studentTable.php (3.83 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script language="javascript">
 function get_studentBycur(curId,eleName,seed){    
         var url = "<?=site_url($this->config->item('rg_folder')."officer/get_studentBycur")?>"+"/"+curId+"/"+seed;
         xmlhttp = newXmlHttp();
         xmlhttp.open("GET", url, false);
         xmlhttp.send(null); 
 
         document.getElementById("ele_"+eleName).innerHTML = xmlhttp.responseText;
 }
 </script>
 <?php
 //echo $prsId."<<<<<<<<<<";
 //include_once "../link/function.php";
 //include_once "../class/clsProgram.php";
 //include_once "../class/clsStudentMaster.php";
 //include_once "../class/clsPrefix.php";
 //
 //$conn = new Connection();
 //
 //$oPg = new Program();
 //$oSm = new StudentMaster();
 //$oPf = new Prefix();
 //
 //doCheckAll();
 ////********************************************
 //// if method edit
 ////********************************************
 //if($method=="edit") {
 //    $conn->BeginTrans();
 //    for($i=0; $i<$cnt; $i++) {
 //        if($studentId[$i]) {
 //            $oSm->SearchByKey($studentId[$i]);
 //            $oSm->GetRecord();
 //            $oSm->Edit();
 //            $oSm->officerId1 = $officerId;
 //            if(is_null($oSm->officerId2))
 //                $oSm->officerId2 = 'NULL';
 //            $oSm->updateUserId = $updateUserId;
 //            $oSm->updateDateTime = date('Y-m-d H:i:s');
 //            if(is_null($oSm->citizenId))
 //                $oSm->citizenId = 'NULL';
 //            if(is_null($oSm->preAdmitPositionId))
 //                $oSm->preAdmitPositionId = 'NULL';
 //            $oSm->Save();
 //        }
 //    }
 //    $conn->CommitTrans();
 ?>
 <script language="javascript1.2">
     window.opener.location.href="index.php?officerId=<?php echo $officerId;?>";
     window.close();
 </script>
 <?php
 //}
 //********************************************
 ?>
 <html>
 <head>
 <title>ตารางนักศึกษา</title>
 <meta http-equiv="Content-Type" content="text/html; charset=tis-620">
 </head>
 <body bgcolor="#FFFFFF">
 <?php
 $attributes = array('id' => 'my_form1', 'class' => 'chkBeforeSubmit');
 echo form_open($this->config->item('rg_folder').'officer/studentTable_save', $attributes);
 ?>
 <table width="100%" border="0" cellspacing="1" cellpadding="1">
     <tr>
         <td colspan="3" align="center"><font size="2"><b>หลักสูตร</b></font>: 
     <?php echo form_dropdown('curId', $rs_cur,set_value('curId'), " id='curId' onchange=\"get_studentBycur(this.value,'stdId','".rand()."')\"");?>
     <font size="2" color="<?php echo $font_color_err;?>">*</font>
     <br /><?php echo form_error('curId');?></td>
     </tr>
     <tr>
         <td colspan="3">
             <span id="ele_stdId">
                 <table width="100%">
                     <tr bgcolor="#0066CC"> 
                         <td width="20%" align="center"><font size="2" color="#FFFFFF"><b>เลือก</b></font></td>
                         <td width="25%" align="center"><font size="2" color="#FFFFFF"><b>รหัสนักศึกษา</b></font></td>
                         <td width="55%" align="center"><font size="2" color="#FFFFFF"><b>ชื่อ-สกุลนักศึกษา</b></font></td>
                     </tr>    
                 </table>
             </span>
         </td>
     </tr>
     <tr bgcolor="#CCCCCC">
         <td colspan="3"><input type="button" name="selectAll" value="เลือกทั้งหมด" onClick="doCheckAll(this.form,true);">
         <input type="reset" name="cancelAll" value="ยกเลิกทั้งหมด" onClick="doCheckAll(this.form,false);"></td>
     </tr>
     <tr>
         <td align="center" colspan="3"><input type="submit" name="edit" value="บันทึก">
         <input type="button" name="cancel" value="ยกเลิก" onClick="window.close()">
         <input type="hidden" name="method" value="edit">
         <input type="hidden" name="prsId" id="prsId" value="<?php echo $prsId;?>">
         <input type="hidden" name="AcY" id="AcY" value="<?php echo $this->session->userdata('acY_R');?>"></td>
     </tr>    
     <tr>
         <td align="center" colspan="3"><a href="#" onClick="window.close()"><font size="1">[ปิดหน้าต่าง]</font></a></td>
     </tr>
 </table>
 <?php echo form_close();?>
 </body>
 </html>
  |