Viewing file: editRunningDeptDocConfirm.php (7.81 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include_once "template.php"; include_once "../class/clsTable.php"; include_once "../class/clsDepartment.php"; include_once "../class/clsPerson.php"; include_once "../link/function.php"; include_once "../class/clsDocType.php"; include_once "../class/clsRunningDoc.php"; include_once "funct.php"; include_once "../link/keyThai.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDP = new Department($oC); $oDt = new doctype($oC); $oRd = new runningdoc($oC); $InputThai=$oSys->SearchByInputThai(); $maxgroup=$oDP->SearchMaxDocGroup(); $oRd->SearchByconfirmNoRunAll($maxgroup); $oRd->GetRecord(); $confirm=$oRd->confirm; ///////// $Pass=1; //////// if($Pass=="1"){ ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> <link href="../source/style.css" rel="stylesheet" type="text/css"> </head> <body> <iframe id="addrunningDeptDoc" name="addrunningDeptDoc" src="" style="width:$0px;height:0px;border:0"></iframe> <br> <table width=703 align="center"> <tr><td height="150"> <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">จัดการข้อมูลพื้นฐานในงานสารบรรณ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="runningDeptDoc.php">ตั้งค่าเลขทะเบียนรับ-ส่งหนังสือภายใน/หนังสือเสนอลงนาม</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">แก้ไขข้อมูลทะเบียนหนังสือ </font></legend><br> <form name="ff" action="processRunningDeptDoc.php" method="post" target="addrunningDeptDoc"> <table width="97%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_17'];?>"> <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>" height="22"> <td width= "23%" align="center"><font size="2"><strong>ทะเบียนหนังสือ</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>เริ่มต้น</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>ปัจจุบัน</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>เริ่มต้น</strong></font></td> <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>ปัจจุบัน</strong></font></td> <td width="12%" align="center"><font size="2"><strong>เลขที่เริ่มต้น<br> </strong></font></td> <td width="12%" align="center"><font size="2"><strong>เลขที่<br>ปัจจุบัน</strong></font></td> </tr> <? $oDt->RSdoctypeDtAll(); while($oDt->GetRecord()){ if($oDt->DtP=="1"){ echo "<tr height=22><td colspan=5 align=\"left\"> "; if($oDt->DtPDtID=="0"){ echo "<strong>"; }else{ echo " - "; } echo "ทะเบียน".$oDt->DtName; if($oDt->DtPDtID=="0"){ echo "<strong></td></tr>"; } }else{ ?> <tr height=22> <td align="left" height=22 colspan="5"> <? if($oDt->DtPDtID=="0"){ echo "<strong>"; }else{ echo " <strong>- "; } ?>ทะเบียน<? echo $oDt->DtName; if($oDt->DtPDtID=="0"){ echo "</strong>"; } ?></td> </tr> <? $oDP->SearchBydeptDateDocGroup($oDP->SearchMaxDocGroup()); while($oDP->GetRecord()){ $oRd->SearchBydocGroupDtIDDeptdocNoMixN($maxgroup,$oDt->DtID,$oDP->deptId); $oRd->GetRecord(); if(($i%2) == 0) echo "<tr bgcolor=\"".$GLOBALS['COLOR_BG_TD_5']."\" height=22>"; else echo "<tr bgcolor=\"".$GLOBALS['COLOR_BG_TABLE_8']."\" height=22>"; ?> <td align="left"> - <? echo $oDP->deptName; ?></td> <td align="center"> <? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?> <input type="text" name="receiveNoStart[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" id="receiveNoStart[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai; ?>',event)" onKeyUp="CheckInputIdx2('<? echo $InputThai; ?>','receiveNoStart','<? echo $oDt->DtID; ?>','<? echo $oDP->deptId; ?>')" value=<? echo a2th($oRd->receiveNoStart); ?>><? } ?> </td> <td align="center"><? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?><input type="text" name="receiveNo[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" id="receiveNo[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai; ?>',event)" onKeyUp="CheckInputIdx2('<? echo $InputThai; ?>','receiveNo','<? echo $oDt->DtID; ?>','<? echo $oDP->deptId; ?>')" value=<? echo a2th($oRd->receiveNo); ?>><? } ?></td> <td align="center"> <? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?> <input type="text" name="sendNoStart[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" id="sendNoStart[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai; ?>',event)" onKeyUp="CheckInputIdx2('<? echo $InputThai; ?>','sendNoStart','<? echo $oDt->DtID; ?>','<? echo $oDP->deptId; ?>')" value=<? echo a2th($oRd->sendNoStart); ?>><? } ?> </td> <td align="center"><? if($oDt->forRegis=="Y"){ echo "-"; }else{ ?><input type="text" name="sendNo[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" id="sendNo[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai; ?>',event)" onKeyUp="CheckInputIdx2('<? echo $InputThai; ?>','sendNo','<? echo $oDt->DtID; ?>','<? echo $oDP->deptId; ?>')" value=<? echo a2th($oRd->sendNo); ?>><? } ?></td> <td align="center"><? if($oDt->forRegis!="Y"){ echo "-"; }else{ ?><input type="text" name="regisNoStart[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" id="regisNoStart[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai; ?>',event)" onKeyUp="CheckInputIdx2('<? echo $InputThai; ?>','regisNoStart','<? echo $oDt->DtID; ?>','<? echo $oDP->deptId; ?>')" value=<? echo a2th($oRd->regisNoStart); ?>><? } ?></td> <td align="center"><? if($oDt->forRegis!="Y"){ echo "-"; }else{ ?><input type="text" name="regisNo[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" id="regisNo[<? echo $oDt->DtID; ?>][<? echo $oDP->deptId; ?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai; ?>',event)" onKeyUp="CheckInputIdx2('<? echo $InputThai; ?>','regisNo','<? echo $oDt->DtID; ?>','<? echo $oDP->deptId; ?>')" value=<? echo a2th($oRd->regisNo); ?>><? } ?></td>
</tr> <? $i++; } //while each dept } //show } //while ?> </table> <table align="center" width="85%"> <tr><td > </td></tr> <tr><td colspan="2" align="center"> <input type="submit" name="editsetrunningDeptDoc" value="แก้ไข" onClick="return checkFormat();"> <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = 'runningDeptDoc.php'"> <input type="hidden" name="docGroup" id="docGroup" value="<? echo $maxgroup; ?>" > <input type="hidden" name="method" id="method"> </td></tr> </table></form> </fieldset> </td> </tr> </table> </body> </html>
<script language="javascript"> function checkFormat(){ var agree=confirm("คุณต้องการแก้ไขข้อมูลทะเบียนรับ-ส่งหนังสือภายใน กรณีพิเศษใช่หรือไม่ ?"); if (agree){ document.ff.method.value="editsetrunningDeptDoc"; return true ; }else{ return false ; } } </script> <? }else{ echo "<br><br><font color=\"#8C0000\"><strong>**กรุณาลงชื่อเข้าใช้งานการแก้ไขเลขทะเบียนหนังสือแต่ละหน่วยงาน**</strong></font>"; } ?>
|