Viewing file: v_searchRptRis125_original.php (10.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script> function checkTypeSt() { if(document.myform.typeSt[0].checked) { document.myform.curId.disabled = false; document.myform.adY.disabled = false; document.myform.studentCode.disabled = true; } else if(document.myform.typeSt[1].checked) { document.myform.curId.disabled = true; document.myform.adY.disabled = true; document.myform.studentCode.disabled = false; } }
function chkDisabled() { document.myform.curId.disabled = false; document.myform.adY.disabled = false; document.myform.studentCode.disabled = true; document.myform.directorPos.disabled = true; }
function chkDirectorPos() { if(document.myform.officerId.value == <?php echo $acPrsIdDirector ;?>) document.myform.directorPos.disabled = true; else document.myform.directorPos.disabled = false; }
function showHideTmpFinishDate(id) { if(document.myform.beforeApprove.checked) document.getElementById(id).style.display = ""; else document.getElementById(id).style.display = "none"; }
function chkTypeLang() { if(document.myform.typeLang[0].checked || document.myform.typeLang[1].checked) { document.myform.lineSpacingEng[0].checked = false; document.myform.lineSpacingEng[1].checked = true; document.myform.lineSpacingEng[0].disabled = true; document.myform.lineSpacingEng[1].disabled = true; } else { document.myform.lineSpacingEng[0].disabled = false; document.myform.lineSpacingEng[1].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($this->config->item("rg_folder")."rpt_misc/rptRis125_origin", array("name" => "myform", "id" => "myform", "target" => "_blank")); ?> <table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td colspan="2"><fieldset> <table width="100%" class="szone"> <tr> <td><input type="radio" name="typeSt" id="rad1" value="N" checked onClick="return checkTypeSt()" <?php echo ((set_value('typeSt')=='N')? 'checked': ((set_value('typeSt')=='Y')? '': 'checked'));?>/> <label for="rad1"><b>รายหลักสูตร</b></label></td> </tr> <tr> <td class="coltd_szone">หลักสูตร</td> <td> <?php $disN = (set_value("typeSt")=="N")? "": ((set_value("typeSt")=="Y")? "disabled": ""); echo form_dropdown('curId', $rs_cur, set_value('curId'),"id=curId $disN"); ?> <span class="error">* <?php echo form_error('curId');?></span></td> </tr> <tr> <td class="coltd_szone">ปีการศึกษาที่เข้า</td> <td><input type="text" name="adY" id="adY" value="<?php echo set_value('adY',$acY);?>" size="4" maxlength="5" class="required-int" <?php echo $disN;?>/> <span class="error">* <?php echo form_error('adY');?></span></td> </tr> </table></fieldset></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td colspan="2"><fieldset> <table width="100%" class="szone"> <tr> <td colspan="2" height="22"><input type="radio" name="typeSt" id="rad2" value="Y" onClick="return checkTypeSt()" <?php echo ((set_value('typeSt')=='Y')? 'checked':'');?>> <font size="2"><b><label for="rad2">รายนักศึกษา</label></b></font></td> </tr> <tr> <td class="coltd_szone">รหัสนักศึกษา</td> <td><input type="text" name="studentCode" id="studentCode" size="20" maxlength="20" disabled class="required-int" <?php echo (set_value('typeSt')=='Y')? '': 'disabled';?>/> <span class="error">* <?php echo form_error('studentCode');?></span> </td> </tr> </table></fieldset><br></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td colspan="2" class="coltd_szone"><input type="checkbox" name="beforeApprove" id="chk" value="Y" onClick="showHideTmpFinishDate('tmpFinishDate')" <?php echo ((set_value('beforeApprove')=='Y')? 'checked':'');?> /> <label for="chk">พิมพ์ก่อนอนุมัติสำเร็จการศึกษา</label></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>" id="tmpFinishDate" style="display : none;"> <td class="coltd_szone">วันที่สำเร็จการศึกษา</td> <td><script>DateInput('tmpFinishDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone" colspan="2"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">กระดาษ</td> <td><input type="radio" name="typePaper" id="rad3" value="A4" <?php echo ((set_value('typePaper')=='A4')? 'checked': ((set_value('typePaper')=='F4')? '': 'checked'));?>><font size="2" /><label for="rad3"> A4</label> <input type="radio" name="typePaper" id="rad4" value="F4" <?php echo ((set_value('typePaper')=='F4')? 'checked':'');?>><label for="rad4" /> F4</label></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ภาษา</td> <td> <input type="radio" name="typeLang" id="rad5" value="T1" <?php echo ((set_value('typeLang')=='T1')? 'checked': ((set_value('typeLang')=='E')? '': 'checked'));?> /><font size="2"><label for="rad5"> ไทย - เลขอารบิก</label><br><!-- onClick="chkTypeLang()" --> <input type="radio" name="typeLang" id="rad0" value="T2" <?php echo ((set_value('typeLang')=='T2')? 'checked': '');?> /><font size="2"><label for="rad0"> ไทย - เลขไทย</label><br><!-- onClick="chkTypeLang()" --> <input type="radio" name="typeLang" id="rad6" value="E" <?php echo ((set_value('typeLang')=='E')? 'checked':'');?> /><label for="rad6"> อังกฤษ</label></font><!-- onClick="chkTypeLang()" --></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">เงื่อนไขในการแสดงผล</td> <td><input type="radio" name="typeDisplay" id="rad7" value="S" <?php echo ((set_value('typeDisplay')=='S')? 'checked': ((set_value('typeDisplay')=='G')? '': 'checked'));?>><font size="2"><label for="rad7"> รายภาคการศึกษา</label><br> <input type="radio" name="typeDisplay" id="rad8" value="G"><label for="rad8" /> รายหมวดวิชา</label><br> <input type="radio" name="typeDisplay" id="rad9" value="Y"><label for="rad9" /> รายชั้นปี</label></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ระยะห่างบรรทัด (สำหรับภาษาอังกฤษ)</td> <td><input type="radio" name="lineSpacingEng" id="rad10" value="4" /><font size="2"><label for="rad10"> 4</label><!-- disabled --> <input type="radio" name="lineSpacingEng" id="rad11" value="5" checked /><label for="rad11"> 5</label></font></td><!-- disabled --> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">สัญลักษณ์ของวิทยาลัย</td> <td><input type="checkbox" name="showCfgClgLogo" id="chk2" value="1" checked /> <font size="2"><label for="chk2"> แสดงสัญลักษณ์ของวิทยาลัย</label></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ตำแหน่งที่ติดรูปภาพนักศึกษา</td> <td><input type="checkbox" name="showStPic" id="chk3" value="1" checked /> <font size="2"><label for="chk3"> กำหนดตำแหน่งที่ติดรูปภาพนักศึกษา</label></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">เกียรตินิยม/เหรียญรางวัล</td> <td><input type="radio" name="honorMedal" id="rad12" value="H" checked /><font size="2"><label for="rad12"> เกียรตินิยม</label> <input type="radio" name="honorMedal" id="rad13" value="M"><label for="rad13" /> เหรียญรางวัล</label> <input type="radio" name="honorMedal" id="rad14" value="N"><label for="rad14" /> ไม่แสดงเลย</label></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ผู้อำนวยการ/รักษาการแทนผู้อำนวยการ</td> <td> <?php echo form_dropdown('officerId', $rs_pp, set_value('officerId',$acPrsIdDirector), "onChange='chkDirectorPos()'"); ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ตำแหน่งผู้รักษาการแทนผู้อำนวยการ</td> <td><input type="text" name="directorPos" size="50" disabled></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">สมทบกับ/Affiliated to</td> <td><input type="text" name="affiliatedTo" id="affiliatedTo" size="50" /><br> <font size="2" color="<?php echo $font_color_err;?>"><b>ตัวอย่างเช่น</b> สมทบกับ มหาวิทยาลัยสงขลานครินทร์ <i>หรือ</i><br> Affiliated to Prince of Songkla University</font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ชื่อผู้สมทบ</td> <td><input type="text" name="affiliatedToName" id="affiliatedToName" size="50" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ตำแหน่งผู้สมทบ</td> <td><input type="text" name="affiliatedToPos" id="affiliatedToPos" size="50" /></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td align="center" colspan="2"> <input type="submit" name="add" id="add" value="ตกลง" /> <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" /> </td> </tr> </table><?php echo form_close();?></td> </tr> </table></div> <br></td> </tr> </table>
|