<!DOCTYPE html>
<? 
if((!(isset($_SESSION['customerid'])))&&(!(isset($_SESSION['adminid']))))
    header('Location:login.php?error=plslogin');
    
    $mailreq = mysql_query("select * from mail where reciverid='".$_SESSION['customerid']."'  AND status='New' ");

if(isset($_GET["mailid"]))
{
	
}
else if(isset($_SESSION['customerid']))
    $result= mysql_query("SELECT * FROM mail where reciverid='$_SESSION[customerid]' AND status='New' ");
    
    

?>
<?
$query="SELECT * from system_settings"; 
 $result = mysqli_query($con,$query);

while($row = mysqli_fetch_array($result))
{
$cur=$row['currency'];
$sbank=$row['bank_name'];
$color=$row['theme_color'];
								   
 }?>
 
 
<html lang="en">

<head>

    <!-- Meta tags -->

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<meta name="description" content="A digitalized banking software">

<meta name="keywords" content="Royal Trust Credit Union">

<script src="../assets/js/custom/sweetalert.min.js"></script>

<!-- /meta tags -->

<title><?php echo $_SESSION[customername]; ?></title>



<!-- Site favicon -->

<link rel="shortcut icon" href="images/logo2.png" 
type="image/x-icon">

<!-- /site favicon -->



<!-- Font Icon Styles -->

<link rel="stylesheet" href="../assets/node_modules/flag-icon-css/css/flag-icon.min.css">

<link rel="stylesheet" href="../assets/vendors/gaxon-icon/styles.css">

<!-- /font icon Styles -->



<!-- Perfect Scrollbar stylesheet -->

<link rel="stylesheet" href="../assets/node_modules/perfect-scrollbar/css/perfect-scrollbar.css">

<!-- /perfect scrollbar stylesheet -->



<!-- Load Styles -->    <link rel="stylesheet" href="../assets/css/<?php echo $color;?>">
<!-- Load Styles -->    <link rel="stylesheet" href="../assets/css/style.min.css">

    <!-- /load styles -->



</head>

<body class="dt-sidebar--fixed dt-header--fixed">



<!-- Loader -->

<div class="dt-loader-container">

  <div class="dt-loader">

    <svg class="circular" viewBox="25 25 50 50">

      <circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle>

    </svg>

  </div>

</div>

<!-- /loader -->

<!-- Root -->

<div class="dt-root">

    <div class="dt-root__inner">

        <!-- Header -->

