| Current Path : /var/www/cesa.co.za/members/AnnualDeclaration/ |
| Current File : /var/www/cesa.co.za/members/AnnualDeclaration/schedule1aGENERIC_A.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' );
include( '../inc/readnext.inc' );
?>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<title>Jaarlikse Verklaring <?php echo $DeclarationYear; ?></title>
<style type="text/css">
<!--
a { font-family: sans-serif; font-size: 10px; font-weight: bolder; color: #FF0000; text-decoration: none}
-->
</style>
<body bgcolor="#FFFFFF">
<!-- Start Page Content Here -->
<?php
if ($dothingy == "completed")
{
// Set the correct messages *************************************************************
// *********************************************************************************************
$submitbuttonactive = "no";
// Perform the checks *************************************************************
// *********************************************************************************************
if ($form[mainfirm])
{
$DoUpdate = "yes";
}
else
{
$DoUpdate = "no";
$pageerrormessage = "<font color=red>FOUT !!! </font> Voltooi ASB die veld <b> HOOFFIRMA
WAT GEFAKTUREER MOET WORD </b>";
}
if ($DoUpdate == "yes")
{
if ($form[group])
{
$DoUpdate = "yes";
}
else
{
$DoUpdate = "no";
$pageerrormessage = "<font color=red>FOUT !!! </font> Voltooi ASB die veld <b> LYS VAN FIRMA'S WAT AS EEN BESKOU WORD </b>";
}
}
if ($DoUpdate == "yes")
{
// Perform the update *************************************************************
// *********************************************************************************************
$errormessage = "Maak ASB die bladsy toe en keer terug na die BEHEER BLADSY";
$pageerrormessage = "";
mysql_connect("$host","$user","$password") or die("Unable to connect to SQL server");
mysql_select_db("$db") or die("Unable to select database");
$query1 = "SELECT FirmID, Prev_FirmID FROM ADec_tblMemberFirms WHERE Prev_FirmID = '$MemberFirmID'";
$result1 = mysql_query($query1) or die("Select of id Failed");
$rs = mysql_fetch_array($result1);
$CurrentMemberFirmID = $rs['FirmID'];
$query = "UPDATE ADec_tblMemberFirms SET MainFirmInvoice = '$form[mainfirm]',
GroupFirmsInvoice = '$form[group]'
WHERE FirmID = '$CurrentMemberFirmID'";
$result = mysql_query($query) or die("Select of id Failed");
$reftype = "FirmID";
$refdoc = "Schedule1A";
$adecdate = date("M d Y g:iA");
$query102 = "INSERT INTO ADec_Done (RefID,RefType,RefDoc,ADecDate)
values('$CurrentMemberFirmID','$reftype','$refdoc','$adecdate')";
$Jresult = mysql_query($query102) or die("Insert Failed");
}
else
{
$errormessage = "************** GEBRUIK DIE TERUG KNOPPIE ASB **************";
}
}
else
{
$submitbuttonactive = "yes";
$errormessage = "Voltooi ASB al die velde";
?>
<form method="post" action="<?php echo $PHP_SELF."?dothingy=completed"; ?>" enctype="multipart/form-data">
<?php
}
?>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#336699">
<div align="left"><font face="sans-serif"><b><font color="#CCCCCC" size="2">Welkom
by die <font color="#999999">AANLYNSE JAARLIKSE VERKLARING VORM</font>.<br>
Vul asseblief al die <font color="#999999">VELDE</font> in en druk die
<font color="#999999">SUBMIT</font> knoppie on aan te gaan..</font>
<font size="2" color="#CCCCCC"><br>
Enigge vrae? Kontak gerus: <a href="mailto:members@saace.co.za">SUPPORT</a></font></b></font>
<font face="sans-serif"><br>
<font size="2"><b><font color="#CCCCCC">Alle </font><font size="2" color="#CCCCCC"><b><font color="#FF0000">VERPLIGTE</font></b></font><font color="#CCCCCC">
vrae word aangedui deer die: <font color="#FF0000">*</font></font></b></font></font>
</div>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="9%"><font face="sans-serif" size="1"><img width=66 height=84
src="images/image002.gif" v:shapes="_x0000_i1025"></font></td>
<td width="80%">
<p align="center"><font face="sans-serif" size="1"><font size="2">DIE
SUID-AFRIKAANSE VERENIGING VAN RAADGEWENDE INGENIEURS</font><b><br>
FIRMA'S AS EEN LID BEHANDEL</b></font></p>
</td>
<td width="11%">
<div align="right"><font face="sans-serif" size="1"><b>BYLAAG 1
A <br>
<?php echo $DeclarationYear; ?></b></font></div>
</td>
</tr>
<tr>
<td colspan="3">
<p style='text-align:justify'><font face="sans-serif" size="1"><b><span style='font-family:"Times New Roman"'>N
VERTALING VAN REGULASIE 5.3 LUI SOOS VOLG:</span></b></font></p>
<p class=MsoBodyTextIndent align="center"><font face="sans-serif" size="1">�����������
<i>"Indien die Lid dit versoek, moet die Direktoraat die
jaarlikse ledegeld van 'n groep firmas as een Lid bereken, onderworpe
aan die goedkeuring van die Uitvoerende Komitee."</i></font></p>
</td>
</tr>
<tr>
<td width="9%"> </td>
<td width="80%">
<div align="center"></div>
</td>
<td width="11%"> </td>
</tr>
<tr>
<td colspan="3"> <font face="sans-serif">
<?php
if ($submitbuttonactive == "yes")
{
// Check if the data has allready been written *************************************************
// *********************************************************************************************
mysql_connect("$host","$user","$password") or die("Unable to connect to SQL server");
mysql_select_db("$db") or die("Unable to select database");
$query1 = "SELECT FirmID, Prev_FirmID, MainFirmInvoice, GroupFirmsInvoice FROM ADec_tblMemberFirms WHERE Prev_FirmID = '$MemberFirmID'";
$result1 = mysql_query($query1) or die("Select of id Failed");
$rs = mysql_fetch_array($result1);
$CurrentMemberFirmID = $rs['FirmID'];
$IFMainFirm = $rs['MainFirmInvoice'];
$IFGroupFirm = $rs['GroupFirmsInvoice'];
if ($IFMainFirm) {$MemberFirmMainInvoice = $IFMainFirm;}
if ($IFGroupFirm) {$MemberFirmGroupInvoice = $IFGroupFirm;}
?>
</font>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="26%" bgcolor="#CCCCCC"><font face="sans-serif"><b><font size="1">HOOFFIRMA
WAT GEFAKTUREER MOET WORD</font></b></font></td>
<td width="74%"> <font face="sans-serif">
<input type="text" name="form[mainfirm]" size="40" value="<?php echo $MemberFirmMainInvoice; ?>">
<font size="2"><b><font color="#CCCCCC"><font color="#FF0000">*</font></font></b></font></font>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#CCCCCC">
<div align="center"><font face="sans-serif"><b><font size="1">Ons
versoek hierby dat die volgende firmas vir ledegelddoeleindes
as een Lid behandel word:</font></b></font></div>
</td>
</tr>
<tr>
<td width="26%" bgcolor="#CCCCCC"><font face="sans-serif"><b><font size="1">LYS
VAN FIRMA'S WAT AS EEN BESKOU MOET WORD</font></b></font></td>
<td width="74%"> <font face="sans-serif">
<textarea name="form[group]" cols="40" rows="8"><?php echo $MemberFirmGroupInvoice; ?></textarea>
<font size="2"><b><font color="#CCCCCC"><font color="#FF0000">*</font></font></b></font></font>
</td>
</tr>
</table>
<div align="center"><font face="sans-serif">
<?php
}
else
{
if ($DoUpdate == "no")
{
echo "<br>".$pageerrormessage;
}
}
?>
</font></div>
</td>
</tr>
<tr>
<td width="9%"> </td>
<td width="80%"> </td>
<td width="11%"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#336699">
<div align="center"><font color="#000000" face="sans-serif"><b><font size="2" color="#CCCCCC">
<?php echo $errormessage; ?>
:</font></b></font> <font face="sans-serif"><br>
<?php
if ($submitbuttonactive == "yes")
{
?>
<input type="submit" name="Submit" value="Submit">
<?php
}
else
{
?>
<font size = -2><a href="javascript:history.back(1)">TERUG</a></font>
<?php
}
?>
</font></div>
</td>
</tr>
</table>
</form>
<!-- End Page Content Here -->
<?php
// End page Includes
include( '../inc/footer2.inc' );
break;
case invalid:
header("Location: http://www.saace.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;
}
?>