<?php
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/clsPerson.php";
include_once 
"getPrefix.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oPS4 = new person($oC);
$str="";
    
$i=0;
    
$str.="<table width=\"94%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=".$GLOBALS['COLOR_BG_TD_17'].">";
     if(
$name!=''){
    
$oPS4->SearchByName($name);
    while(
$oPS4->GetRecord()){
        
$str.="<tr><td>&nbsp;&nbsp;";
        
$str.="<input name=sendToPs[] id=sendToPs[".$oPS4->personId."] type=\"checkbox\" value=".$oPS4->personId.">";
        
$str.="&nbsp;&nbsp;".GetPrefix($oPS4->prefixId).$oPS4->fName."&nbsp;".$oPS4->lName."</td></tr>";
    
$i++; } }
    
$str.="</table>";
    echo 
$str;
?>