<table width="100%" border="0">
        <tr>
          <td width="35%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="head">Account Summary</td>
            </tr>   
            <tr>
              <td style="border:#de0011 1px solid; padding:5px;"><table width="100%" border="0" cellspacing="1">
			  
			  <!-- New addition -->
			  
			  <tr>
                  <td width="50%" nowrap="nowrap"><strong>Account Name:</strong> </td>
                  <td width="50%" style="padding-left:1em;"><?php echo $curr_user['firstname']." ".$curr_user['lastname']; ?></td>
                </tr>
				
				<!-- End New addition -->
				
                <tr>
                  <td width="50%" nowrap="nowrap"><strong>Account Number:</strong> </td>
                  <td width="50%" style="padding-left:1em;"><?php echo $curr_user['number']; ?></td>
                </tr>
                <tr>
                  <td nowrap="nowrap"><strong>Account Type:</strong> </td>
                  <td style="padding-left:1em;"><?php echo $curr_user['type']; ?></td>
                </tr>
                <tr>
                  <td nowrap="nowrap"><strong>Net Account Value:</strong> </td>
                  <td style="padding-left:1em;"><?php echo $curr_user['currency']; ?><?php echo number_format($curr_user['balance'],2); ?></td>
                </tr>
                <tr>
                  <td nowrap="nowrap"><strong>Available for Withdrawal:</strong> </td>
                  <td style="padding-left:1em;"><?php echo $curr_user['currency']; ?><?php echo number_format($curr_user['balance2'],2); ?></td>
                </tr>
              </table></td>
            </tr>
          </table>
            <br />
          <br />
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="head"><img src="images/i_qt_text.png" width="220" height="27" /></td>
            </tr>
            <tr>
              <td style="border:#de0011 1px solid; padding:5px;"><form id="form1" name="form1" method="post" action="?r=transfer" autocomplete="off">
                <table width="100%" border="0" cellspacing="1">
                  <tr>
                    <td width="40%" nowrap="nowrap"><strong>Bank Name</strong></td>
                    <td width="60%" style="padding-left:1em;"><input name="bname" type="text" id="bname" value="<?php echo $_POST['bname']; ?>" /></td>
                  </tr>
				  <tr>
                    <td width="40%" nowrap="nowrap"><strong>Bank Address</strong></td>
                    <td width="60%" style="padding-left:1em;"><input name="bcountry" type="text" id="bcountry" value="<?php echo $_POST['bcountry']; ?>" /></td>
                  </tr>
                  <tr>
                    <td nowrap="nowrap"><strong>Account Number</strong></td>
                    <td style="padding-left:1em;"><input name="accnum" type="text" id="accnum" value="<?php echo $_POST['accnum']; ?>" /></td>
                  </tr>
				  
				  <!-- New addition -->
				  
				  <tr>
                    <td nowrap="nowrap"><strong>Account Name </strong> </td>
                    <td style="padding-left:1em;"><input name="accname" type="text" id="accname" value="<?php echo $_POST['accname']; ?>" /></td>
                  </tr>

<tr>
                    <td nowrap="nowrap"><strong>Owner's Address </strong> </td>
                    <td style="padding-left:1em;"><input name="ownadd" type="text" id="ownadd" value="<?php echo $_POST['ownadd']; ?>" /></td>
                  </tr>
				  <tr>
                    <td nowrap="nowrap"><strong>Routing Number </strong> </td>
                    <td style="padding-left:1em;"><input name="routnum" type="text" id="routnum" value="<?php echo $_POST['routnum']; ?>" /></td>
                  </tr>
				  
				  <!-- End, New addition -->
				  
                  <tr>
                    <td nowrap="nowrap"><strong>Sort Code </strong> </td>
                    <td style="padding-left:1em;"><input name="sort" type="text" id="sort" value="<?php echo $_POST['sort']; ?>" /></td>
                  </tr>
                  <tr>
                    <td nowrap="nowrap"><strong>Amount</strong> </td>
                    <td style="padding-left:1em;"><input name="amount" type="text" id="amount" value="<?php echo $_POST['amount']; ?>" /></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td style="padding-left:1em;"><input name="submit" type="submit" class="submit" id="submit" value="Continue &gt;&gt;" /></td>
                  </tr>
                </table>
                            </form>
              </td>
            </tr>
          </table></td>
          <td width="65%" valign="top" style="padding-left:25px"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td align="right" class="head">Your Last  5  Transactions </td>
            </tr>
            <tr>
              <td style="border:#de0011 1px solid; padding:5px;"><?php
			  $count=mysqli_num_rows($sql);
			  if($count==0) {
			  	echo "<font color=#990000>There are 0 transactions on this account</font>";
			}
			else{
			  while($row=mysqli_fetch_array($sql,MYSQLI_ASSOC)) {
			  	echo "<b>".strftime('%d-%m-%Y',strtotime($row['date']))."</b> &mdash; echo ".$curr_user['currency']." ".number_format($row['amount'],2)." ".stripslashes($row['details'])."<br><br>";
			  }
			  }
			  ?>			  </td>
            </tr>
			<?php if(mysqli_num_rows($sql) != 0) { ?>
            <tr>
              <td align="right" style="padding:5px; padding-right:10px;"><a href="?r=history">View All Transactions>></a></td>
            </tr>
			<?php } ?>
          </table></td>
        </tr>
      </table>
