| Current Path : /var/www/cesa.co.za/members/AnnualDeclaration_Part1/ |
| Current File : /var/www/cesa.co.za/members/AnnualDeclaration_Part1/schedule1b_page2.php4 |
<?php
// Configuration and Autentication
include( '../inc/auth.inc' );
include( '../inc/func.inc' );
switch ($auth) {
case valid:
// System Includes
//include( '../inc/pref.inc' );
// Variables Unique to page
$title = "members.saace.co.za - Annual Declaration " & $DeclarationYear;
$description = "South African Association of Consulting Engineers. Annual Declaration " & $DeclarationYear & ".";
$keywords = "online, services, members, consulting, engineers";
// Start Page Includes
include( '../inc/conf.inc' );
// include( '../inc/header.inc' );
include( '../inc/db.inc' );
?>
<!-- Start Page Content Here -->
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<title>Annual Declaration <?php echo $DeclarationYear; ?></title><body bgcolor="#FFFFFF">
<?php
include( '../inc/declaration.inc' );
?>
<table width="100%" cellpadding="0" cellspacing="0" height="390">
<tr>
<td align="center" valign="top" height="417">
<table border=0 cellspacing=0 cellpadding=0 width="100%" height="89">
<tr>
<td width=288 valign=top class="Normal" height="89">
<h2> </h2>
</td>
<td width=69 valign=top class="Normal" height="89">
<h2> <font size="1" face="Times New Roman, Times, serif"><img width=66 height=84
src="images/image003.gif" v:shapes="_x0000_i1026"></font></h2>
</td>
<td width=120 valign=top class="Normal" height="89"> </td>
<td width=194 valign=top class="Normal" height="89">
<div align="right"><font size="1" face="Times New Roman, Times, serif">
<b>SCHEDULE 1 B <br>
<?php echo $DeclarationYear; ?><br>
(CONTINUED) </b></font></div>
</td>
</tr>
</table>
<font size="1" face="Times New Roman, Times, serif"><b>A.������� DETAILS
OF ALL PRINCIPALS AND PROFESSIONAL STAFF <i><u>AT THIS BRANCH ONLY</u></i></b>
</font>
<table border=1 cellspacing=0 cellpadding=0 width=100%>
<tr bgcolor="#999999">
<td width=81 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>SURNAME
</b></font></td>
<td width=69 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>INITIALS
</b></font></td>
<td width=95 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>ALSO
KNOWN AS(e.g. �Bill� for �William�) </b></font></td>
<td width=120 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>Professional
Registration (if any) number and date (PrEng, PrTechEng,Quantity Surveyor,
Architect, CA(SA) etc </b></font></td>
<td width=120 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>Qualifications
(Degrees/Diplomas, fullMembership of Institutions etc) </b></font></td>
<td width=95 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>Field/s
of Expertise </b></font></td>
<td width=106 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>Position
in firm(e.g. company director, partner, office manager, other)(**See
Note Below) </b></font></td>
<td valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>E-mail
address </b></font></td>
<td width=8 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>Principal
</b></font></td>
<td width=8 valign=top class="Normal" height="89"> <font size="1" face="Times New Roman, Times, serif"><b>YPF
</b></font></td>
</tr>
<?php
//here we do a while to show the info
mysql_connect("$host","$user","$password") or die("Unable to connect to SQL server");
mysql_select_db("$db") or die("Unable to select database");
$query = "SELECT * FROM ADec_OfficeContacts WHERE OfficeID = '$SelectOfficeID'";
$result = mysql_query($query) or die("Select of id Failed");
while (($rs = mysql_fetch_array($result)))
{
$therightid = $rs[0];
// Get the relevant details to display
mysql_connect("$host","$user","$password") or die("Unable to connect to SQL server");
mysql_select_db("$db") or die("Unable to select database");
$query2 = "SELECT * FROM ADec_Contacts WHERE ContactsID = '$therightid'";
$result2 = mysql_query($query2) or die("Select of id Failed");
$ps = mysql_fetch_array($result2);
?>
<tr>
<td width=81 valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $ps[1]; ?>
</font></td>
<td width=69 valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $ps[2]; ?>
</font></td>
<td width=95 valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $ps[3]; ?>
</font></td>
<td width=120 valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $ps[13]; ?>
</font></td>
<td width=120 valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $ps[14]; ?>
</font></td>
<td width=95 valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $ps[12]; ?>
</font></td>
<td width=106 valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $rs[1]; ?>
</font></td>
<td valign=top class="Normal"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $ps[16]; ?>
</font></td>
<?php
$pictoshow1 = "../pics/unselected.jpg";
if ($rs[5] == 1)
{
$pictoshow1 = "../pics/selected.gif";
}
?>
<td width=8 valign=top class="Normal"><font size="1" face="Times New Roman, Times, serif"><img src="<?php echo $pictoshow1; ?>" ></font></td>
<?php
$pictoshow1 = "../pics/unselected.jpg";
if ($rs[11] == 'y')
{
$pictoshow1 = "../pics/selected.gif";
}
?>
<td width=8 valign=top class="Normal"><font size="1" face="Times New Roman, Times, serif"><img src="<?php echo $pictoshow1; ?>" ></font></td>
</tr>
<tr>
<td width=81 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td width=69 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td width=95 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td width=120 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td width=120 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td width=95 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td width=106 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td></td>
</tr>
</table>
</td>
<td width=8 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td><font size="1" face="Times New Roman, Times, serif"><img src="../pics/unselected.jpg" ></font></td>
</tr>
</table>
</td>
<td width=8 valign=top class="Normal">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td><font size="1" face="Times New Roman, Times, serif"><img src="../pics/unselected.jpg" ></font></td>
</tr>
</table>
</td>
</tr>
<?php
// here we end the while
}
?>
</table>
<font size="1" face="Times New Roman, Times, serif"><b><i>(Please us a BLANK
form if you would like to add staff)</i></b> </font>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="73%"><font size="1" face="Times New Roman, Times, serif"><span
style='font-size:10.0pt;font-family:"Times New Roman"'>TOTAL OF ALL PRINCIPALS,
PROFESSIONAL AND CONTRACT STAFF LISTED IN A ABOVE</span></font></td>
<td width="6%"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $MemberProffStaff; ?>
</font></td>
<td width="21%">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" height="100%" bgcolor="#999999">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="73%"><font size="1" face="Times New Roman, Times, serif"><span
style='font-size:10.0pt;font-family:"Times New Roman"'>TOTAL OF NON-PROFESSIONAL
TECHNICAL AND CONTRACT STAFF (e.g. graduates, draughtsperson, laboratory
assistants, etc)</span></font></td>
<td width="6%"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $MemberNonProff; ?>
</font></td>
<td width="21%">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" height="100%" bgcolor="#999999">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="73%"><font size="1" face="Times New Roman, Times, serif"><span
style='font-size:10.0pt;font-family:"Times New Roman"'>TOTAL OF OTHER STAFF
AND CONTRACT STAFF (e.g. secretaries, bookkeepers etc)</span></font></td>
<td width="6%"> <font size="1" face="Times New Roman, Times, serif">
<?php echo $MemberOtherStaff; ?>
</font></td>
<td width="21%">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" height="100%" bgcolor="#999999">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="73%"><font size="1" face="Times New Roman, Times, serif"><span style='font-size:12.0pt;'><b>TOTAL
OF ALL STAFF</b></span></font></td>
<td width="6%"> <font size="1" face="Times New Roman, Times, serif">
<?php $Total = $MemberOtherStaff + $MemberNonProff + $MemberProffStaff; echo $Total; ?>
</font></td>
<td width="21%">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" height="100%" bgcolor="#999999">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- End Page Content Here -->
<?php
// End page Includes
include( '../inc/footer2.inc' );
break;
case invalid:
header("Location: http://www.cesa.co.za/login.php4?pageurl=".$_SERVER['REQUEST_URI']);
//systemerror("Login Error","Initial Login Failure",getenv ("PATH_INFO"), $authorized);
break;
default:
systemerror("System Error","System Failure on Authentication",getenv ("PATH_INFO"), "There is a problem logging into our system. Try again later or if the problem persists, please contact SAACE to report the problem.");
break;
}
?>