Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/members/saaceadmin/
Upload File :
Current File : /var/www/cesa.co.za/members/saaceadmin/ADdisplayMemberFirm.php4

<html>
<head>
<title>Annual Declaration Admin page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.DarkShading
{
BACKGROUND-COLOR: #dceddc
}
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?php
include("../inc/conf.inc");
        mysql_connect("$server","$user","$pass") or die("Unable to connect to SQL server");
        mysql_select_db("$db") or die("Unable to select database");
		
		// ** ADEC_TBLMEMBERFIRMS
		// **********************
		
	$query = "SELECT FirmID, Prev_FirmID, FirmName, PIUnderwriter, LevelOfCover, FormOfIncorporation, `Quality Management`
	, `Date of last peer review`, URL
	, Acoustics, Agricultural, BuildingServices, Chemical, Civil, Development, Electrical, Electronic, Environmental
	, Geotechnical, Industrial, Mechanical, Marine, Mining, Process, Structural, Transportation, Architecture
	, RuralDevelopment, ProjectManagement, QuantitySurveying, TownPlanning, Multidisciplinary, DisputeResolution
	, ExpertWitness, InformationSystems, FacilitiesManagement, GIS
	, AcousticsName, AgriculturalName, BuildingServicesName, ChemicalName, CivilName, DevelopmentName
	, ElectricalName, ElectronicName, EnvironmentalName, GeotechnicalName, IndustrialName, MechanicalName
	, MarineName, ProcessName, StructuralName, TransportationName, ArchitectureName, RuralDevelopmentName
	, ProjectManagementName, QuantitySurveyingName, TownPlanningName, MultidisciplinaryName
	, DisputeResolutionName, ExpertWitnessName, InformationSystemsName, FacilitiesManagementName, GISName
	, AcousticsProject, AgriculturalProject, BuildingServicesProject, ChemicalProject, CivilProject, DevelopmentProject
	, ElectricalProject, ElectronicProject, EnvironmentalProject, GeotechnicalProject, IndustrialProject, MechanicalProject
	, MarineProject, ProcessProject, StructuralProject, TransportationProject, ArchitectureProject, RuralDevelopmentProject
	, ProjectManagementProject, QuantitySurveyingProject, TownPlanningProject
	, DisputeResolutionProject, ExpertWitnessProject, InformationSystemsProject, FacilitiesManagementProject, GISProject
	, QMSPlan, QMSDocs, QMSISOComply, QMSISOCert
	, QMSOffices, QMSConsult, QMSCertBody, QMSISOCertDate, QMSImplemented, QMSImplFully, QMSImplPart, QMSAssess
	, QMSUseConsult, QMSIntend, DeclarationReceived,MainFirmInvoice, GroupFirmsInvoice FROM ADec_tblMemberFirms WHERE FirmID = '$FirmID'";

	      $result = mysql_query($query) or die("Select of id Failed");
		  $rs = mysql_fetch_array($result);
		  $FirmID = $rs['FirmID'];
		  $Prev_FirmID = $rs['Prev_FirmID'];
		  $Mx1 = $rs['MainFirmInvoice'];
		  $My1 = $rs['GroupFirmsInvoice'];		  
		  $Ma1 = $rs['FirmName'];
		  $Mb1 = $rs['PIUnderwriter'];
		  $Mc1 = $rs['LevelOfCover']; 
		  $Md1 = $rs['FormOfIncorporation']; 
		  $Me1 = $rs['URL']; 
		  $Mf1 = $rs['QMSPlan']; 
		  $Mg1 = $rs['QMSDocs']; 
		  $Mh1 = $rs['QMSISOComply']; 
		  $Mi1 = $rs['QMSISOCert']; 
		  $Mj1 = $rs['QMSISOCertDate'].""; 
            	  if (substr($Mj1,0,10) == "Jan 1 1900") { $Mj1 = ""; }
		  $Mk1 = $rs['QMSOffices']; 
		  $Ml1 = $rs['QMSConsult']; 
		  $Mm1 = $rs['QMSCertBody']; 
		  $Mn1 = date("M d Y g:iA");
		  
		  $Q2 = $rs['QMSImplemented'];
		  $Q3 = $rs['QMSImplFully'];
		  $Q4 = $rs['QMSImplPart'];
		  $Q5 = $rs['QMSAssess'];
		  $Q6 = $rs['QMSUseConsult'];
		  $Q7 = $rs['QMSIntend'];
		  		  
		  $M1 = $rs['Acoustics'];
	      $M2 = $rs['Agricultural'];
          $M3 = $rs['BuildingServices'];	
	      $M4 = $rs['Chemical'];	
      	  $M5 = $rs['Civil'];
      	  $M6 = $rs['Development'];
      	  $M7 = $rs['Electrical'];
      	  $M8 = $rs['Electronic'];
      	  $M9 = $rs['Environmental'];
          $M10 = $rs['Geotechnical'];
          $M11 = $rs['Industrial'];
          $M12 = $rs['Mechanical'];
          $M13 = $rs['Marine'];
          $M14 = $rs['Mining'];
          $M15 = $rs['Process'];
          $M16 = $rs['Structural'];
          $M17 = $rs['Transportation'];
          $M18 = $rs['Architecture'];
          $M19 = $rs['RuralDevelopment'];
          $M20 = $rs['ProjectManagement'];
          $M21 = $rs['QuantitySurveying'];
          $M22 = $rs['TownPlanning'];
          $M23 = $rs['DisputeResolution'];
          $M24 = $rs['ExpertWitness'];
          $M25 = $rs['InformationSystems'];
          $M26 = $rs['FacilitiesManagement'];
          $M27 = $rs['GIS'];

		  $A1 = $rs['AcousticsName'];
	      $A2 = $rs['AgriculturalName'];
          $A3 = $rs['BuildingServicesName'];	
	      $A4 = $rs['ChemicalName'];	
      	  $A5 = $rs['CivilName'];
      	  $A6 = $rs['DevelopmentName'];
      	  $A7 = $rs['ElectricalName'];
      	  $A8 = $rs['ElectronicName'];
      	  $A9 = $rs['EnvironmentalName'];
          $A10 = $rs['GeotechnicalName'];
          $A11 = $rs['IndustrialName'];
          $A12 = $rs['MechanicalName'];
          $A13 = $rs['MarineName'];
          $A14 = $rs['MiningName'];
          $A15 = $rs['ProcessName'];
          $A16 = $rs['StructuralName'];
          $A17 = $rs['TransportationName'];
          $A18 = $rs['ArchitectureName'];
          $A19 = $rs['RuralDevelopmentName'];
          $A20 = $rs['ProjectManagementName'];
          $A21 = $rs['QuantitySurveyingName'];
          $A22 = $rs['TownPlanningName'];
          $A23 = $rs['DisputeResolutionName'];
          $A24 = $rs['ExpertWitnessName'];
          $A25 = $rs['InformationSystemsName'];
          $A26 = $rs['FacilitiesManagementName'];
          $A27 = $rs['GISName'];		  

	$P1 = $rs['AcousticsProject']."";
	$P2 = $rs['AgriculturalProject']."";
	$P3 = $rs['BuildingServicesProject']."";	
	$P4 = $rs['ChemicalProject']."";	
	$P5 = $rs['CivilProject']."";
	$P6 = $rs['DevelopmentProject']."";
	$P7 = $rs['ElectricalProject']."";
	$P8 = $rs['ElectronicProject']."";
	$P9 = $rs['EnvironmentalProject']."";
	$P10 = $rs['GeotechnicalProject']."";
	$P11 = $rs['IndustrialProject']."";
	$P12 = $rs['MechanicalProject']."";
	$P13 = $rs['MarineProject']."";
	$P14 = $rs['MiningProject']."";
	$P15 = $rs['ProcessProject']."";
	$P16 = $rs['StructuralProject']."";
	$P17 = $rs['TransportationProject']."";
	$P18 = $rs['ArchitectureProject']."";
	$P19 = $rs['RuralDevelopmentProject']."";
	$P20 = $rs['ProjectManagementProject']."";
	$P21 = $rs['QuantitySurveyingProject']."";
	$P22 = $rs['TownPlanningProject']."";
	$P23 = $rs['DisputeResolutionProject']."";
	$P24 = $rs['ExpertWitnessProject']."";
	$P25 = $rs['InformationSystemsProject']."";
	$P26 = $rs['FacilitiesManagementProject']."";
	$P27 = $rs['GISProject']."";

	      // Set defaults ****************
		  //******************************
		  // Set default values
