Viewing file:      v_searchRptRis104.php (5.31 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script> function checkTypeSt(val) {     if(val=="N") {         document.getElementById('typeSt2').checked=false;                 document.getElementById('curId').disabled = false;         document.getElementById('adY').disabled = false;         document.getElementById('acY').disabled = false;         document.getElementById('studentCode').disabled = true;     }     else{         document.getElementById('typeSt1').checked=false;         document.getElementById('curId').disabled = true;         document.getElementById('adY').disabled = true;         document.getElementById('acY').disabled = true;         document.getElementById('studentCode').disabled = false;     }     document.getElementById('typeSt').value=val; } </script> <table width="95%" align="center">     <tr>         <td>             <div align="center">             <input type="hidden" name="typeSt" id="typeSt" value="N"/> <?php                             echo form_open($this->config->item("rg_folder")."rpt_student/rptRis104"); ?>             <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">                 <tr>                     <td colspan="2" align="center"><span class="h error">บัตรประจำตัวนักศึกษา</span></td>                 </tr>                 <tr>                     <td colspan="2" height="22"></td>                 </tr>                 <tr bgcolor="<?php echo $tr_color_even;?>">                     <td colspan="2">                     <fieldset>                     <table width="100%">                         <tr>                             <td height="22" colspan="3"><input type="radio" name="typeSt" id="typeSt1" value="N" <?php echo ((set_value('typeSt')=='N')? 'checked': ((set_value('typeSt')=='Y')? '': 'checked'));?> onClick="return checkTypeSt('N')">                             <font size="2"><b><label for="rad1">รายหลักสูตร หรือ รายปีการศึกษา</label></b></font></td>                         </tr>                         <tr>                             <td width="5%" height="22"></td>                             <td width="20%"><font size="2"><b>หลักสูตร</b></font></td>                             <td width="75%"> <?php                        $disN = (set_value("typeSt")=="N")? "": ((set_value("typeSt")=="Y")? "disabled": "");                             echo form_dropdown('curId', $rs_cur, setValue('curId', $rs_cur),"id=curId $disN" ); ?>                             <span class="error"><?php echo form_error('curId');?></span></td>                         </tr>                         <tr>                             <td height="22"></td>                             <td><font size="2"><b>ตั้งแต่ปีการศึกษา</b></font></td>                             <td><input type="text" name="adY" id="adY" value="<?php echo set_value('adY', $acY);?>" size="4" maxlength="4" <?php echo $disN;?> class="required-int">                             <span class="error"><?php echo form_error('adY');?></span></td>                         </tr>                         <tr>                             <td height="22"></td>                             <td><font size="2"><b>ถึงปีการศึกษา</b></font></td>                             <td><input type="text" name="acY" id="acY" value="<?php echo set_value('acY', $acY);?>" size="4" maxlength="4" <?php echo $disN;?> class="required-int">                             <span class="error"><?php echo form_error('acY');?></span></td>                         </tr>                     </table></fieldset></td>                 </tr>                 <tr bgcolor="<?php echo $tr_color_even;?>">                     <td colspan="2"><fieldset><table width="100%">                         <tr>                             <td height="22" colspan="3"><input type="radio" name="typeSt" id="typeSt2" value="Y" <?php echo ((set_value('typeSt')=='Y')? 'checked':'');?> onClick="checkTypeSt('Y')">                             <font size="2"><b><label for="rad2">รายนักศึกษา</label></b></font></td>                         </tr>                         <tr>                             <td width="5%" height="22"></td>                             <td width="20%"><font size="2"><b>รหัสนักศึกษา</b></font></td>                             <td width="75%"><input type="text" name="studentCode" id="studentCode" size="15" maxlength="15" <?php echo (set_value('typeSt')=='Y')? '': 'disabled';?> value="<?php echo set_value('studentCode'); ?>" class="required-int">                             <span class="error"><?php echo form_error('studentCode');?></span></td>                         </tr>                         <tr>                             <td height="22"></td>                             <td><font size="2"><b>วันหมดอายุ</b></font></td>                             <td><script>DateInput('cardExpiryDate', true, 'DD/MM/YYYY', "<?php echo $acCardExpiryDay;?>/<?php echo $acCardExpiryMonth;?>/<?php echo ($acY-543);?>");</script>                             </td>                         </tr>                     </table></fieldset></td>                 </tr>                 <tr bgcolor="<?php echo $tr_color_even;?>">                     <td width="30%" height="22"><font size="2"><b>  วันออกบัตร</b></font></td>                     <td><script>DateInput('cardIssuedDate', true, 'DD/MM/YYYY', "<?php echo set_value('cardIssuedDate') ? set_value('cardIssuedDate') : getNowDateFw2();?>");</script></td>                 </tr>                 <tr bgcolor="<?php echo $tr_color_even;?>">                     <td height="22" nowrap="nowrap"><font size="2"><b>  ตำแหน่งผู้รักษาการแทนผู้อำนวยการ</b></font></td>                     <td><input type="text" name="directorPos" id="directorPos" size="50" value="<?php echo set_value('directorPos')?>"></td>                 </tr>                 <tr bgcolor="<?php echo $tr_color_even;?>">                     <td colspan="2" align="center"><input type="submit" name="submit" value="ตกลง">                     <input type="reset" name="clear" value="เคลียร์ข้อมูล"></td>                 </tr>             </table><?php echo form_close();?></div>         <br><span class="error"><b>หมายเหตุ : </b>สามารถพิมพ์บัตรประจำตัวนักศึกษารายหลักสูตร หรือ รายปีการศึกษา หรือ รายนักศึกษาได้</span></td>     </tr> </table>
  |