Viewing file:      v_confirmPassAdmin.php (6.89 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?if(Empty($sub)){?> <script>
      $(document).ready(function(){         if(!confirm('ท่านไม่ใช่ผู้ทำรายการนี้ ถ้าต้องการแก้ไข ให้คลิกปุ่ม OK')){              self.close()         }              }); </script> <?}else if(isset($res) and !isset($med) and !isset($sed)){?> <script> <?     if(isset($res)){         echo "var a = '".$res."';";     } ?> $(document).ready(function(){          if(a=='Y'){         if(!/^[ก-๙][ก-๙ 0-9\.\(\)\/\- ]*$/.test($('#dbtDescription', window.opener.document).val())){             $('#dbtDescription', window.opener.document).focus();             window.opener.alert('กรุณาป้อนและควรป้อนเป็นภาษาไทยเท่านั้น');             return false;         }         if(!/^[0-9][0-9]*$/.test($('#dbtAmt', window.opener.document).val())){             $('#dbtAmt', window.opener.document).focus();             window.opener.alert('กรุณาป้อนและควรป้อนเป็นตัวเลขเท่านั้น');             return false;         }                 $('form', window.opener.document).submit();         self.close();     }else{         $('#no').html("<p>รหัสไม่ถูกต้อง</p>");     } }); </script> <?}else if(isset($res) and isset($sed) and !isset($med)){?> <script> <?     if(isset($res)){         echo "var a = '".$res."';";     } ?> $(document).ready(function(){     if($.trim($('#dbtRefNo', window.opener.document).val())==""){         $('#dbtRefNo', window.opener.document).focus();         window.opener.alert('กรุณาป้อน');         return false;     }     if(a=='Y'){         $('form', window.opener.document).submit();         self.close();     }else{         $('#no').html("<p>รหัสไม่ถูกต้อง</p>");     } }); </script> <? }else if(isset($res) and isset($med) and !isset($sed)){?> <script> <?     if(isset($res)){         echo "var a = '".$res."';";     } ?> $(document).ready(function(){     if(a=='Y'){         window.opener.del($('#dbtSeq').val(),$('#stdId').val(),$('#acY').val(),$('#tmId').val(),$('#stdCode').val(),$('#dbtDescription').val(),$('#dbtAmt').val(),$('#orgId').val());         self.close();     }else{         $('#no').html("<p>รหัสไม่ถูกต้อง</p>");     } }); </script> <?}?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">     <tr>         <td><br><fieldset>             <span class="h error">ยืนยันรหัสผ่าน</span>             <label><div align="center"><br><form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>" style="margin : 0; padding : 0;">             <table width="100%">                 <tr>                     <td align="center"><br><font size="2"><b>รหัสผ่านของหัวหน้าหน่วยแจ้งหนี้นักศึกษา</b></font>                     <input type="password" name="passwdHead"> *                             <div id="no"><?php echo form_error("passwdHead");?></div><span class="error"></span> <?php                     foreach($_POST as $key => $value) {                         if($key!="passwdHead" and $key!="Submit"){                             echo "<input type=\"hidden\" name=\"$key\" id=\"$key\" value=\"$value\">\n";                         }                     } ?>                     </td>                 </tr>                 <tr>                     <td align="center"><br><input type="submit" name="Submit" value="ตกลง">                     <input type="button" name="cancel" value="ยกเลิก" onClick="self.close()"></td>                 </tr>             </table></form></div></label>         </fieldset></td>     </tr> </table> <!--<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">     <tr>         <td><fieldset>             <legend align="center"><span class="h error">รายละเอียดข้อมูลรายวิชา</span></legend>             <div align="center"><br><table class="szone">                 <tr>                     <td><table  class="szone">                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">รหัสรายวิชา (ไทย)</td>                             <td class="indent"><?php echo getval('crsCode', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">รหัสรายวิชา (อังกฤษ)</td>                             <td class="indent"><?php echo getval('crsCodeE', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">ชื่อรายวิชา (ไทย)</td>                             <td class="indent"><?php echo explodeSquare(getval('crsName', $row_crs));?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">ชื่อรายวิชา (อังกฤษ)</td>                             <td class="indent"><?php echo explodeSquare(getval('crsNameE', $row_crs));?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">ชื่อย่อรายวิชา (ไทย)</td>                             <td class="indent"><?php echo getval('crsAbbr', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">ชื่อย่อรายวิชา (อังกฤษ)</td>                             <td class="indent"><?php echo getval('crsAbbrE', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">หน่วยกิต</td>                             <td class="indent"><?php echo getval('crsUnit', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">สาระสำคัญของรายวิชา (ไทย)</td>                             <td class="indent"><?php echo getval('crsDescription', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">สาระสำคัญของรายวิชา (อังกฤษ)</td>                             <td class="indent"><?php echo getval('crsDescriptionE', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">แสดงชั่วโมงในทรานสคริปต์</td>                             <td class="indent"><?php echo getval('crsShowLabInTS', $row_crs);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2" >หมวดวิชา</td>                             <td class="indent"><?php echo getval('cdName', $row_cd);?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2">บุรพวิชา</td>                             <td class="indent"><?php echo $prcNames;?></td>                         </tr>                                                                     </table></td>                 </tr>                 <tr>                     <td align="center"><br><input type="button" name="close" value="ปิดหน้าต่าง" onClick="window.close()"></td>                 </tr>             </table></div>         </fieldset><br></td>     </tr>     <tr>         <td><table class="mark">             <tr>                 <td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>                 <td><span class="error">P = บังคับก่อน, C = บังคับร่วม</span></td>             </tr>             <tr>                 <td class="coltd_mark"></td>                 <td><span class="error">Y = แสดง, N = ไม่แสดง</span></td>             </tr>         </table></td>     </tr> </table>!-->
  |