$checked1 = "";
$checked2 = "";
$checked3 = "";
$checked4 = "";
$checked5 = "";
$checked6 = "";
$checked7 = "";
$checked8 = "";
$checked9 = "";
$checked10 = "";
$checked11 = "";
$checked12 = "";
$checked13 = "";
$checked14 = "";
$checked15 = "";
$checked16 = "";
$checked17 = "";
$checked18 = "";
$checked19 = "";
$checked20 = "";
$checked21 = "";
$checked22 = "";
$checked23 = "";
$checked24 = "";
$checked25 = "";
$checked26 = "";
$checked27 = "";

// Check to see if the information is selected
if ($M1 == "1"){ $checked1 = "checked"; }
if ($M2 == "1"){ $checked2 = "checked"; }
if ($M3 == "1"){ $checked3 = "checked"; }
if ($M4 == "1"){ $checked4 = "checked"; }
if ($M5 == "1"){ $checked5 = "checked"; }
if ($M6 == "1"){ $checked6 = "checked"; }
if ($M7 == "1"){ $checked7 = "checked"; }
if ($M8 == "1"){ $checked8 = "checked"; }
if ($M9 == "1"){ $checked9 = "checked"; }
if ($M10 == "1"){ $checked10 = "checked"; }
if ($M11 == "1"){ $checked11 = "checked"; }
if ($M12 == "1"){ $checked12 = "checked"; }
if ($M13 == "1"){ $checked13 = "checked"; }
if ($M14 == "1"){ $checked14 = "checked"; }
if ($M15 == "1"){ $checked15 = "checked"; }
if ($M16 == "1"){ $checked16 = "checked"; }
if ($M17 == "1"){ $checked17 = "checked"; }
if ($M18 == "1"){ $checked18 = "checked"; }
if ($M19 == "1"){ $checked19 = "checked"; }
if ($M20 == "1"){ $checked20 = "checked"; }
if ($M21 == "1"){ $checked21 = "checked"; }
if ($M22 == "1"){ $checked22 = "checked"; }
if ($M23 == "1"){ $checked23 = "checked"; }
if ($M24 == "1"){ $checked24 = "checked"; }
if ($M25 == "1"){ $checked25 = "checked"; }
if ($M26 == "1"){ $checked26 = "checked"; }
if ($M27 == "1"){ $checked27 = "checked"; }
		  
		  $Bquery = "SELECT OfficeID, FirmID FROM ADec_tblMemberFirmOffices WHERE FirmID = '$FirmID'";
	      $Bresult = mysql_query($Bquery) or die("Select of id Failed");
		  $bs = mysql_fetch_array($Bresult);
		  $OfficeID = $bs['OfficeID'];
		  
		  $Cquery = "SELECT ContactsID, OfficeID, MandatedPrincipal FROM ADec_OfficeContacts WHERE OfficeID = '$OfficeID'";
	      $Cresult = mysql_query($Cquery) or die("Select of id Failed");
		  $ds = mysql_fetch_array($Cresult);
		  $ContactsID = $ds['ContactsID'];

