<?php
include("conn.php");
if(!isset($_SESSION["username"]) && !isset($_SESSION['act_number'])) {
header("location:index.php");
}
if(isset($_SESSION['act_number'])){
	$get_details = custom_mysql_fetch_array(custom_mysql_query("SELECT * FROM act_holder_details WHERE cust_act_number = '".$_SESSION['act_number']."'"));
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
	
	<meta charset="utf-8">
	<title>Admin Console</title>
<Meta name= "ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">

	<!-- The styles -->
	<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
	<link href="css/bootstrap-responsive.css" rel="stylesheet">
	<link href="css/charisma-app.css" rel="stylesheet">
	<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<link href='css/fullcalendar.css' rel='stylesheet'>
	<link href='css/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='css/chosen.css' rel='stylesheet'>
	<link href='css/uniform.default.css' rel='stylesheet'>
	<link href='css/colorbox.css' rel='stylesheet'>
	<link href='css/jquery.cleditor.css' rel='stylesheet'>
	<link href='css/jquery.noty.css' rel='stylesheet'>
	<link href='css/noty_theme_default.css' rel='stylesheet'>
	<link href='css/elfinder.min.css' rel='stylesheet'>
	<link href='css/elfinder.theme.css' rel='stylesheet'>
	<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='css/opa-icons.css' rel='stylesheet'>
	<link href='css/uploadify.css' rel='stylesheet'>
    <link href='css/custom.style.css' rel='stylesheet'>
    <style>
.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {background-color: #3e8e41;}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- The fav icon -->
	<link rel="shortcut icon" href="img/favicon.ico">
		
<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>
</head>
<body><!-- topbar starts -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="dashboard.php"> <!--<img alt="Logo" src="logo.jpg" /> --><span></span></a>
		
				<!-- user dropdown starts -->
				<div class="btn-group pull-right" >
							<div class="dropdown">
  <button class="dropbtn">Welcome! admin</button>
  <div class="dropdown-content">
    <a href="password.php">change Password</a>
    <a href="logout.php">logout</a>
    
  </div>
</div>
				</div>
				<!-- user dropdown ends -->
				
				<div class="top-nav nav-collapse">
					<ul class="nav">
                    <span style="float:left; margin-left:-185px;"><img src="img/short_logo.png" width="58" height="57" alt="slogo"></span><span style="float:left; margin-left:-116px;"><img src="logo.png" width="180" height="85" alt="letter"></s
						>
						<!--<li>
							<form class="navbar-search pull-left">
								<input placeholder="Search" class="search-query span2" name="query" type="text">
							</form>
						</li>-->
					</ul>
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<!-- topbar ends -->
	
	<div class="container-fluid">
		<div class="row-fluid">
		
		
			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<div class="well nav-collapse sidebar-nav">
                <?php
				if(isset($_SESSION['username'])) { /* Admin Menu  */
				?>
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li class="nav-header hidden-tablet">Admin Menu</li>
						<li><a class="ajax-link" href="dashboard.php"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>                        
                        <li class="nav-header hidden-tablet"> Admin Panel </li>
                        <!--<li><a class="ajax-link" href="open_account.php"><i class="icon-edit"></i><span class="hidden-tablet"> Open Account </span></a></li>-->
                        <li><a class="ajax-link" href="view_type.php"><i class="icon-edit"></i><span class="hidden-tablet"> Account Type </span></a></li>
                        <li><a class="ajax-link" href="view_branch.php"><i class="icon-edit"></i><span class="hidden-tablet"> Branch create </span></a></li>
                        <!--<li><a class="ajax-link" href="view_user.php"><i class="icon-edit"></i><span class="hidden-tablet"> User </span></a></li>-->
                        <li class="nav-header hidden-tablet">Account</li>
                      
                        <li><a class="ajax-link" href="view_act_holder.php"><i class="icon-edit"></i><span class="hidden-tablet"> Account Holder </span></a></li>
                        <!--<li><a class="ajax-link" href="fund_transfer.php"><i class="icon-edit"></i><span class="hidden-tablet"> Fund Transfer </span></a></li>-->
                        <li><a class="ajax-link" href="transaction_details.php"><i class="icon-edit"></i><span class="hidden-tablet"> Pending Transfers</span></a></li>
                        <li><a class="ajax-link" href="stop_orders.php"><i class="icon-edit"></i><span class="hidden-tablet"> Stop Orders </span></a></li>
                        <li><a class="ajax-link" href="statement.php"><i class="icon-edit"></i><span class="hidden-tablet"> Statement </span></a></li>
                        <li><a class="ajax-link" href="mini_statement.php"><i class="icon-edit"></i><span class="hidden-tablet"> Mini Statement </span></a></li>
                        <li class="nav-header hidden-tablet">Transaction</li>
                        <li><a class="ajax-link" href="current_act_transaction.php"><i class="icon-edit"></i><span class="hidden-tablet"> Checking Account </span></a></li>
                        <li><a class="ajax-link" href="savings_act_transaction.php"><i class="icon-edit"></i><span class="hidden-tablet"> Personal Account </span></a></li>
                        <li class="nav-header hidden-tablet"> Checking and Personal </li>
                        <li><a class="ajax-link" href="current_act_details.php"><i class="icon-edit"></i><span class="hidden-tablet"> Checking Details </span></a></li>
                        <li><a class="ajax-link" href="savings_act_details.php"><i class="icon-edit"></i><span class="hidden-tablet"> Personal Details </span></a></li>
                        <li class="nav-header hidden-tablet"> Reports </li>
                        <li><a class="ajax-link" href="bank_report.php"><i class="icon-edit"></i><span class="hidden-tablet"> Branch wise </span></a></li>
                        <li><a class="ajax-link" href="account_report.php"><i class="icon-edit"></i><span class="hidden-tablet"> Account wise </span></a></li>
                        <li><a class="ajax-link" href="customer_report.php"><i class="icon-edit"></i><span class="hidden-tablet"> Customer wise </span></a></li>
                        <!--<li><a class="ajax-link" href="#"><i class="icon-edit"></i><span class="hidden-tablet"> Transaction wise </span></a></li>-->
                        <li><a class="ajax-link" href="transaction_report.php"><i class="icon-edit"></i><span class="hidden-tablet"> Transaction wise </span></a></li>
                        <li class="nav-header hidden-tablet"> Cheque </li>
                        <li><a class="ajax-link" href="issue_cheque_view.php"><i class="icon-edit"></i><span class="hidden-tablet"> Issue Cheque </span></a></li>
                        <li><a class="ajax-link" href="chequebook_view.php"><i class="icon-edit"></i><span class="hidden-tablet"> Cheque Book </span></a></li>
                        <li class="nav-header hidden-tablet"> Issue Cards </li>
                        <li><a class="ajax-link" href="debit_card_stat.php"><i class="icon-edit"></i><span class="hidden-tablet"> Debit Card </span></a></li>
                        <li><a class="ajax-link" href="credit_card_stat.php"><i class="icon-edit"></i><span class="hidden-tablet"> Credit Card </span></a></li>
                        <li class="nav-header hidden-tablet"> Balance </li>
                        <li><a class="ajax-link" href="manage_balance.php"><i class="icon-edit"></i><span class="hidden-tablet"> Manage Account Balance </span></a></li>
                        <li><a class="ajax-link" href="balance_details.php"><i class="icon-edit"></i><span class="hidden-tablet"> Customer Balance Details </span></a></li>
                        <li><a class="ajax-link" href="beneficiary.php"><i class="icon-edit"></i><span class="hidden-tablet"> Beneficiary Data </span></a></li>
                        
					</ul>
                <?php } ?>
               
                <?php
				if(isset($_SESSION['act_number']) && !empty($_SESSION['act_number'])) { /* Custmore Menu */
				?>
                    <ul class="nav nav-tabs nav-stacked main-menu">
						<li class="nav-header hidden-tablet">Customer Panel</li>
						<li><a class="ajax-link" href="cust_home.php"><i class="icon-home"></i><span class="hidden-tablet"> Home </span></a></li>
						<li><a class="ajax-link" href="add_cust.php"><span class="hidden-tablet">Add Customer </span></a></li>
						
                        <li class="nav-header hidden-tablet">Account</li>
                        <li><a class="ajax-link" href="act_details.php"><i class="icon-edit"></i><span class="hidden-tablet"> Account Holder Details </span></a></li>
                        <li><a class="ajax-link" href="fund_transfer.php"><i class="icon-edit"></i><span class="hidden-tablet"> Fund Transfer </span></a></li>
                        <li><a class="ajax-link" href="cust_transaction_details.php"><i class="icon-edit"></i><span class="hidden-tablet"> Transaction Details </span></a></li>
                        <li><a class="ajax-link" href="cust_statement.php"><i class="icon-edit"></i><span class="hidden-tablet"> Statement </span></a></li>
                        <li><a class="ajax-link" href="cust_mini_statement.php"><i class="icon-edit"></i><span class="hidden-tablet"> Mini Statement </span></a></li>
                        <li class="nav-header hidden-tablet">Cheque</li>
                        <li><a class="ajax-link" href="issue_cheque_view.php"><i class="icon-edit"></i><span class="hidden-tablet"> Issue Cheque </span></a></li>
                        <li><a class="ajax-link" href="request_chequebook_view.php"><i class="icon-edit"></i><span class="hidden-tablet"> Request Cheque Book </span></a></li>
                        <li class="nav-header hidden-tablet">Card</li>
                        <li><a class="ajax-link" href="request_card_view.php"><i class="icon-edit"></i><span class="hidden-tablet"> Request Card </span></a></li>
                       
					</ul>
				<?php } ?>	
				</div><!--/.well -->
			</div><!--/span-->
			<!-- left menu ends -->
			
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			
			<div id="content" class="span10">
			<!-- content starts -->