<?php

function get_client_ip_env() {
    $ipaddress = '';
    if (getenv('HTTP_CLIENT_IP'))
        $ipaddress = getenv('HTTP_CLIENT_IP');
    else if(getenv('HTTP_X_FORWARDED_FOR'))
        $ipaddress = getenv('HTTP_X_FORWARDED_FOR');
    else if(getenv('HTTP_X_FORWARDED'))
        $ipaddress = getenv('HTTP_X_FORWARDED');
    else if(getenv('HTTP_FORWARDED_FOR'))
        $ipaddress = getenv('HTTP_FORWARDED_FOR');
    else if(getenv('HTTP_FORWARDED'))
        $ipaddress = getenv('HTTP_FORWARDED');
    else if(getenv('REMOTE_ADDR'))
        $ipaddress = getenv('REMOTE_ADDR');
    else
        $ipaddress = 'UNKNOWN';

    return $ipaddress;
}


?>
<header>
    <meta name="robots" content="noindex, follow">
<div class="navbar navbar-fixed-top bs-docs-nav" role="banner">
  
    <div class="container" style="background-color: #fff;">
      <!-- Menu button for smallar screens -->
      <div class="navbar-header">
		 <!--   <button class="navbar-toggle btn-navbar" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse"><span>Message</span></button> --->
      <a href="#" class="pull-left menubutton hidden-xs"><i class="fa fa-bars"></i></a>
		  <!-- Site name for smallar screens -->
		  <a href="../index.html" class="navbar-brand"> <img border="0" src="assets/img/d92929logo.png" style="height: 50px;" > </a>
		</div>

      <!-- Navigation starts -->
      <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">         

        <!-- Links -->
        <ul class="nav navbar-nav pull-right">
          
          <!-- Upload to server link. Class "dropdown-big" creates big dropdown -->
          
          <!-- Sync to server link -->
                                
            <!-- Message button with number of latest messages count-->
          <!--  <li class="dropdown dropdown-big messages-dd leftonmobile">
              <a class="dropdown-toggle" href="#" data-toggle="dropdown">
                <i class="fa fa-envelope-o"></i> <span class="label label-primary"><?php echo $messaagenum ; ?></span> 
              </a>
              
            </li>  -->
            
            <li class="dropdown dropdown-big messages-dd leftonmobile">
              <a class="dropdown-toggle" href="#" data-toggle="dropdown">
               <?php echo 'Your IP Address: '.get_client_ip_env() ; ?></a>
              
             
              
            </li>

            <!-- Members button with number of latest members count -->
            
        </ul>
      </nav>


    </div>
  </div>
</header>

<!-- Main content starts -->

<div class="content">

  	<!-- Sidebar -->
    <div class="sidebar" style="background-color: #058B4D;color: white;">
        <div class="sidebar-dropdown"><a href="#">Menu</a></div>
        <!-- Search form -->

        <!--- Sidebar navigation -->
        <!-- If the main navigation has sub navigation, then add the class "has_sub" to "li" of main navigation. -->
        <ul id="nav">
            <li>  <a href="#"><center><img src="upload/<?php echo $row['Picture']; ?>" alt="" style="width: 150px; border-radius: 40px;"/></center></a> </li>
          <!-- Main menu with font awesome icon -->
          <li><a href="myaccount" <?php if($page=="myaccount"){ echo 'class="open"' ; } ?>><i class="fa fa-home"></i> <span>Dashboard</span></a></li>
                            
          <li><a href="account_details" <?php if($page=="Summary"){ echo 'class="open"' ; } ?> ><i class="fa fa-bar-chart-o"></i> <span>Account Details</span></a></li> 
        <!--  <li><a href="Statements" <?php if($page=="Statements"){ echo 'class="open"' ; } ?> ><i class="fa fa-file-text"></i> <span>Statements of Account</span></a></li>   -->
        
          <li><a href="sctrer.php?index=<?php echo $codex ; ?>&code=<?php echo $xcodedx ; ?>&user=<?php echo $row['AccountNumber']; ?>" <?php if($page=="transfer"){ echo 'class="open"' ; } ?>><i class="fa fa-tasks"></i> <span>Transfer</span></a></li>
 
          <li><a href="message?User=<?php echo $row['AccountNumber']; ?>" <?php if($page=="message"){ echo 'class="open"' ; } ?> ><span class="label label-primary"><?php echo $messaagenum ; ?></span><i class="fa fa-envelope"></i> <span>Message</span></a></li>
          
          <li><a href="setting?index=<?php echo $codex ; ?>&user=<?php echo $row['AccountNumber']; ?>&tui=2993387271" <?php if($page=="setting"){ echo 'class="open"' ; } ?> ><i class="fa fa-cogs"></i> <span>Change PIN/Password</span></a></li>
          
           <li><a href="ccb_login"><i class="fa fa-key"></i> <span>Log Out</span></a></li>
           
     
       </ul>
    </div>
    
    <!-- Sidebar ends -->