Viewing file: showSelectDIb_RegisSignDoc.php (3.47 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?PHP include_once "includefile.php"; if($showajax=="1"){
header("content-type: application/x-javascript; charset=TIS-620");
include_once("../../class/clsConnection.php"); include_once("../../class/clsDB.php"); include_once "../global.php"; include_once "../class/clsDocInboxStaff.php"; include_once "../class/clsDocuments.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDbxS = new DocInboxStaff($oC); $oDbxS1 = new DocInboxStaff($oC); $oDbxS3 = new DocInboxStaff($oC); $oDbxS2 = new DocInboxStaff($oC); $oDoc = new Documents($oC);
if($caseadd==1){ $oDoc->SearchByKey($DocID); $oDoc->GetRecord(); $oDoc->Edit();
if($selectforfolderstaff=='DIbHeader'){ $oDoc->DIbHeader=$selectfolderstaff; $DIbHeader=$oDoc->DIbHeader; }else if($selectforfolderstaff=='DIbStaff'){ $oDoc->DIbStaff=$selectfolderstaff; $DIbStaff=$oDoc->DIbStaff; } $oDoc->Save();
} }else{ include_once "includefile.php"; $dlcid=$DLCID; $dlpid=$oDlc->DlpID; $deptId=$oDlc->deptId; $docGroup=$oDlc->docGroup; $DlpSign=$oDlc->DlcSign; $DIbHeader=$oDoc->DIbHeader; $DIbStaff=$oDoc->DIbStaff; $DocID=$oDoc->DocID; } ?> <table width="93%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" > <tr><td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_20"]; ?>" colspan="2" height="22"> <strong><img src="../picture/folder_open.gif" border="0" > จัดเก็บหนังสือในโฟลเดอร์</strong></td></tr> <tr> <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_20"]; ?>" colspan="2" height="22"> (หากไม่เลือกจัดเก็บในขั้นตอนนี้ สามารถเลือกในขั้นตอนถัดไปได้)</td> </tr> <tr><td bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_20"]; ?>"> เลือกจัดเก็บหนังสือในโฟลเดอร์ <select name="selectfolderstaff" id="selectfolderstaff"> <option value="0" <? if($oDbxS->DocInboxSID==0){ echo 'selected'; } ?>>-- ยังไม่ต้องการจัดเก็บ --</option> <? $oDbxS->SearchByNoDelFolder($dlcid,$dlpid,$deptId,$docGroup); while($oDbxS->GetRecord()){ ?> <option value="<? echo $oDbxS->DocInboxSID; ?>" <? if($DlpSign=="Y"){ if($oDbxS->DocInboxSID==$DIbHeader){ echo 'selected'; } }else{ if($oDbxS->DocInboxSID==$DIbStaff){ echo 'selected'; } } ?>> <? echo $oDbxS->InboxName; ?></option> <? } ?> </select> <? if($DlpSign=="Y"){ ?><input type="hidden" name="selectforfolderstaff" value="<? echo 'DIbHeader'; ?>" id="selectforfolderstaff"><? }else{ ?><input type="hidden" name="selectforfolderstaff" value="<? echo 'DIbStaff'; ?>" id="selectforfolderstaff"><? } ?> <input name="บันทึก" value="บันทึก" type="button" onClick="showSelectDIb_RegisSignDoc()"> </td></tr> </table> <input name="dlcid" id="dlcid" type=hidden value="<? echo $dlcid; ?>"> <input name="dlpid" id="dlpid" type=hidden value="<? echo $dlpid; ?>"> <input name="deptId" id="deptId" type=hidden value="<? echo $deptId; ?>"> <input name="docGroup" id="docGroup" type=hidden value="<? echo $docGroup; ?>"> <input name="DlpSign" id="DlpSign" type=hidden value="<? echo $DlpSign; ?>"> <input name="DIbHeader" id="DIbHeader" type=hidden value="<? echo $DIbHeader; ?>"> <input name="DIbStaff" id="DIbStaff" type=hidden value="<? echo $DIbStaff; ?>"> <input name="DocID" id="DocID" type=hidden value="<? echo $DocID; ?>">
|