| Current Path : /var/www/cesa.co.za/members/inc/ |
| Current File : /var/www/cesa.co.za/members/inc/declaration_nav.php4 |
<script language="javascript">
function ShowNav() {
if (document.all) {
document.all.DeclarationNav.style.display='';
} else {
if (document.getElementById) {
document.getElementById("DeclarationNav").style.display='';
}
}
}
function HideNav() {
if (document.all) {
document.all.DeclarationNav.style.display='none';
} else {
if (document.getElementById) {
document.getElementById("DeclarationNav").style.display='none';
}
}
}
function ShowOffices() {
if (document.all) {
document.all.DeclarationOffices.style.display='';
} else {
if (document.getElementById) {
document.getElementById("DeclarationOffices").style.display='';
}
}
}
function HideOffices() {
if (document.all) {
document.all.DeclarationOffices.style.display='none';
} else {
if (document.getElementById) {
document.getElementById("DeclarationOffices").style.display='none';
}
}
}
function ShowOfficesInternat() {
if (document.all) {
document.all.DeclarationOfficesInternat.style.display='';
} else {
if (document.getElementById) {
document.getElementById("DeclarationOfficesInternat").style.display='';
}
}
}
function HideOfficesInternat() {
if (document.all) {
document.all.DeclarationOfficesInternat.style.display='none';
} else {
if (document.getElementById) {
document.getElementById("DeclarationOfficesInternat").style.display='none';
}
}
}
</script>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style3 {font-size: 12px}
.style5 {
font-size: 12px;
color: #33FF00;
font-weight: bold;
}
.style6 {
color: #FF9900;
font-weight: bold;
}
-->
</style>
<div id="DeclarationNav" style="display:none; background-color:#336699; color: #FFFFFF; width:500px; text-align:center; border:gray groove 1px">
<?php
include('declaration_nav_int.php4');
?>
<table width="500" cellpadding="0" border="1" cellspacing="1">
<tr>
<td align=right><div align="right"></div></td>
<td colspan="2" align=right><div align="right"><a href="#" onClick="javascript:HideNav();"><b><font color=red>X</font><font color=white>Close this menu</font></b></a></div></td>
</tr>
</table>
</div>
<div id="DeclarationOffices" style="display:none;">
<table width="500" cellpadding="0" border="1" cellspacing="1">
<tr>
<td valign="top" height="163">
<table width="100%" border="0" bordercolor="#000000">
<?php
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_tblMemberFirmOffices WHERE (Prev_FirmID = '$MemberFirmID') AND (SaaceBranch <> 'International' OR SaaceBranch IS NULL) ORDER BY OfficeID";
$result = mysql_query($query) or die("Select of id Failed");
$i = 1;
while (($rs = mysql_fetch_array($result)))
{
?>
<tr>
<td><font face="sans-serif"></font> </td>
<td width="86%"> <font size="2" face="sans-serif">
<?php echo "<a href=\"schedule1_page1GENERIC.php4?officenum=$i&SelectOfficeID=".$rs['OfficeID']."\"> ".$rs['OfficeName']." in ".$rs['GeoLocation']."</a>"; ?>
</font></td>
</tr>
<?php
$i = $i + 1;
}
?>
<tr>
<td colspan="2"><a href="#" onClick="javascript:HideOffices();">Hide</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="DeclarationOfficesInternat" style="display:none;">
<table width="500" cellpadding="0" border="1" cellspacing="1">
<tr>
<td valign="top" height="163">
<table width="100%" border="0" bordercolor="#000000">
<?php
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_tblMemberFirmOffices WHERE (Prev_FirmID = '$MemberFirmID') AND (SaaceBranch = 'International') ORDER BY OfficeID";
$result = mysql_query($query) or die("Select of id Failed");
$i = 1;
while (($rs = mysql_fetch_array($result)))
{
?>
<tr>
<td><font face="sans-serif"></font> </td>
<td width="86%"> <font size="2" face="sans-serif">
<?php echo "<a href=\"schedule1b_page1GENERIC.php4?officenum=$i&SelectOfficeID=".$rs['OfficeID']."\"> ".$rs['OfficeName']." in ".$rs['GeoLocation']."</a>"; ?>
</font></td>
</tr>
<?php
$i = $i + 1;
}
?>
<tr>
<td colspan="2"><a href="#" onClick="javascript:HideOfficesInternat();">Hide</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>