foreach($acmdata->result() as $acmrow){
foreach($pmdata->result() as $pmrow){
echo '<TD align=left>';
if($authority=='a')
echo anchor('assocpersonmaster/login_acmup?id='.$row->PersonID,$row->PersonID);
else
echo $acmrow->PersonID;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->ChineseName;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->Sex;
echo '</TD>';
echo '<TD align=left>';
echo $acmrow->Status;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->PlaceID;
echo '</TD>';
echo '<TD align=left>';
echo $acmrow->AssocChairType;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->OfficeAreaNo.$pmrow->OfficeTelNo;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->HomeAreaNo.$pmrow->HomeTelNo;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->FaxNo;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->Cellular1;
echo '</TD>';
echo '<TD align=left>';
echo $pmrow->Cellular2;
echo '</TD>';
echo '<TD align=left>';
echo $acmrow->AuditResult;
echo '</TD></TR>';
}
}