include_once("../../class/clsConnection.php"); include_once("../../class/clsDB.php"); include_once "../global.php"; include_once "../class/clsPerson.php"; include_once "getPrefix.php"; include_once "../class/clsDocSendtoPsTmp.php"; $oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']); $oStmp=new DocSendToPsTmp($oC); $oPS5 = new person($oC); $q=$_GET["q"]; $del=$_GET["del"]; $DrsIDshow=$_GET["DrsIDshow"]; $DtPsID=$_GET["DtPsID"]; //$sendToPs=@$_GET["sendToPs"] or exit("No Info Selected"); $sendToPs=$_GET["sendToPs"]; $str2=""; if($del!="1"){ //Get Info From Selection if(isset($sendToPs)){ foreach($sendToPs as $key){ $oStmp->SearchByPsIDDrsID($key,$DrsIDshow); if($oStmp->GetRecord()==0){ $oStmp->AddNew(); $oStmp->DtPsID=$oStmp->GetNextCode(); $oStmp->DrsID=$DrsIDshow; $oStmp->PsID=$key; $oStmp->Save(); } } } }else{ $oStmp->SearchByDtPsID($DtPsID); $oStmp->GetRecord(); $oStmp->Delete(); } $str2.="
"; $str2.=GetPrefix($oPS5->prefixId).$oPS5->fName." ".$oPS5->lName; $str2.=" | "; $str2.="DtPsID.",".$DrsIDshow.")\"> |
- | "; $str2.="