<header class="dt-header ">



  <!-- Header container -->

  <div class="dt-header__container">



    <!-- Brand -->

    <div class="dt-brand">



      <!-- Brand tool -->

      <div class="dt-brand__tool" data-toggle="main-sidebar">

        <i style="color:535353;" class="icon icon-apps icon-sm icon-fw"></i>
      </div>

      <!-- /brand tool -->



      <!-- Brand logo -->

      <span class="dt-brand__logo">

        <a class="dt-brand__logo-link" href="login.php">

          <img class="" width="109" height="" src="../assets/images/rbs-logo.png" alt="ibank">

        </a>

      </span>

      <!-- /brand logo -->


    </div>

    <!-- /brand -->



    <!-- Header toolbar-->

    <div class="dt-header__toolbar">



      <!-- Search box -->

      <form class="search-box d-none d-lg-block" action="searchresult.php" method="get">

        <div class="input-group" >

          <input class="form-control" name="query" placeholder="Type Credit or Debit to show debit or credit records" value="" type="search">

          <span class="search-icon"><i class="icon icon-revenue icon-lg"></i></span>

          <div class="input-group-append">

            <button class="btn btn-danger" type="submit"><i class="icon icon-search icon-lg"></i>Search

            </button>



          </div>

        </div>

      </form>

      <!-- /search box -->



      <!-- Header Menu Wrapper -->

      <div class="dt-nav-wrapper">

        <!-- Header Menu -->

        <ul class="dt-nav d-lg-none">

          <li class="dt-nav__item dt-notification-search dropdown">



            <!-- Dropdown Link -->

            <a href="#" class="dt-nav__link dropdown-toggle no-arrow" data-toggle="dropdown"

               aria-haspopup="true" aria-expanded="false"> <i style="color:535353;" class="icon icon-search icon-fw icon-lg"></i> </a>

            <!-- /dropdown link -->



            <!-- Dropdown Option -->

            <div class="dropdown-menu">



              <!-- Search Box -->

              <form class="search-box right-side-icon">

                <input class="form-control  form-control-lg" name="query" type="search" placeholder="Type Credit or Debit to show debit or credit records">

                <button type="submit" class="search-icon"><i class="icon icon-search icon-lg"></i></button>

              </form>

              <!-- /search box -->



            </div>

            <!-- /dropdown option -->



          </li>

        </ul>

        <!-- /header menu -->



        <!-- Header Menu -->

      



        <!-- Header Menu -->

        <ul class="dt-nav">

         

          <li class="dt-nav__item dt-notification dropdown">



            <!-- Dropdown Link -->

            <a href="#" class="dt-nav__link dropdown-toggle no-arrow" data-toggle="dropdown"

               aria-haspopup="true" aria-expanded="false"> <span style="color:535353;">(<?php echo mysql_num_rows($mailreq); ?>)</span><i style="color:535353;" class="icon icon-open-mail icon-fw">
               </i> 
                </a>

            <!-- /dropdown link -->



            <!-- Dropdown Option -->

            <div class="dropdown-menu dropdown-menu-right dropdown-menu-media">

              <!-- Dropdown Menu Header -->

              <div class="dropdown-menu-header">

                <h4 class="title"> New Messages (<?php echo mysql_num_rows($mailreq); ?>)</h4>



               
              </div>

              <!-- /dropdown menu header -->



             


              <!-- Dropdown Menu Footer -->

              <div class="dropdown-menu-footer">

                <a href="inbox.php" class="card-link"> View All <i class="icon icon-arrow-right icon-fw"></i>

                </a>

              </div>

              <!-- /dropdown menu footer -->

            </div>

            <!-- /dropdown option -->



          </li>

        </ul>

        <!-- /header menu -->






        <!-- Header Menu -->

        <ul class="dt-nav">

          <li class="dt-nav__item dropdown">



            <!-- Dropdown Link -->

            <a href="#" class="dt-nav__link dropdown-toggle no-arrow dt-avatar-wrapper"

               data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

          <img class="au" style="border-radius:50px; margin-right:4px;" width="40" height="40" src="../assets/images/large.png" alt="ibank">

              <span class="dt-avatar-info d-none d-sm-block">

                <span style="color:535353;" class="dt-avatar-name"><?php echo $_SESSION[customername]; ?></span>

              </span> </a>

            <!-- /dropdown link -->



            <!-- Dropdown Option -->

            <div class="dropdown-menu dropdown-menu-right">

              <div class="dt-avatar-wrapper flex-nowrap p-6 mt--5 bg-gradient-purple text-white rounded-top">

          <img class="" width="40" height="40" src="../assets/images/icon-account.png" alt="ibank">

                <span class="dt-avatar-info">

                  <span class="dt-avatar-name"><?php echo $_SESSION[customername]; ?></span>

                 

                </span>

              </div>

              <a class="dropdown-item" href="myprofile.php"> <i class="icon icon-user icon-fw mr-2 mr-sm-1"></i>Account

              </a> <a class="dropdown-item" href="password.php">

                <i class="icon icon-settings icon-fw mr-2 mr-sm-1"></i>Setting </a>

              <a class="dropdown-item" href="logout.php"> <i class="icon icon-logout icon-fw mr-2 mr-sm-1"></i>Logout

              </a>

            </div>

            <!-- /dropdown option -->



          </li>

        </ul>

        <!-- /header menu -->

      </div>

      <!-- Header Menu Wrapper -->



    </div>

    <!-- /header toolbar -->



  </div>

  <!-- /header container -->



</header>

<!-- /header -->

        <!-- Site Main -->

        <main class="dt-main">

            <!-- Sidebar -->

