<?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="";

    
$str.="<table width=\"94%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=".$GLOBALS['COLOR_BG_TD_17'].">";
    
$oPS4->SearchByName($name);
    while(
$oPS4->GetRecord()){
        if((
$i%2) == 0)
            
$str.="<tr>";
        else
            
$str.="<tr bgcolor=".$GLOBALS['COLOR_BG_TABLE_8'].">";

    
$str.="<td>&nbsp;&nbsp;";
    
$str.="<input name=sendToPs[".$oPS4->personId."] type=\"checkbox\" value=".$oPS4->personId.">";
    
$str.="&nbsp;&nbsp;".GetPrefix($oPS4->prefixId).$oPS4->fName."&nbsp;".$oPS4->lName."</td></tr>";
    } 
    
$str.="</table>";
    echo 
$str;
?>