Viewing file: getinfo.php (2.32 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php header("content-type: application/x-javascript; charset=TIS-620"); include_once "includefile.php"; ?> <script src="getinfo.js"></script> <? 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); if($_GET["fn"]=="add"){ $str = $_GET["st_val"]; $store_sendToPs_exp = explode("," ,$str); $store_sendToPs_exp_count=count($store_del_exp); $store_sendToPs_exp_count=count($store_sendToPs_exp); for($j=0; $j<$store_sendToPs_exp_count;$j++){ $t_id = trim($store_sendToPs_exp[$j]); if(strlen($t_id)==0){ }else{ $oStmp->SearchByPsIDDrsID($t_id,$DrsIDshow); if($oStmp->GetRecord()==0){ $oStmp->AddNew(); $oStmp->DtPsID=$oStmp->GetNextCode(); $oStmp->DrsID=$DrsIDshow; $oStmp->PsID=$t_id; $oStmp->Save(); } } } }else if($_GET["fn"]=="delete"){ $oStmp->SearchByDtPsID($DtPsID); $oStmp->GetRecord(); $oStmp->Delete(); }
$str2.="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=".$GLOBALS['COLOR_BG_TD_16'].">"; $i=0; $checkcountps=0; $oStmp->SearchByDrsID($DrsIDshow); while($oStmp->GetRecord()){ $i++; $oPS5->SearchByKey($oStmp->PsID); $oPS5->GetRecord(); $str2.="<tr><td width=\"83%\" height=22 bgcolor=".$GLOBALS["COLOR_BG_TD_16"]."> "; $str2.=GetPrefix($oPS5->prefixId).$oPS5->fName." ".$oPS5->lName; $str2.="</td><td width=\"17%\" bgcolor=".$GLOBALS["COLOR_BG_TD_16"]." align=\"center\">"; $str2.="<img src=\"../picture/cancel.gif\" title=\"?\" border=\"0\" style=\"cursor:pointer;\" onclick=\"ShowInfo2(".$oStmp->DtPsID.",".$DrsIDshow.")\"></td></tr>"; } if($i==0){ $str2.="<tr><td height=22 bgcolor=".$GLOBALS["COLOR_BG_TD_16"]."> <strong>-</strong></td>"; $str2.="<td height=22 bgcolor=".$GLOBALS["COLOR_BG_TD_16"]." > </td></tr>"; } $str2.="</table>"; $checkcountps=$i; echo $str2;
?>
|