<?php ob_start(); 
session_start();
?>
<!DOCTYPE html>
<html>
<?php include "layouts/db_connect.php"; ?>
<?php
if($_SESSION['uname']==""&&$_SESSION['pwd']=="")
{
header("location:index.php");
}
	?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<!-- Meta, title, CSS, favicons, etc. -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta http-equiv="X-UA-Compatible" content="chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1">
<?php 
		 if(isset($_SESSION['code'])) {
	  $code = $_SESSION['code'];
	  $scode = $_SESSION['code'];
	   $mfin = $_SESSION['mfin'];
		$staff = $_SESSION['name'];
		 $postt = $_SESSION['postt'];
		  $stss = $_SESSION['stss'];
		  $mfin222 = $_SESSION['mfin222'];
	} ?>
		<title><?php echo $mfin; ?></title>
<link rel="icon" href="layouts/favicon.ico" type="image/x-icon">
		<!-- Bootstrap -->
		<link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
		<!-- Font Awesome -->
		<link href="vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
		<!-- NProgress -->
		<link href="vendors/nprogress/nprogress.css" rel="stylesheet">
		<!-- iCheck -->
		<link href="vendors/iCheck/skins/flat/green.css" rel="stylesheet">
		<link href="vendors/datatables.finnet-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.finnet-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.finnet-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.finnet-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.finnet-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">
		    <link href="vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
    <!-- bootstrap-datetimepicker -->
    <link href="vendors/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css" rel="stylesheet">
    <!-- Ion.RangeSlider -->
    <link href="vendors/normalize-css/normalize.css" rel="stylesheet">
    <link href="vendors/ion.rangeSlider/css/ion.rangeSlider.css" rel="stylesheet">
    <link href="vendors/ion.rangeSlider/css/ion.rangeSlider.skinFlat.css" rel="stylesheet">

    <link href="vendors/cropper/dist/cropper.min.css" rel="stylesheet">
		<!-- bootstrap-progressbar -->
		<link href="vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
		<!-- JQVMap -->
		<link href="vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
		<!-- bootstrap-daterangepicker -->
		<link href="vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
	  <link rel="stylesheet" href="font.css">
	<link rel="stylesheet" href="bfont/font.css">
        <style type="text/css">
		/* when @font-face is defined(it is in font.css) you can add the font to any rule by using font-family */
		hh1 {
			font-family: 'BAUHS93';
		}
		</style>
		<!-- Custom Theme Style -->
		<link href="build/css/custom.min.css" rel="stylesheet">
		<!-- jQuery custom content scroller -->
		
    <link href="vendors/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.min.css" rel="stylesheet"/>
		 <script src="vendors/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"></script>
	<script type="text/javascript"
	  src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
	<script type="text/javascript">
		  $(function() {
	   $("#datepicker").datepicker({ dateFormat: 'dd-mm-yy' });
	  });
	</script>
	<script type="text/javascript">
	function zp(n){
	return n<10?("0"+n):n;
	}
	function insertDate(t,format){
	var now=new Date();
	var DD=zp(now.getDate());
	var MM=zp(now.getMonth()+1);
	var YYYY=now.getFullYear();
	format=format.replace(/DD/,DD);
	format=format.replace(/MM/,MM);
	format=format.replace(/YYYY/,YYYY);
	t.value=format;
	}
	</script>
		<script>
	  $(function() {
	   $("#datepicker1").datepicker({ dateFormat: 'dd-mm-yy' });
	  });
	  </script>
		<script>
	  $(function() {
	   $("#datepicker2").datepicker({ dateFormat: 'dd-mm-yy' });
	  });
	  </script>
		  <script>
	  $(function() {
	   $("#datepicker8").datepicker({ dateFormat: 'dd-mm-yy' });
	  });
	  </script>
		<script>
	  $(function() {
	   $("#datepicker9").datepicker({ dateFormat: 'dd-mm-yy' });
	  });
	  </script>
	  <script type="text/javascript">

		function PrintElem(elem)
		{
			Popup($(elem).html());
		}

		function Popup(data) 
		{
			var mywindow = window.open('', 'my div', 'height=400,width=600');
			mywindow.document.write('<html><head><title><?php echo $mfin; ?></title>');
			/*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
			mywindow.document.write('</head><body >');
			mywindow.document.write(data);
		   mywindow.document.write('</body></html>');

			mywindow.print();
			mywindow.close();

			return true;
		}

	</script>
	  
	  </head>

	  <body class="nav-md">
	   <?php 
 $qry=mysqli_query($conn, "select * from customer where code='$code'");
		 $row=mysqli_fetch_array($qry);
		 ?>	
		<div class="container body">
		  <div class="main_container">
			<div class="col-md-3 left_col">
			  <div class="left_col scroll-view">
				<div class="navbar nav_title" style="border: 0;">
				  <a href="index.php" class="site_title"> <span><h1><hh1><font color="red" face="Bauhaus 93">INFO</font><font color="#0d0a95" face="Bauhaus 93">SSEL</font></h1></hh1></span></a>
				</div>
				

				<div class="clearfix"></div>

				<!-- menu profile quick info 
				<div class="profile clearfix">
				  <div class="profile_pic">
					<img src="finuser/<?php // echo $row['uimg']; ?>" width="75" height="60" alt="..." class="img-circle profile_img">
				  </div>
				  <div class="profile_info">
					<span>Welcome,</span>
					<h2><?php //echo $mfin; ?></h2>
				  </div>
				</div>
				<!-- /menu profile quick info -->


				<!-- sidebar menu -->
				<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
				  <div class="menu_section">
					<h3></br></h3>
					<ul class="nav side-menu">
				<?php if(($mfin222 == 'All Company') || ($mfin222 == NULL)) {  ?>	<li> <form name="form22111111111" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
  <div class="input-group">
    <input type="text" class="form-control" name="ss" id="ss"  placeholder="A/C No" autofocus>
    <div class="input-group-btn">
      <button class="btn btn-info" name="sss5555" type="submit">
        <i class="glyphicon glyphicon-search"></i>
      </button>
    </div>
  </div>
   <div>
	<?php
							if(isset($_POST['sss5555']))
							{
								extract($_POST);
									header("location:0fvno2.php?vno=$ss");
							}
?>
	  </div>
				</form></li> <?php } ?>
					  <li><a href="index2.php"  data-toggle="tooltip" title="Home Page"><i class="fa fa-home"></i> Dashboard </a>
					  </li>
				 <li><a href="all2.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-search"></i> Search </a>
					  </li>
					  
					  <?php if($mfin=='Group') {
						  ?>
						   <li><a href="gglview.php"  data-toggle="tooltip" title="Group HP Ledger"><i class="fa fa-book"></i> Group  Re-Pledge </a>
					  </li>
					   <li><a href="ggbillrep.php"  data-toggle="tooltip" title="Group HP Receipt "><i class="fa fa-print"></i> Group  Receipt </a>
					  </li>
					   <li><a href="ggclosedacc.php"  data-toggle="tooltip" title="Group HP Settle "><i class="fa fa-support"></i> Group  Settle </a>
					  </li>
				
					  <li><a href="ggpending55.php"  data-toggle="tooltip" title="rpending List "><i class="fa fa-question-circle"></i>Group rpending List </a>
					  </li>
				<!--	  <li><a><i class="fa fa-question-circle"></i> Group rpending List <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
							
								<li class="blue">
									<a href="ggpending55.php">rpending List</a>
								</li>
								<li class="blue">
									<a href="ggpendcat.php">Cat Wise</a>
								</li>
						</li>  -->
					  	 <?php if($postt == 'MD')   { ?> 
						  <li><a href="gghpcol.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-tasks"></i>Collection </a>
					  </li>
					  
					   <li><a href="ggbrep.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-tasks"></i> Business Report </a>
					  </li>
					 
						 <?php } ?>
						  
				<?php	  } else { ?>
			<!--	<li><a ><i class="fa fa-search"></i> Search <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						    <li class="blue">
									<a href="all.php" data-toggle="tooltip" title="All Finance View"><i class="fa fa-dashboard fa-fw"></i>Common Search</a>
								</li>
					
								<li class="blue">
									<a href="allmfin.php" data-toggle="tooltip" title="In Finance View"><i class="fa fa-dashboard fa-fw"></i>In-Company Search</a>
								</li>
								<li class="blue">
									<a href="allcus.php" data-toggle="tooltip" title="All Entries"><i class="fa fa-dashboard fa-fw"></i>All Customers</a>
								</li>
								
							</ul>
						
						</li>-->
							<!-- second-level-items 	 <li><a ><i class="fa fa-balance-scale"></i> Pre-Loan Process <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						 <li><a href="entry.php">Create</a>
                            </li>
							 <li><a href="eview.php">View</a>
                            </li>
							
							</ul>
			
						</li>		  -->
				<?php if(($postt == 'MD') || ($postt == 'Office All') || ($postt == 'Office') || ($postt == 'Office POSTING') || ($postt == 'Partner'))   { ?>     
			
			
				<li><a><i class="fa fa-book"></i>Pledge Entry <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						
					
                            <li><a href="register11s2.php">Create</a>
                            </li>
                           
                            <li><a href="lview.php">View</a>
                            </li>
							
								
								
						 <li class="blue">
							 <a>RePledge <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						  <li><a href="finregister11s.php">Create Repledge</a>
                            </li>
                           
                            <li><a href="finlview.php">View Repledge</a>
                            </li>
							<li><a href="finsearch55.php">Receipt Create</a>
                            </li>
							  <li><a href="finbillrep.php">View Receipt</a>
                            </li>
						</ul>
						</li>
						 
						 <!-- <li class="blue">
							 <a>Binding Loan <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						
						<li class="blue">
									<a>MothlyLoan Ledger<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                            <li><a href="monregister11.php">Create</a>
                            </li>
                           
                            <li><a href="monlview.php">View</a>
                            </li>
							 
                          </ul>
								</li>
								<li class="blue">
									<a>MothlyLoan Receipt<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
                            <li><a href="monsearch55.php">Receipt Create</a>
                            </li>
							  <li><a href="monbillrep.php">View</a>
                            </li>
							
                          </ul>
								</li>
								
							
							</ul>
						</li> -->
								
								
 
		
								
			
				<?php } if(($postt == 'MD') || ($postt == 'Office All') || ($postt == 'Office') || ($postt == 'Office POSTING') || ($postt == 'Partner'))   { ?>     

							
								
								<li class="blue">
									<a>Voucher<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
                         <li><a href="voucher.php?vt=Payment" >Create</a>
                            </li>
                            <li><a href="vvoucher.php">View</a>
                            </li>
                          </ul>
								</li>
								<li class="blue">
									<a>Actioned List<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           <li><a href="sizzing.php">Entry</a>
                            </li>
                           
                            <li><a href="sizzingcls.php">Details</a>
                            </li>
                          </ul>
								</li>
									<li class="blue">
									<a>Bad Debts<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
                            <li><a href="bad.php">Bad Debts Create</a>
                            </li>
                            <li><a href="vbad.php">Bad Debts View</a>
                            </li>
							   
                          </ul>
								</li>
								
							</ul>
						</li>
				<?php } ?>
				    
	  <?php  if($postt == 'MD') { ?>  
	<li><a><i class="fa fa-share"></i> Transfer <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
	     
						   <li class="blue">
									<a href="tranc.php">Customer</a>
								</li>
								
							 <li class="blue">
									<a href="tranp.php">Packet</a>
								</li>
								
					
							</ul>
						   
						</li> <?php } ?>  
		 <?php  if(($postt == 'MD') || ($postt == 'Partner') || ($postt == 'Office All'))   { ?>  <li><a><i class="fa fa-leaf"></i> Master <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
	     
							<?php  if($postt == 'MD') { ?>		  
							 <li class="blue">
									<a href="mveh.php">Gold Type</a>
								</li>
								 <li class="blue">
									<a href="msch.php">Scheme</a>
								</li>
						<?php } ?>
								 <li class="blue">
									<a href="marea.php">Area</a>
								</li>
								 <li class="blue">
									<a href="msarea.php">Sub Area</a>
								</li>
									 <li class="blue">
									<a href="mcust.php">Customer</a>
								</li>
								 <li class="blue">
									<a href="vmcust.php">View Customer</a>
								</li>
						
									<?php  if($postt == 'MD') { ?>		 	
 <li class="blue">
									<a href="bank.php">Bank</a>
								</li>
								
<li class="blue">
									<a href="godown.php">Lockers</a>
								</li>
								
								<li class="blue">
									<a href="mbroker.php">Broker</a>
								</li>
								
								
								
								<li class="blue">
									<a href="mgovt.php">Goverment ID</a>
								</li>
								 <li class="blue">
									<a href="mfin.php">Company Master</a>
								</li>
									 <li class="blue">
									<a href="mfingrp.php">Company Group</a>
								</li>
								
								<li class="blue">
									<a href="ledger.php">Ledger</a>
								</li>
								<li class="blue">
									<a href="ledgergrp.php">Ledger Group</a>
</li> <?php } ?>
							</ul>
						   
						</li> <?php } ?>
						
						 <li><a><i class="fa fa-question-circle"></i>Pledge Pending List <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
							
								<li class="blue">
									<a href="pros2.php">Refresh List</a>
								</li>
								
								<li class="blue">
									<a href="pending55.php">Pending List</a>
								</li>
						
								
								<li class="blue">
									<a href="lview2.php">Photo Pend</a>
								</li>
								<li class="blue">
									<a href="lviewgvt.php">Govt ID rpending</a>
								</li>
						
								 <li class="blue">
									<a href="pendingt.php">Termination A/C</a>
								</li> 
								 
								 
								</ul>
						</li> 
					 
							<?php if(($postt == 'MD') || ($postt == 'Partner'))   { ?>
					  <li><a><i class="fa fa-support"></i>Pledge Reports <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
										<li class="blue">
									<a href="allcusj.php">*Loans Crosing Jewel Rate</a>
								</li>
								
								
							<li class="blue">
									<a href="allcus.php">All Pledge LIST</a>
								</li>
								<li class="blue">
									<a href="allcusa.php">Pledge Active LIST</a>
								</li>
									<li class="blue">
									<a href="allcusc.php">Pledge Closed LIST</a>
								</li>
									<li class="blue">
									<a href="allcusca.php">Pledge Action LIST</a>
								</li>
									<li class="blue">
									<a href="0abillrep.php">1% Report</a>
								</li>
									<li class="blue">
									<a href="pendingt.php">Need to Action</a>
								</li>
							   <li class="blue">
									<a href="all2.php">Party Summary</a>
								</li>
								<li class="blue">
									<a href="billrep.php">Bill Report</a>
								</li>
									<li class="blue">
									<a href="billrepi.php">Interest Payment Bill</a>
								</li>
								<li class="blue">
									<a href="billrepp.php">Part Payment Bill</a>
								</li>
								<li class="blue">
									<a href="stock.php">Stock Report</a>
								</li>
								
									<li class="blue">
									<a href="hpcol.php">Smart Collection Report </a>
								</li>
						 		<li class="blue">
									<a href="vlogin.php">Login History</a>
								</li>
								
								
								
								<li class="blue">
									<a href="amnt.php">Pledge Wise Amnits</a>
								</li>
								
								<li class="blue">
									<a>Balance<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
			    <li><a href="hpbalp.php">Principle Balance</a></li>
			    
							 <li><a href="hpbali.php">Interest Balance</a></li>
						
							
                          </ul>
							</li>
								
							</ul>
							<!-- second-level-items -->
						</li> 
						
							  <li><a><i class="fa fa-support"></i>Re-Pledge Reports <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
										<li class="blue">
									<a href="rpros2.php">Refresh List</a>
								</li>
								
								<li class="blue">
									<a href="rpending55.php">Pending List</a>
								</li>
						
								
							<li class="blue">
									<a href="rallcus.php">All RePledge LIST</a>
								</li>
								<li class="blue">
									<a href="rallcusa.php">RePledge Active LIST</a>
								</li>
									<li class="blue">
									<a href="rallcusc.php">RePledge Closed LIST</a>
								</li>
									<li class="blue">
									<a href="rallcusca.php">RePledge Action LIST</a>
								</li>
									
									<li class="blue">
									<a href="rpendingt.php">Need to Action</a>
								</li>
							 
								<li class="blue">
									<a href="rbillrep.php">RePledge Bill Report</a>
								</li>
									<li class="blue">
									<a href="rbillrepi.php">Interest Payment Bill</a>
								</li>
								<li class="blue">
									<a href="rbillrepp.php">Part Payment Bill</a>
								</li>
								<li class="blue">
									<a href="rstock.php">Stock Report</a>
								</li>
								<li class="blue">
									<a href="rhpcol.php">Smart RePledge Report </a>
								</li>
						 		<li class="blue">
									<a href="amnt.php">RePledge Wise Amnits</a>
								</li>
								
								<li class="blue">
									<a>RePledge Balance<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
			    <li><a href="rhpbalp.php">RePledge Principle Balance</a></li>
			    
							 <li><a href="rhpbali.php">RePledge Interest Balance</a></li>
						
							
                          </ul>
							</li>
								
							</ul>
							<!-- second-level-items -->
						</li>
						
						<?php } ?>
						<?php if(($postt == 'MD') || ($postt == 'Partner')|| ($postt == 'Office All'))   { ?> 
						  <li><a><i class="fa fa-bar-chart"></i> Accounts <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
<li class="blue">
									<a href="day.php">Day Book</a>
								</li>
						
						<?php  if(($postt == 'MD') || ($postt == 'Partner'))   { ?> 			
							  <li class="blue">
									<a href="state.php">Statement</a>
								</li>
								  <li class="blue">
									<a href="state2.php">Account Statement</a>
								</li>
								<li class="blue">
									<a href="brep.php">Business Report</a>
								</li>
								
								<li class="blue">
									<a href="demand.php">Demand Statement</a>
								</li>
								
									<li class="blue">
									<a href="bals.php">Balance Sheet</a>
								</li>

							  <li class="blue">
									<a href="tbal.php">Trial Balance</a>
								</li>
							
							   <li class="blue">
									<a href="pnl.php">Profit & Loss</a>
								</li>
								<li class="blue">
									<a>Account's Book<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           <li class="blue">
									<a href="ledled.php">Ledger</a>
								</li>
								<li class="blue">
									<a href="ledvled.php?led=Cash A/c">Cash Book</a>
								</li>
									<li class="blue">
									<a href="ledvled.php?led=Bank A/c">Bank Book</a>
								</li>
							
                          </ul>
								</li>
								<?php } ?>
							</ul>
							<!-- second-level-items -->
						</li>  <?php } ?>
					<li><a><i class="fa fa-tasks"></i> Notice & Print's <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						<li class="blue">
									<a href="bprint.php">Back Print</a>
								</li>
						<li class="blue">
									<a href="notice6.php">Ledger Print</a>
								</li>
						 <li class="blue"><a href="year.php">Year Notice</a>
								</li>
								<li class="blue"><a href="action.php">Action Notice</a>
								</li>
								
								</ul>
						</li>
					
	 <li><a><i class="fa fa-archive"></i> Options <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						<?php	 if($postt == 'MD') { ?>
<li class="blue">
									<a href="setup.php">Settings</a>
						</li>
							<li class="blue">
									<a href="setup2.php">Dashboard Color Change</a>
						</li>
<li class="blue">
									<a href="smssetup.php">SMS Setup</a>
						</li>
						<?php } ?>
								  <li class="blue"><a href="pros2.php">Day Closing</a></li>
								  <li class="blue">
									<a href="pros.php">Send Due SMS</a>
								</li>
								<li class="blue">
									<a href="00acc.php">Account Close</a>
								</li>
								
							<?php	 if($postt == 'MD') { ?>  . <li class="blue">
									<a href="backup.php">Backup</a>
							</li>	<?php } ?>				
							</ul>
							<!-- second-level-items -->
					</li> 
				<?php } ?>
					 
					</ul>
				  </div>
		   

				</div>
				<!-- /sidebar menu -->

				<!-- /menu footer buttons -->
				<div class="sidebar-footer hidden-small">
				  <a data-toggle="tooltip" data-placement="top" title="Settings">
					<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
				  </a>
				  <a data-toggle="tooltip" data-placement="top" title="FullScreen">
					<span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
				  </a>
				  <a data-toggle="tooltip" data-placement="top" title="Lock">
					<span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
				  </a>
				  <a data-toggle="tooltip" data-placement="top" title="Logout" href="login.html">
					<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
				  </a>
				</div>
				<!-- /menu footer buttons -->
			  </div>
			</div>

			<!-- top navigation -->
			<div class="top_nav">
			  <div class="nav_menu">
				<nav>
				  <div class="nav toggle">
					<a id="menu_toggle"><i class="fa fa-bars"></i></a>
				  </div>

				  <ul class="nav navbar-nav navbar-right">
					<li class="">
					  <a href="javascript:;" class="finuser-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
						<img src="finuser/<?php echo $row['uimg']; ?>" alt=""><?php echo $row['name']; ?>
						<span class=" fa fa-angle-down"></span>
					  </a>
					  <ul class="dropdown-menu dropdown-usermenu pull-right">
						<li><a href="changepwd.php"> Change Password</a></li>
					 <?php 
					 if(($mfin222 == 'All Company') || ($mfin222 == NULL)) {  
					 $sql55 = mysqli_query($conn, "select * from mfin"); $i = 0;
  while($row55 = mysqli_fetch_array($sql55)) { $i++; $sen = $row55['name'];  ?>	<li><a href="index05.php?mfin=<?php echo $sen; ?>&scode=<?php echo $scode; ?>"><font color="blue"><b><?php echo $sen; ?></b></font></a>
					
						</li> <?php } $sentt = 'Group';?>
						<li><a href="index05.php?mfin=<?php echo $sentt; ?>&scode=<?php echo $scode; ?>"><font color="red"><b>Group</b></font></a>
					
						</li>
						<?php } ?>
						 <li>
												 <a href="memo.php">
													<i class="fa fa-clock-o warning"></i> Memo
												</a>
											</li> 
					
						<li><a href="index.php"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
					  </ul>
					</li>


		

				
					<li role="presentation" class="dropdown">
					  <a href="javascript:;"  title="Empployee Management" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
						<i class="fa fa-group"></i>
						<span class="badge bg-orange">*</span>
					  </a>
					  <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
					   <li>
												<a href="eatt.php">
													<i class="fa fa-users success"></i> EMP ATT
												</a>
											</li>
											<li>
												<a href="lapply.php">
													<i class="fa fa-users success"></i> Leave Apply
												</a>
											</li>
										   <li>
												<a href="salary.php">
													<i class="fa fa-inr success"></i> SALARY
												</a>
											</li>
									<?php	if($postt == 'MD') { ?>	 <li>
												<a href="empreport.php">
													<i class="fa fa-edit success"></i> Report
												</a>
									</li>
											 <li>
												<a href="newemp.php">
													<i class="fa fa-male warning"></i> New EMPLOYEE
												</a>
											</li>  <?php } ?>
					  </ul>
					</li>
				
					</li><center><h1><font color="blue" font="Arial Black"> <b><?php echo $mfin; ?></font></h1></b></center>
				  </ul>
				
				</nav>
			  </div>
			</div>
			<!-- /top navigation -->