$Dquery = "SELECT * FROM ADec_Done WHERE (RefID = '$FirmID') AND (RefDoc = 'AnnualDeclaration')";
	      $Dresult = mysql_query($Dquery) or die("Select of id Failed");
		  $ds = mysql_fetch_array($Dresult);
		  $CompletedDate = $ds['ADecDate'];

		// ** TBLMEMBERFIRMS
		// **********************		  
		  $Xquery = "SELECT FirmID, FirmName, PIUnderwriter, LevelOfCover, FormOfIncorporation, URL, QMSPlan, QMSDocs, QMSISOComply, QMSISOCert, QMSISOCertDate, QMSOffices, QMSConsult, QMSCertBody, Acoustics, Agricultural, BuildingServices, Chemical, Civil, Development, Electrical, Electronic, Environmental, Geotechnical, Industrial, Mechanical, Marine, Mining, Process, Structural, Transportation, Architecture, RuralDevelopment, ProjectManagement, QuantitySurveying, TownPlanning, Multidisciplinary, DisputeResolution, ExpertWitness, InformationSystems, FacilitiesManagement, GIS, AcousticsName, AgriculturalName, BuildingServicesName, ChemicalName, CivilName, DevelopmentName, ElectricalName, ElectronicName, EnvironmentalName, GeotechnicalName, IndustrialName, MechanicalName, MarineName, MiningName, ProcessName, StructuralName, TransportationName, ArchitectureName, RuralDevelopmentName, ProjectManagementName, QuantitySurveyingName, TownPlanningName, MultidisciplinaryName, DisputeResolutionName, ExpertWitnessName, InformationSystemsName, FacilitiesManagementName, GISName,MainFirmInvoice, GroupFirmsInvoice FROM tblMemberFirms WHERE FirmID = '$Prev_FirmID'";
	      $Xresult = mysql_query($Xquery) or die("Select of id Failed");
		  $ps = mysql_fetch_array($Xresult);
		  $n1 = $ps['Acoustics'];
	      $n2 = $ps['Agricultural'];
          $n3 = $ps['BuildingServices'];	
	      $n4 = $ps['Chemical'];	
      	  $n5 = $ps['Civil'];
      	  $n6 = $ps['Development'];
      	  $n7 = $ps['Electrical'];
      	  $n8 = $ps['Electronic'];
      	  $n9 = $ps['Environmental'];
          $n10 = $ps['Geotechnical'];
          $n11 = $ps['Industrial'];
          $n12 = $ps['Mechanical'];
          $n13 = $ps['Marine'];
          $n14 = $ps['Mining'];
          $n15 = $ps['Process'];
          $n16 = $ps['Structural'];
          $n17 = $ps['Transportation'];
          $n18 = $ps['Architecture'];
          $n19 = $ps['RuralDevelopment'];
          $n20 = $ps['ProjectManagement'];
          $n21 = $ps['QuantitySurveying'];
          $n22 = $ps['TownPlanning'];
          $n23 = $ps['DisputeResolution'];
          $n24 = $ps['ExpertWitness'];
          $n25 = $ps['InformationSystems'];
          $n26 = $ps['FacilitiesManagement'];
          $n27 = $ps['GIS'];
		  $x1 = $ps['AcousticsName'];
	      $x2 = $ps['AgriculturalName'];
          $x3 = $ps['BuildingServicesName'];	
	      $x4 = $ps['ChemicalName'];	
      	  $x5 = $ps['CivilName'];
      	  $x6 = $ps['DevelopmentName'];
      	  $x7 = $ps['ElectricalName'];
      	  $x8 = $ps['ElectronicName'];
      	  $x9 = $ps['EnvironmentalName'];
          $x10 = $ps['GeotechnicalName'];
          $x11 = $ps['IndustrialName'];
          $x12 = $ps['MechanicalName'];
          $x13 = $ps['MarineName'];
          $x14 = $ps['MiningName'];
          $x15 = $ps['ProcessName'];
          $x16 = $ps['StructuralName'];
          $x17 = $ps['TransportationName'];
          $x18 = $ps['ArchitectureName'];
          $x19 = $ps['RuralDevelopmentName'];
          $x20 = $ps['ProjectManagementName'];
          $x21 = $ps['QuantitySurveyingName'];
          $x22 = $ps['TownPlanningName'];
          $x23 = $ps['DisputeResolutionName'];
          $x24 = $ps['ExpertWitnessName'];
          $x25 = $ps['InformationSystemsName'];
          $x26 = $ps['FacilitiesManagementName'];
          $x27 = $ps['GISName'];				  
	      // Set defaults ****************
		  //******************************
		  // Set default values
          $nchecked1 = "";
          $nchecked2 = "";
          $nchecked3 = "";
          $nchecked4 = "";
          $nchecked5 = "";
          $nchecked6 = "";
          $nchecked7 = "";
          $nchecked8 = "";
          $nchecked9 = "";
          $nchecked10 = "";
          $nchecked11 = "";
          $nchecked12 = "";
          $nchecked13 = "";
          $nchecked14 = "";
          $nchecked15 = "";
          $nchecked16 = "";
          $nchecked17 = "";
          $nchecked18 = "";
          $nchecked19 = "";
          $nchecked20 = "";
          $nchecked21 = "";
          $nchecked22 = "";
          $nchecked23 = "";
          $nchecked24 = "";
          $nchecked25 = "";
          $nchecked26 = "";
          $nchecked27 = "";

          // Check to see if the information is selected
          if ($n1 == "1"){ $nchecked1 = "checked"; }
          if ($n2 == "1"){ $nchecked2 = "checked"; }
          if ($n3 == "1"){ $nchecked3 = "checked"; }
          if ($n4 == "1"){ $nchecked4 = "checked"; }
          if ($n5 == "1"){ $nchecked5 = "checked"; }
          if ($n6 == "1"){ $nchecked6 = "checked"; }
          if ($n7 == "1"){ $nchecked7 = "checked"; }
          if ($n8 == "1"){ $nchecked8 = "checked"; }
          if ($n9 == "1"){ $nchecked9 = "checked"; }
          if ($n10 == "1"){ $nchecked10 = "checked"; }
          if ($n11 == "1"){ $nchecked11 = "checked"; }
          if ($n12 == "1"){ $nchecked12 = "checked"; }
          if ($n13 == "1"){ $nchecked13 = "checked"; }
          if ($n14 == "1"){ $nchecked14 = "checked"; }
          if ($n15 == "1"){ $nchecked15 = "checked"; }
          if ($n16 == "1"){ $nchecked16 = "checked"; }
          if ($n17 == "1"){ $nchecked17 = "checked"; }
          if ($n18 == "1"){ $nchecked18 = "checked"; }
          if ($n19 == "1"){ $nchecked19 = "checked"; }
          if ($n20 == "1"){ $nchecked20 = "checked"; }
          if ($n21 == "1"){ $nchecked21 = "checked"; }
          if ($n22 == "1"){ $nchecked22 = "checked"; }
          if ($n23 == "1"){ $nchecked23 = "checked"; }
          if ($n24 == "1"){ $nchecked24 = "checked"; }
          if ($n25 == "1"){ $nchecked25 = "checked"; }
          if ($n26 == "1"){ $nchecked26 = "checked"; }
          if ($n27 == "1"){ $nchecked27 = "checked"; }
