Viewing file:      v_showCourseEditGrade.php (2.17 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script language="JavaScript1.2">
 function changeCur(seed){
     var acY, tmId;
     acY = document.getElementById("acY").value;
     tmId = document.getElementById("tmId").value;
 
     var url = "<?php echo site_url($this->config->item('rg_folder'));?>"+"/grade/showCrs_editGrd/"+acY+"/"+tmId+"/"+seed;
 
     xmlhttp = newXmlHttp();
     xmlhttp.open("GET", url, false);
     xmlhttp.send(null); 
     if(xmlhttp.readyState==4 && xmlhttp.status==200){
         var ret_text = xmlhttp.responseText;
         //alert(ret_text);
         document.getElementById('showCrs').innerHTML= ret_text;
     }
 }
 </script>
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
         <td>
             <table width="100%" border="0">
                 <tr>
                     <td colspan="12" align="center"><span class="h error"><b>แก้เกรด</b></span></td>
                     <td></td>
                 </tr>
                 <tr>
                     <td height="22" colspan="8"></td>
                 </tr>
                 <tr>
                     <td height="22" colspan="8" width=""><font size="2"><b>ปีการศึกษา</b>
 <?php
                     $js1 = 'id="acY" onChange="changeCur('.mt_rand().')"';
                     echo form_dropdown('acY', $rs_tmc, $acY, $js1);
 ?>
                     <b>ภาคการศึกษา</b>
 <?php
                     $js2 = 'id="tmId" onChange="changeCur('.mt_rand().')"';
                     echo form_dropdown('tmId', $rs_tm, $tmId, $js2);
 ?>
                     </font></td>
                 </tr>
             </table>
             <div id='showCrs'></div>
         <br></td>
     </tr>
     <tr>
         <td><table width="100%">
             <tr>
                 <td width="10%"><font size="2" color="<?php echo $font_color_err; ?>"><b>หมายเหตุ : </b></font></td>
                 <td><img src="<?php echo base_url().$this->config->item("rg_edit_yell");?>" width="23" height="19" align="absmiddle" border="0">
                 <font size="2" color="<?php echo $font_color_err; ?>"> ยังไม่ส่งเกรด</font></td>
             </tr>
             <tr>
                 <td height="22"></td>
                 <td><img src="<?php echo base_url().$this->config->item("rg_edit");?>" width="23" height="19" align="absmiddle" border="0">
                 <font size="2" color="<?php echo $font_color_err; ?>"> ส่งเกรดแล้ว</font></td>
             </tr>
         </table></td>
     </tr>
 </table>
 <script language="JavaScript">
 changeCur('<?php echo mt_rand();?>');
 </script>
  |