Viewing file: v_searchRptRis121.php (6.12 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script> function checkTypeSt(val) { if(val=="1") { document.getElementById('curId').disabled = false; document.getElementById('acY').disabled = false; document.getElementById('stdtCode').disabled = true; document.getElementById('uploadfile').disabled = true; } else if(val=="2") { document.getElementById('curId').disabled = true; document.getElementById('acY').disabled = true; document.getElementById('stdtCode').disabled = false; document.getElementById('uploadfile').disabled = true; } else if(val=="3") { document.getElementById('curId').disabled = true; document.getElementById('acY').disabled = true; document.getElementById('stdtCode').disabled = true; document.getElementById('uploadfile').disabled = false; } } </script> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <div align="center"> <table width="100%" align="center" cellpadding="1" cellspacing="1" border="0"> <tr> <td colspan="2" align="center"><span class="h error">ใบรับรองการจบการศึกษา</span></td> </tr> <tr> <td><br /></td> </tr> <tr> <td> <?php echo form_open_multipart($this->config->item("rg_folder")."rpt_document/rptRis121"); ?> <table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td colspan="2"> <fieldset><table width="100%"> <tr> <td colspan="3" height="22"><input type="radio" name="typeSt" id="rad1" value="1" <?php echo ((set_value('typeSt')=='1')? 'checked': ((set_value('typeSt')=='2')? '': ((set_value('typeSt')=='3')? '': 'checked')));?> onClick="return checkTypeSt('1')"> <?php $disN = (set_value("typeSt")=="1")? "": ((set_value("typeSt")=="2" || set_value("typeSt")=="3")? "disabled": ""); ?> <font size="2"><b><label for="rad1">รายหลักสูตร</label></b></font></td> </tr> <tr> <td width="15%"><font size="2"><b> หลักสูตร</b></font></td> <td width="80%"><?=form_dropdown('curId', $rs_cur, set_value('curId') ,"id=curId $disN");?> <span class="error">* <?php echo form_error('curId');?></span></td> </tr> <tr> <td width="30%"><font size="2"><strong> ปีการศึกษาที่เข้า</strong></font></td> <td><input type="text" name="acY" id="acY" value ="<?php echo set_value('acY', $acY);?>" size="4" maxlength="5" class="required-int" <?php echo $disN;?>/> <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 colspan="3" height="22"><input type="radio" name="typeSt" id="rad2" value="2" onClick="return checkTypeSt('2')" <?php echo ((set_value('typeSt')=='2')? 'checked':'');?>/> <font size="2"><b><label for="rad2">รายนักศึกษา</label></b></font></td> </tr> <tr> <td width="15%"><font size="2"><b> รหัสนักศึกษา</b></font></td> <td width="80%"><input type="text" name="stdtCode" id="stdtCode" size="10" maxlength="10" <?php echo (set_value('typeSt')=='2')? '': 'disabled';?> class="required-int"/> <span class="error">* <?php echo form_error('stdtCode');?></span></td> </tr> </table></fieldset></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td colspan="2"> <fieldset><table width="100%"> <tr> <td colspan="3" height="22"><input type="radio" name="typeSt" id="rad3" value="3" onClick="return checkTypeSt('3')" <?php echo ((set_value('typeSt')=='3')? 'checked':'');?>> <font size="2"><b><label for="rad3">นำเข้าข้อมูลด้วยไฟล์และกำหนดที่หนังสือรับรอง</label></b></font></td> </tr> <tr> <td colspan="2"><font size="2"><b> ตัวอย่างการกรอกแฟ้มข้อมูล</b></font></td> </tr> <tr> <td colspan="2"><br /><img src="<?=base_url().$this->config->item("rg_repRis121TP");?>"><br><br /></td> </tr> <tr> <td width="15%" nowrap="nowrap"><font size="2"><b> แฟ้มข้อมูล (.csv)</b></font></td> <td width="80%"><input type="file" name="uploadfile" id="uploadfile" <?php echo (set_value('typeSt')=='3')? '': 'disabled';?> /> <span class="error">* <?php echo form_error('uploadfile');?></span></td> </tr> </table></fieldset></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ผู้อำนวยการ/รักษาการในตำแหน่งผู้อำนวยการ</td> <td> <?php echo form_dropdown('prsId', $rs_ps, setValue('prsId', $rs_ps)); ?> <font size="2" color="<?php echo $font_color_err;?>">*</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ส่งออกเป็น</td> <td><input type="radio" name="typeShow" id="typeShow" value="P" checked /><font size="2"><label for="rad4" <?php echo ((set_value('typeShow')=='P')? 'checked': ((set_value('typeShow')=='W')? '': 'checked'));?>>PDF</label> <input type="radio" name="typeShow" value="W" id="typeShow" <?php echo ((set_value('typeShow')=='W')? 'checked':'');?>/><label for="rad5">Word</label></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td align="center" colspan="2"> <input type="submit" name="add" id="add" value="ตกลง" onClick="return checkFormat()" /> <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" /></td> </tr> </table><?php echo form_close();?></td> </tr> </table></div> <br><span class="error"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td> </tr> </table>
|