if ($action == "ACCEPT")
{
$updatequery = "UPDATE tblMemberFirms SET 
FirmName = '$Ma1', 
PIUnderwriter = '$Mb1', 
LevelOfCover = CONVERT(MONEY,'$Mc1'), 
FormOfIncorporation = '$Md1', 
URL = '$Me1', 
QMSPlan = '$Mf1', 
QMSDocs = '$Mg1', 
QMSISOComply = '$Mh1', 
QMSISOCert = '$Mi1', 
QMSISOCertDate = '$Mj1', 
QMSOffices = '$Mk1', 
QMSConsult = '$Ml1', 
QMSCertBody = '$Mm1', 
QMSImplemented = '$Q2',
QMSImplFully = '$Q3',
QMSImplPart = '$Q4',
QMSAssess = '$Q5',
QMSUseConsult = '$Q6',
QMSIntend = '$Q7',
DeclarationReceived = '$Mn1',
Acoustics = '$M1', 
Agricultural = '$M2', 
BuildingServices = '$M3', 
Chemical = '$M4', 
Civil = '$M5', 
Development = '$M6', 
Electrical = '$M7', 
Electronic = '$M8', 
Environmental = '$M9', 
Geotechnical = '$M10', 
Industrial = '$M11', 
Mechanical = '$M12', 
Marine = '$M13', 
Mining = '$M14', 
Process = '$M15', 
Structural = '$M16', 
Transportation = '$M17', 
Architecture = '$M18', 
RuralDevelopment = '$M19', 
ProjectManagement = '$M20', 
QuantitySurveying = '$M21', 
TownPlanning = '$M22', 
DisputeResolution = '$M23', 
ExpertWitness = '$M24', 
InformationSystems = '$M25', 
FacilitiesManagement = '$M26', 
GIS = '$M27', 
AcousticsName = '$A1', 
AgriculturalName = '$A2', 
BuildingServicesName = '$A3', 
ChemicalName = '$A4', 
CivilName = '$A5', 
DevelopmentName = '$A6', 
ElectricalName = '$A7', 
ElectronicName = '$A8', 
EnvironmentalName = '$A9', 
GeotechnicalName = '$A10', 
IndustrialName = '$A11', 
MechanicalName = '$A12', 
MarineName = '$A13', 
MiningName = '$A14', 
ProcessName = '$A15', 
StructuralName = '$A16', 
TransportationName = '$A17', 
ArchitectureName = '$A18', 
RuralDevelopmentName = '$A19', 
ProjectManagementName = '$A20', 
QuantitySurveyingName = '$A21', 
TownPlanningName = '$A22', 
DisputeResolutionName = '$A23', 
ExpertWitnessName = '$A24', 
InformationSystemsName = '$A25', 
FacilitiesManagementName = '$A26', 
GISName = '$A27',
MainFirmInvoice = '$Mx1', 
GroupFirmsInvoice = '$My1' WHERE FirmID = '$Prev_FirmID'";
$Upresult = mysql_query($updatequery) or die("Update of records failed");

$updatequery2 = "INSERT INTO ADec_Done(RefID,RefType,RefDoc,ADecDate) VALUES('$FirmID','FirmID','UPDATED','$Mn1')";
$Upresult2 = mysql_query($updatequery2) or die("Update of records failed");		 

}
if ($action == "DECLINE")
{
$updatequery2 = "INSERT INTO ADec_Done(RefID,RefType,RefDoc,ADecDate) VALUES('$FirmID','FirmID','DECLINED','$Mn1')";
$Upresult2 = mysql_query($updatequery2) or die("Update of records failed");
}
		?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td bgcolor="#CCCCCC"> 
      <?php include( 'inc/menu.inc' ); ?>
    </td>
  </tr>
  <tr> 
    <td>
      <h3><font face="sans-serif" color="#666666">Display Member Firm Details:</font><font face="sans-serif"> 
        <?php echo $rs['FirmName']; ?></font></h3>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><b><font face="sans-serif" size="2">Documents Completed 
            <?php
		  $Dquery = "SELECT DISTINCT RefDoc FROM ADec_Done WHERE RefID = '$FirmID' AND RefType = 'FirmID'";
	      $Dresult = mysql_query($Dquery) or die("Select of id Failed");
		  while ($ds = mysql_fetch_array($Dresult))
		  {
		  echo " : ".$ds['RefDoc']." ";
		  }
		  ?>
            </font><font face="sans-serif"> </font> </b> </td>
        </tr>
      </table>
      <table width="100%" border="1" cellspacing="0" cellpadding="0" id="tblShaded" name="tblShaded">
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF"></font></b></td>
          <td width="36%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Original</font></b></td>
          <td width="38%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">New 
            <font size="2">( completed: 
            <?php echo $CompletedDate; ?>
            )</font></font></b></td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font color="#FFFFFF" face="sans-serif">FirmID</font></b></td>
          <td width="36%"> 
            <?php echo $ps['FirmID']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['FirmID']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font color="#FFFFFF" face="sans-serif">Firm 
            Name</font></b></td>
          <td width="36%"> 
            <?php echo $ps['FirmName']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['FirmName']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Name 
            of insurer</font></b></td>
          <td width="36%"> 
            <?php echo $ps['PIUnderwriter']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['PIUnderwriter']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Amount 
            of cover</font></b></td>
          <td width="36%"> 
            <?php echo $ps['LevelOfCover']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['LevelOfCover']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Form 
            of the member firm</font></b></td>
          <td width="36%"> 
            <?php echo $ps['FormOfIncorporation']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['FormOfIncorporation']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">www 
            address</font></b></td>
          <td width="36%"> 
            <?php echo $ps['URL']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['URL']; ?>
          </td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Quality 
            Management </font></b></td>
        </tr>
