Viewing file: showSendDocSign.php (8.51 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html> <head> <script language="javascript" src="../source/calendarDateInput.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> <link href="../source/style.css" rel="stylesheet" type="text/css"> </head> <body> <? extract ($_REQUEST); ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" > <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_2"]; ?>" height=22> <td align="left" colspan="3"> รายละเอียดการส่งหนังสือ</td> </tr> <? $oRs7->SearchByshowSendDocSign($oRs->DrsFromDrsID); $oRs7->GetRecord(); if($oRs7->DrsByPass!="Y"){ ?> <tr> <td width="31%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>การบันทึก<br> ต่อเนื่อง</strong></td> <td width="1%" align="center" ><strong>:</strong></td> <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="left"><? echo nl2br($oRs->DrsSign); ?> </td> </tr> <tr> <td width="31%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ผู้ลงนาม</strong></td> <td width="1%" align="center" ><strong>:</strong></td> <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="center"> <? $oPS6->SearchByKey($oRs->DrsPsIDCreate); $oPS6->GetRecord(); ?> <? echo " ".GetPrefix($oPS6->prefixId).$oPS6->fName." ".$oPS6->lName."<br>"; ?> <? $oDlp2->SearchByKey($oDlc6->SearchByKeyName($oRs->DrsDlcIDCreate,'DlpID')); $oDlp2->GetRecord(); echo " (".$oDlp2->DlpName.")<br>"; list($DocD,$DocT) = preg_split('[ ]',$oRs7->DrsSendDate); echo abbreDate2($DocD,'/')." ".a2th($DocT)." "; ?> <br> <br></td> </tr> <? } ?> <tr height=22 > <td width="31%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ลักษณะหนังสือ</strong></td> <td width="1%" align="center" ><strong>:</strong></td> <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="left"> <select name="PtID" id="PtID" onchange="changeDivDisplay(this.value)"> <option value="0">--เลือกลักษณะหนังสือ--</option> <? $oPt->RSProposeType(); while($oPt->GetRecord()){ ?> <option value="<? echo $oPt->PtID; ?>" <? if($PtID==""){ if($oDoc->DocPID!=0){ if($oPt->PtID==$oRs->PtID){ echo "selected"; } }else{ if($oRs->PtID==$oPt->PtID){ echo "selected"; } } }else{ if($PtID==$oPt->PtID){ echo "selected"; } }?>><? echo $oPt->PtName; ?></option> <? } ?> </select> </td> </tr> <tr height=22 > <td width="31%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ข้อมูลขึ้นเว็บ</strong></td> <td width="1%" align="center" ><strong>:</strong></td> <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="left" colspan="2"> <table align="center" border="0" width="100%"> <tr><td colspan="2"> <? //echo $oRs->AnID; if($oRs->AnID!="" && $oRs->AnID!="0"){ $oAn->SearchByKey($oRs->AnID); $oAn->GetRecord(); echo $oAn->AnName; ?> <input type="hidden" name="AnID" id="AnID" value="<? echo $oRs->AnID; ?>"> <input type="hidden" name="AnIDselected" id="AnIDselected" value="1"> <? }else{ $firstpost=1; ?> <select name="AnID" id="AnID"> <option value="0">--เลือกการแจ้งข้อมูลขึ้นเว็บ--</option> <? $oAn->RSannounceDocType(); while($oAn->GetRecord()){ ?> <option value="<? echo $oAn->AnID; ?>" <? if($AnID==""){ if($oRs->AnID==$oAn->AnID){ echo "selected"; } }else{ if($AnID==$oAn->AnID){ echo "selected"; } }?>><? echo $oAn->AnName; ?></option> <? } ?> </select> <input type="hidden" name="AnIDselected" id="AnIDselected" value="0"> <? }?></td></tr> <? if($oDoc->DocShowInOut=="1" ){ ?><input name="DocShowIn" id="DocShowIn" type="hidden" value="1"><? }else if($oDoc->DocShowInOut=="2"){ ?> <input name="DocShowOut" id="DocShowOut" type="hidden" value=2><? }else if($oDoc->DocShowInOut=="3"){ ?><input name="DocShowIn" id="DocShowIn" type="hidden" value="1"> <input name="DocShowOut" id="DocShowOut" type="hidden" value="2"><? } ?> <tr><td colspan="2"> <input name="DocShowIn" id="DocShowIn" type="checkbox" value="1" <? if($oDoc->DocShowInOut=="1" || $oDoc->DocShowInOut=="3"){ echo "checked disabled"; } if($DocShowIn==1 && $oDoc->DocShowInOut=="0"){ echo "checked"; } ?> >Internet (ภายนอก)<br> <input name="DocShowOut" id="DocShowOut" type="checkbox" value=2 <? if($oDoc->DocShowInOut=="2" || $oDoc->DocShowInOut=="3"){ echo "checked disabled"; } if($DocShowOut==2 && $oDoc->DocShowInOut=="0"){ echo "checked"; }?> >Intranet (ภายใน)</td></tr> <tr><td colspan="2"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">*** กรุณาเลือกวันที่เริ่มต้น-สิ้นสุด<br> ในการประกาศข่าวบนเว็บ</font></td></tr> <tr><td width="14%"> จาก</td> <td width="86%"> <? if($oRs->AnID!="" && $oRs->AnID!="0"){ echo abbreDate2($oRs->DrsstartDatePost,'/'); }else{ if($DrsstartDatePost!=""){ ?> <script>DateInput('DrsstartDatePost', true, 'DD/MM/YYYY','<?php echo $DrsstartDatePost;?>');</script> <? }else{ if($oRs->DrsstartDatePost !="0000-00-00"){ ?> <script>DateInput('DrsstartDatePost', true, 'DD/MM/YYYY','<?php echo splitDateDb($oRs->DrsstartDatePost,"/");?>');</script> <? }else{?> <script>DateInput('DrsstartDatePost', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> <? } } } ?></td></tr> <tr><td> ถึง</td> <td> <? if($oRs->AnID!="" && $oRs->AnID!="0"){ echo abbreDate2($oRs->DrsendDatePost,'/'); }else{ if($DrsendDatePost!=""){ ?> <script>DateInput('DrsendDatePost', true, 'DD/MM/YYYY','<?php echo $DrsendDatePost;?>');</script> <? }else{ if($oRs->DrsstartDatePost !="0000-00-00"){ ?> <script>DateInput('DrsendDatePost', true, 'DD/MM/YYYY','<?php echo splitDateDb($oRs->DrsendDatePost,"/");?>');</script> <? }else{?> <script>DateInput('DrsendDatePost', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> <? } } } ?> </td></tr> </table> </td> </tr> <tr height=22 > <td width="31%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>การบันทึก<br> ต่อเนื่อง</strong></td> <td width="1%" align="center" ><strong>:</strong></td> <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="center"> <textarea name="DrsSend" id="DrsSend" cols="30" rows="5" <? echo showtextarea('DrsSend',$InputThai); ?>><? if($DrsSend!=""){ echo $DrsSend; }?></textarea></td> </tr> <tr height=40> <td width="31%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>ผู้บันทึก/<br> ผู้ส่งหนังสือ</strong></td> <td width="1%" align="center"><strong>:</strong></td> <td width="68%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>" align="center"> <? $oPS->SearchByKey($mypersonId); $oPS->GetRecord(); ?> <? echo " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName."<br>"; ?> <? $oDlp->SearchByKey($oDlc->DlpID); $oDlp->GetRecord(); echo " (".$oDlp->DlpName.")"; ?> </td> </tr> <tr> <td colspan="3"><br> <fieldset> <legend>กำหนดระยะเวลาดำเนินการ</legend> <table width="100%"> <tr> <td width="35%"> <input name="checkDocSpeedDate" id="checkDocSpeedDate" type="checkbox" value="Y" <? if($checkDocSpeedDate==""){ if($oRs->DrsDocDueDate !="0000-00-00"){ echo "checked"; } }else{ if($checkDocSpeedDate=="Y"){ echo "checked"; } }?>> <strong>ภายในวันที่ </strong></td> <td width="65%"> <? if($DocSpeedLevelDueDate!=""){ ?> <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo $DocSpeedLevelDueDate;?>');</script> <? }else{ if($oRs->DrsDocDueDate !="0000-00-00"){ ?> <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo splitDateDb($oRs->DrsDocDueDate,"/");?>');</script> <? }else{?> <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> <? } } ?> </td> </tr> </table> </fieldset></td> </tr> </table> </body> </html>
|