Viewing file: sendTSR.php (1.99 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include_once("../../class/clsConnection.php"); include_once("../../class/clsDB.php"); include_once "../global.php"; include_once "../class/clsSendReceive.php"; include_once "../class/clsCollegeDetail.php"; include_once "../class/clsSendNewDocSR.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']); $oTsr = new sendreceive($oC); $oCd = new collegedetail($oC); $oSn = new sendnewdocsr($oC); $oSn2 = new sendnewdocsr($oC);
if($fn=='s3'){ $oTsr->SearchByKey($tsr_id); $oTsr->GetRecord(); $oTsr->Edit(); $oTsr->tsr_status='s3'; $oTsr->Save(); echo 'mr'; $oCd->SearchByKey($oTsr->tsr_to_node); $oCd->GetRecord(); $msg='?fn=r4&tsr_id_send='.$tsr_id; if($oTsr->tsr_to_node==99){ $folder=$GLOBALS["FOLDERFORSEND1"]; }else if($oTsr->tsr_to_node==8){ $folder=$GLOBALS["FOLDERFORSEND3"]; }else{ $folder=$GLOBALS["FOLDERFORSEND2"]; } $path_send='http://'.$oCd->collegeHost.'/'.$folder.'/'.'eoffice/admin/receiveTSR.php'.$msg; $res=file_get_contents($path_send); } if($fn=='setreceive'){ $tsr_receivedate=str_replace ('_',' ',$tsr_receivedate);
$oTsr->SearchBytsr_id_tsr_fr_node($tsr_id,$tsr_fr_node); $oTsr->GetRecord(); $oTsr->Edit(); $oTsr->tsr_status='s3'; $oTsr->tsr_receive=$tsr_receive; $oTsr->tsr_receivedate=$tsr_receivedate; $oTsr->Save(); } if($fn=='s3SendDoc'){ $oSn->SearchByKey($sn_id); $oSn->GetRecord(); $oSn->Edit(); $oSn->sn_status='s3'; $oSn->Save(); echo 'mr'; $oCd->SearchByKey($oSn->sn_to_node); $oCd->GetRecord(); $msg='?fn=r4SendDoc&sn_id_send='.$tsr_id; if($oSn->sn_to_node==99){ $folder=$GLOBALS["FOLDERFORSEND1"]; }else if($oSn->sn_to_node==8){ $folder=$GLOBALS["FOLDERFORSEND3"]; }else{ $folder=$GLOBALS["FOLDERFORSEND2"]; } $path_send='http://'.$oCd->collegeHost.'/'.$folder.'/'.'eoffice/admin/receiveTSR.php'.$msg; $res=file_get_contents($path_send); }
?>
|