<!--        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Has top management approved a plan to install a Quality Management System (QMS) ?</font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSPlan']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSPlan']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Has the QMS documentation been developed?</font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSDocs']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSDocs']; ?>
          </td>
        </tr>
-->        
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Has your  firm implemented a Quality Management System?</font></b></td>
          <td width="36%"> 
            <?php 
            switch ($ps['QMSISOComply']) {
            	case "y": echo "Yes"; break;
            	case "n": echo "No"; break;
            	case "p": echo "In Progress"; break;
            }
            ?>
          </td>
          <td width="38%"> 
            <?php 
            switch ($rs['QMSISOComply']) {
            	case "y": echo "Yes"; break;
            	case "n": echo "No"; break;
            	case "p": echo "In Progress"; break;
            }
            ?>
          </td>
        </tr>
<!--        
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Has the QMS been implemented? If yes, please complete a) or b) below and furnish further details.</font></b></td>
          <td width="36%">
            <?php echo $ps['QMSImplemented']; ?><br>
a)Fully:<br>
<?php echo $ps['QMSImplFully']; ?><br>
b)Partially:<br>
<?php echo $ps['QMSImplPart']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSImplemented']; ?><br>
a)Fully:<br>
<?php echo $rs['QMSImplFully']; ?><br>
b)Partially:<br>
<?php echo $rs['QMSImplPart']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Is the system implemented in other/all offices?</font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSOffices']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSOffices']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Have you completed a preliminary assessment of the system?</font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSAssess']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSAssess']; ?>
          </td>
        </tr>
        <tr> 
          <td colspan="3" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Optional 
            Questions</font></b></td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Did you use a consultant/consultants to assist you with the development and/or implementation of a quality management system?</font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSUseConsult']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSUseConsult']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Name of Consultant/s:</font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSConsult']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSConsult']; ?>
          </td>
        </tr>
