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.=""; $i=0; $checkcountps=0; $oStmp->SearchByDrsID($DrsIDshow); while($oStmp->GetRecord()){ $i++; $oPS5->SearchByKey($oStmp->PsID); $oPS5->GetRecord(); $str2.=""; } if($i==0){ $str2.=""; $str2.=""; } $str2.="
      "; $str2.=GetPrefix($oPS5->prefixId).$oPS5->fName." ".$oPS5->lName; $str2.=""; $str2.="\"ΕΊ\"DtPsID.",".$DrsIDshow.")\">
    - 
"; $checkcountps=$i; echo $str2; ?>