Viewing file:      v_searchRepRis112.php (3.4 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script language="JavaScript">
 function disable(disableIt)
 {
     if(disableIt) {
         document.myform.curId.disabled = true;
         document.myform.syId.disabled = true;
         document.myform.stdCode.disabled = false;
         //document.myform.action = "repRis112.php";
     }
     else {
         document.myform.curId.disabled = false;
         document.myform.syId.disabled = false;
         document.myform.stdCode.disabled = true;
         //document.myform.action = "repRis112Pg.php";
     }
 }
 </script>
 <?php
 function setValue($fieldName, $rw, $v='') {
     if ( set_value($fieldName) <> '') 
         $v = set_value($fieldName);
     elseif ( !is_null($rw) ) 
         $v = @$rw->$fieldName; 
     return $v;
 }
 ?>
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
         <td><br><fieldset>
             <div align="center"><br>
             <?php echo form_open($this->config->item("rg_folder")."rpt_misc/search_repRis112", array("name" => "myform", "id" => "myform"));?>
             <table width="90%" align="center" cellpadding="0" cellspacing="1" border="0">
                 <tr>
                     <td colspan="2"><br /></td>
                 </tr>
                 <tr>
                     <td colspan="2" align="center"><font size="3" color="<?php echo $font_color_err;?>"><b>รายงานผลการเรียนนักศึกษาแจ้งผู้ปกครอง</b></font></td>
                 </tr>
                 <tr>
                     <td colspan="2"><br /></td>
                 </tr>
                 <tr>
                     <td width="35%"><font size="2"><b>ปีการศึกษา</b></font></td>
                     <td width="65%"><input type="text" name="acY" id="acY" value="<?php echo $acY;?>" size="4" maxlength="4" onKeyPress="if(event.keyCode < 48 || event.keyCode > 57) return false;" /></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td><font size="2"><b>ภาคการศึกษา</b></font></td>
                     <td>
 <?php 
                         echo form_dropdown('tmId', $rs_tm, setValue('tmId', $rs_tm));
 ?>
                     </font></td>
                 </tr>
                 <tr>
                     <td ><font size="2"><b>หลักสูตร</b></font></td>
                     <td>
 <?php
                         echo form_dropdown('curId', $rs_cur, setValue('curId', $rs_cur));
 ?>
                     </td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td><font size="2"><b>ชั้นปี</b></font></td>
                     <td><input type="text" name="syId" id="syId" size="1" maxlength="2" onKeyPress="if(event.keyCode < 48 || event.keyCode > 57) return false;" /></td>
                 </tr>
                 <tr>
                     <td colspan="3"><input type="checkbox" name="typeStd" id="typeStd" value="Y" onclick="disable(this.checked)" />
                     <font size="2"><b>รายนักศึกษา</b></font></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td><font size="2"><b>รหัสนักศึกษา</b></font></td>
                     <td><input type="text" name="stdCode" id="stdCode" size="10" maxlength="10" disabled onKeyPress="if(event.keyCode < 48 || event.keyCode > 57) return false;" /></td>
                 </tr>                        
                 <tr>
                     <td align="center" colspan="3"><br><input type="submit" name="add" id="add" value="ตกลง" />
                     <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
                     </td>
                 </tr>
             </table><?php echo form_close();?></div>
         </fieldset><br><font size="2" color="<?php echo $font_color_err;?>"><b>หมายเหตุ : </b>สามารถพิมพ์รายงานรายหลักสูตร หรือ รายนักศึกษาได้</font></td>
     </tr>
 </table>
  |