-->        
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Is your QMS certified?</font></b></td>
          <td width="36%"> 
            <?php 
            switch ($ps['QMSISOCert']) {
            	case "y": echo "Yes"; break;
            	case "n": echo "No"; break;
            	case "p": echo "In Progress"; break;
            }
            ?>
          </td>
          <td width="38%"> 
            <?php 
            switch ($rs['QMSISOCert']) {
            	case "y": echo "Yes"; break;
            	case "n": echo "No"; break;
            	case "p": echo "In Progress"; break;
            }
            ?>
          </td>
        </tr>
<!--        
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">If not certified do you intend obtaining certification? </font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSIntend']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSIntend']; ?>
          </td>
        </tr>
-->        
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">If yes, by whom?</font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSCertBody']; ?>
          </td>
          <td width="38%"> 
            <?php echo $rs['QMSCertBody']; ?>
          </td>
        </tr>
<!--        
        <tr> 
          <td width="26%" bgcolor="#0000FF"><b><font face="sans-serif" color="#FFFFFF">Date of third party certification if applicable. </font></b></td>
          <td width="36%"> 
            <?php echo $ps['QMSISOCertDate']; ?>
          </td>
          <td width="38%"> 
            <?php 
            	$QMSDate = $rs['QMSISOCertDate']."";
            	if (substr($QMSDate,0,10) == "Jan 1 1900") { $QMSDate = ""; }
            	echo $QMSDate;
            	?>
          </td>
-->          
        </tr>
        <tr bgcolor="#0099FF"> 
          <td colspan="3"><b><font face="sans-serif" color="#FFFFFF">DISCIPLINE 
            (Schedule 2)</font></b></td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Acoustics</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox110" value="checkbox" <?php echo $nchecked1; ?>>