<aside id="main-sidebar" class="dt-sidebar">

  <div class="dt-sidebar__container">



    <!-- Sidebar Navigation -->

    <ul class="dt-side-nav">



      <!-- Menu Header -->

      <li class="dt-side-nav__item dt-side-nav__header">

        <span class="dt-side-nav__text">My Account</span>

      </li>

      <!-- /menu header -->



      <!-- Menu Item -->

     <li class="dt-side-nav__item">

        <a href="dashboard.php" class="dt-side-nav__link" title="Widgets"> <i class="icon icon-menu icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Dashboard</span> </a>

      

      </li>

      <li class="dt-side-nav__item">

        <a href="myprofile.php" class="dt-side-nav__link" title="Widgets"> <i class="icon icon-user icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Account Details</span> </a>

      </li>
       <li class="dt-side-nav__item">

        <a href="statement.php" class="dt-side-nav__link" title="Widgets"> <i class="icon icon-financerate icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Account Statement</span> </a>

      </li>
      

 
      

      <!-- Menu Header -->

      <li class="dt-side-nav__item dt-side-nav__header">

        <span class="dt-side-nav__text">Fund Transfer</span>

      </li>

      <!-- /menu header -->

		<li class="dt-side-nav__item">

        <a href="interbank.php" class="dt-side-nav__link" title="Basic Form"> <i class="icon icon-dollar-circle icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Inter-Bank</span> </a>

      </li>
      <li class="dt-side-nav__item">

        <a href="otherbanks.php" class="dt-side-nav__link" title="Basic Form"> <i class="icon icon-dollar-circle icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Other Banks</span> </a>

      </li>
      <li class="dt-side-nav__item">

        <a href="international.php" class="dt-side-nav__link" title="Basic Form"> <i class="icon icon-dollar-circle icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">International Transfer</span> </a>

      </li>
      <li class="dt-side-nav__item">

        <a href="transferhistory.php" class="dt-side-nav__link" title="Basic Form"> <i class="icon icon-forms-basic icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Transfer History</span> </a>

      </li>
      <!-- /menu item -->




    

      <!-- Menu Header -->

      <li class="dt-side-nav__item dt-side-nav__header">

        <span class="dt-side-nav__text">Loan Account</span>

      </li>

      <!-- /menu header -->



      <!-- Menu Item -->

      <li class="dt-side-nav__item">

        <a href="newloan.php" class="dt-side-nav__link" title="Basic Form"> <i class="icon icon-timer icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">New Loan</span> </a>

      </li>

      <li class="dt-side-nav__item">

        <a href="viewloan.php" class="dt-side-nav__link" title="File Upload"> <i class="icon icon-file-upload icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">View Loan</span> </a>

      </li>

      <!-- /menu item -->
      
      <li class="dt-side-nav__item">

        <a href="payloan.php" class="dt-side-nav__link" title="File Upload"> <img class="na" width="16" height="" src="../assets/images/business.png" alt="ibank">

          <span class="dt-side-nav__text">Pay Loan</span> </a>

      </li>

      <!-- /menu item -->
      
      <li class="dt-side-nav__item">

        <a href="loanpayhistory.php" class="dt-side-nav__link" title="File Upload"> <i class="icon icon-file-upload icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Payment History</span> </a>

      </li>

      <!-- /menu item -->



      <!-- Menu Header -->

      <li class="dt-side-nav__item dt-side-nav__header">

        <span class="dt-side-nav__text">Messages</span>

      </li>

      <!-- /menu header -->



      

      <li class="dt-side-nav__item">

        <a href="inbox.php" class="dt-side-nav__link" title="Notifications">

          <i class="icon icon-mail icon-fw icon-lg"></i> <span class="dt-side-nav__text">New Message (<?php echo mysql_num_rows($mailreq); ?>)</span>

        </a>

      </li>

      <li class="dt-side-nav__item">

        <a href="sent.php" class="dt-side-nav__link" title="Drag & Drop"> <i class="icon icon-send icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Sent Messages</span> </a>

      </li>

      <!-- /menu item -->



      <!-- Menu Header -->

      <li class="dt-side-nav__item dt-side-nav__header">

        <span class="dt-side-nav__text">Account Security</span>

      </li>

      <!-- /menu header -->



      <!-- Menu Item -->

     <li class="dt-side-nav__item">

        <a href="password.php" class="dt-side-nav__link" title="Drag & Drop"> <i class="icon icon-lockscreen icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Account Password</span> </a>

      </li><li class="dt-side-nav__item">

        <a href="pin.php" class="dt-side-nav__link" title="Drag & Drop"> <i class="icon icon-forgot-pass icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Transaction Pin</span> </a>

      </li>

    
      <!-- Menu Header -->

      <li class="dt-side-nav__item dt-side-nav__header">

        <span class="dt-side-nav__text">Logout</span>

      </li>

      <li class="dt-side-nav__item">

        <a href="logout.php" class="dt-side-nav__link" title="Drag & Drop"> <i class="icon icon-logout icon-fw icon-lg"></i>

          <span class="dt-side-nav__text">Logout</span> </a>

      </li>

    <!-- /sidebar navigation -->



  </div>

</aside>

<!-- /sidebar -->