<?php
if ($nchecked1 == "checked") {
	echo ("<br>Name: " . $x1);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox1" value="checkbox" <?php echo $checked1; ?>>
<?php
if ($checked1 == "checked") {
	echo ("<br>Name: " . $A1 . "<br>Projects: " . $P1);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Agriculture</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1102" value="checkbox" <?php echo $nchecked2; ?>>
<?php
if ($nchecked2 == "checked") {
	echo ("<br>Name: " . $x2);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox2" value="checkbox"<?php echo $checked2; ?>>
<?php
if ($checked2 == "checked") {
	echo ("<br>Name: " . $A2 . "<br>Projects: " . $P2);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Building 
            Services </font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1103" value="checkbox" <?php echo $nchecked3; ?>>
<?php
if ($nchecked3 == "checked") {
	echo ("<br>Name: " . $x3);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox3" value="checkbox"<?php echo $checked3; ?>>
<?php
if ($checked3 == "checked") {
	echo ("<br>Name: " . $A3 . "<br>Projects: " . $P3);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Checmical</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1104" value="checkbox" <?php echo $nchecked4; ?>>
<?php
if ($nchecked4 == "checked") {
	echo ("<br>Name: " . $x4);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox4" value="checkbox"<?php echo $checked4; ?>>
<?php
if ($checked4 == "checked") {
	echo ("<br>Name: " . $A4 . "<br>Projects: " . $P4);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Civil</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1105" value="checkbox" <?php echo $nchecked5; ?>>
<?php
if ($nchecked5 == "checked") {
	echo ("<br>Name: " . $x5);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox5" value="checkbox"<?php echo $checked5; ?>>
<?php
if ($checked5 == "checked") {
	echo ("<br>Name: " . $A5 . "<br>Projects: " . $P5);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Development</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1106" value="checkbox" <?php echo $nchecked6; ?>>
<?php
if ($nchecked6 == "checked") {
	echo ("<br>Name: " . $x6);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox6" value="checkbox"<?php echo $checked6; ?>>
<?php
if ($checked6 == "checked") {
	echo ("<br>Name: " . $A6 . "<br>Projects: " . $P6);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Electrical</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1107" value="checkbox" <?php echo $nchecked7; ?>>
<?php
if ($nchecked7 == "checked") {
	echo ("<br>Name: " . $x7);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox7" value="checkbox"<?php echo $checked7; ?>>
<?php
if ($checked7 == "checked") {
	echo ("<br>Name: " . $A7 . "<br>Projects: " . $P7);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Electronic</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1108" value="checkbox" <?php echo $nchecked8; ?>>
<?php
if ($nchecked8 == "checked") {
	echo ("<br>Name: " . $x8);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox8" value="checkbox"<?php echo $checked8; ?>>
<?php
if ($checked8 == "checked") {
	echo ("<br>Name: " . $A8 . "<br>Projects: " . $P8);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Environmental</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox1109" value="checkbox" <?php echo $nchecked9; ?>>
<?php
if ($nchecked9 == "checked") {
	echo ("<br>Name: " . $x9);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox9" value="checkbox"<?php echo $checked9; ?>>
<?php
if ($checked9 == "checked") {
	echo ("<br>Name: " . $A9 . "<br>Projects: " . $P9);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Geotechnical</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11010" value="checkbox" <?php echo $nchecked10; ?>>
<?php
if ($nchecked10 == "checked") {
	echo ("<br>Name: " . $x10);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox10" value="checkbox"<?php echo $checked10; ?>>
<?php
if ($checked10 == "checked") {
	echo ("<br>Name: " . $A10 . "<br>Projects: " . $P10);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Industrial</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11011" value="checkbox" <?php echo $nchecked11; ?>>
<?php
if ($nchecked11 == "checked") {
	echo ("<br>Name: " . $x11);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox11" value="checkbox"<?php echo $checked11; ?>>
<?php
if ($checked11 == "checked") {
	echo ("<br>Name: " . $A11 . "<br>Projects: " . $P11);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Mechanical</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11012" value="checkbox" <?php echo $nchecked12; ?>>
<?php
if ($nchecked12 == "checked") {
	echo ("<br>Name: " . $x12);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox12" value="checkbox"<?php echo $checked12; ?>>
<?php
if ($checked12 == "checked") {
	echo ("<br>Name: " . $A12 . "<br>Projects: " . $P12);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Marine</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11013" value="checkbox" <?php echo $nchecked13; ?>>
<?php
if ($nchecked13 == "checked") {
	echo ("<br>Name: " . $x13);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox13" value="checkbox"<?php echo $checked13; ?>>
<?php
if ($checked13 == "checked") {
	echo ("<br>Name: " . $A13 . "<br>Projects: " . $P13);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Mining</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11014" value="checkbox" <?php echo $nchecked14; ?>>
<?php
if ($nchecked14 == "checked") {
	echo ("<br>Name: " . $x14);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox14" value="checkbox"<?php echo $checked14; ?>>
<?php
if ($checked14 == "checked") {
	echo ("<br>Name: " . $A14 . "<br>Projects: " . $P14);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Process 
            Engineering </font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11015" value="checkbox" <?php echo $nchecked15; ?>>
<?php
if ($nchecked15 == "checked") {
	echo ("<br>Name: " . $x15);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox15" value="checkbox"<?php echo $checked15; ?>>
<?php
if ($checked15 == "checked") {
	echo ("<br>Name: " . $A15 . "<br>Projects: " . $P15);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Structural</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11016" value="checkbox" <?php echo $nchecked16; ?>>
<?php
if ($nchecked16 == "checked") {
	echo ("<br>Name: " . $x16);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox16" value="checkbox"<?php echo $checked16; ?>>
<?php
if ($checked16 == "checked") {
	echo ("<br>Name: " . $A16 . "<br>Projects: " . $P16);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Transportation</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11017" value="checkbox" <?php echo $nchecked17; ?>>
<?php
if ($nchecked17 == "checked") {
	echo ("<br>Name: " . $x17);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox17" value="checkbox"<?php echo $checked17; ?>>
<?php
if ($checked17 == "checked") {
	echo ("<br>Name: " . $A17 . "<br>Projects: " . $P17);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Architecture</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11018" value="checkbox" <?php echo $nchecked18; ?>>
<?php
if ($nchecked18 == "checked") {
	echo ("<br>Name: " . $x18);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox18" value="checkbox"<?php echo $checked18; ?>>
<?php
if ($checked18 == "checked") {
	echo ("<br>Name: " . $A18 . "<br>Projects: " . $P18);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Rural 
            Development </font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11019" value="checkbox" <?php echo $nchecked19; ?>>
<?php
if ($nchecked19 == "checked") {
	echo ("<br>Name: " . $x19);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox19" value="checkbox"<?php echo $checked19; ?>>
<?php
if ($checked19 == "checked") {
	echo ("<br>Name: " . $A19 . "<br>Projects: " . $P19);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Project 
            Management </font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11020" value="checkbox" <?php echo $nchecked20; ?>>
<?php
if ($nchecked20 == "checked") {
	echo ("<br>Name: " . $x20);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox20" value="checkbox"<?php echo $checked20; ?>>
<?php
if ($checked20 == "checked") {
	echo ("<br>Name: " . $A20 . "<br>Projects: " . $P20);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Quantity 
            Surveying </font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11021" value="checkbox" <?php echo $nchecked21; ?>>
<?php
if ($nchecked21 == "checked") {
	echo ("<br>Name: " . $x21);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox21" value="checkbox"<?php echo $checked21; ?>>
<?php
if ($checked21 == "checked") {
	echo ("<br>Name: " . $A21 . "<br>Projects: " . $P21);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Town 
            Planning </font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11022" value="checkbox" <?php echo $nchecked22; ?>>
<?php
if ($nchecked22 == "checked") {
	echo ("<br>Name: " . $x22);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox22" value="checkbox"<?php echo $checked22; ?>>
<?php
if ($checked22 == "checked") {
	echo ("<br>Name: " . $A22 . "<br>Projects: " . $P22);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Dispute 
            Resolution </font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11023" value="checkbox" <?php echo $nchecked23; ?>>
<?php
if ($nchecked23 == "checked") {
	echo ("<br>Name: " . $x23);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox23" value="checkbox"<?php echo $checked23; ?>>
<?php
if ($checked23 == "checked") {
	echo ("<br>Name: " . $A23 . "<br>Projects: " . $P23);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Expert 
            Witness / Insurance Claim</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11024" value="checkbox" <?php echo $nchecked24; ?>>
<?php
if ($nchecked24 == "checked") {
	echo ("<br>Name: " . $x24);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox24" value="checkbox"<?php echo $checked24; ?>>
<?php
if ($checked24 == "checked") {
	echo ("<br>Name: " . $A24 . "<br>Projects: " . $P24);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Information 
            Systems / Technology</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11025" value="checkbox" <?php echo $nchecked25; ?>>
<?php
if ($nchecked25 == "checked") {
	echo ("<br>Name: " . $x25);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox25" value="checkbox"<?php echo $checked25; ?>>
<?php
if ($checked25 == "checked") {
	echo ("<br>Name: " . $A25 . "<br>Projects: " . $P25);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">Facilities 
            / Maintenance Management</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11026" value="checkbox" <?php echo $nchecked26; ?>>
<?php
if ($nchecked26 == "checked") {
	echo ("<br>Name: " . $x26);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox26" value="checkbox"<?php echo $checked26; ?>>
<?php
if ($checked26 == "checked") {
	echo ("<br>Name: " . $A26 . "<br>Projects: " . $P26);
}
?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#0099FF"><b><font face="sans-serif" color="#FFFFFF">GIS</font></b></td>
          <td width="38%"> 
            <input type="checkbox" name="checkbox11027" value="checkbox" <?php echo $nchecked27; ?>>
<?php
if ($nchecked27 == "checked") {
	echo ("<br>Name: " . $x27);
}
?>
          </td>
          <td width="36%"> 
            <input type="checkbox" name="checkbox27" value="checkbox"<?php echo $checked27; ?>>
<?php
if ($checked27 == "checked") {
	echo ("<br>Name: " . $A27 . "<br>Projects: " . $P27);
}
?>
          </td>
        </tr>
        <tr bgcolor="#00CCFF"> 
          <td colspan="3"><b><font face="sans-serif" color="#FFFFFF">Firms to 
            be treated as one (Schedule 1A)</font></b></td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#00CCFF"><b><font face="sans-serif" color="#FFFFFF">Main 
            firm to invoice</font></b></td>
          <td width="36%"> 
            <?php echo $ps['MainFirmInvoice']; ?>
          </td>
          <td width="36%"> 
            <?php echo $rs['MainFirmInvoice']; ?>
          </td>
        </tr>
        <tr> 
          <td width="26%" bgcolor="#00CCFF"><b><font face="sans-serif" color="#FFFFFF">Group 
            of firms to invoice</font></b></td>
          <td width="36%"> 
            <?php echo $ps['GroupFirmsInvoice']; ?>
          </td>
          <td width="36%"> 
            <?php echo $rs['GroupFirmsInvoice']; ?>
          </td>
        </tr>
        <tr> 
          <td colspan="3">
            <div align="center"><font face="sans-serif"><b>Click 
              here to view all the 
              <?php $NewFile = "ADdisplayOffices.php4"; printf ("<a href=\"%s?FirmID=%s\")'><font size=2><b><u>OFFICES</u></b></font></a>\n", $NewFile, $FirmID); ?>
              for this Member Firm</b></font></div>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td colspan="2"> 
            <div align="center"><font face="sans-serif" size="2" color="#FF0000">You 
              can ACCEPT or DECLINE the changes here. You can only do this once!</font></div>
          </td>
        </tr>
        <tr> 
          <td><font face="sans-serif" size="2"><?php $NewFile = "ADdisplayMemberFirm.php4"; printf ("<a href=\"%s?FirmID=%s&action=ACCEPT\")'><img src=accept.jpg border=0><font size=2><b>ACCEPT</b></font></a>\n", $NewFile, $FirmID); ?></font></td>
          <td> 
            <div align="right"><font face="sans-serif" size="2"><?php $NewFile = "ADdisplayMemberFirm.php4"; printf ("<a href=\"%s?FirmID=%s&action=DECLINE\")'><img src=decline.jpg border=0><font size=2><b>DECLINE</b></font></a>\n", $NewFile, $FirmID); ?></font></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td bgcolor="#CCCCCC"><?php include( 'inc/footer.inc' ); ?></td>
  </tr>
</table>
<script language="javascript" src="ShadeTable.js"></script>
<script language="javascript">
ShadeTable(document.getElementsByName("tblShaded"));
</script>
</body>
</html>