<?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'];
		  $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.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
		<link href="vendors/datatables.net-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">
	       <style>


@media (max-width: 768px) {

  	          .nav.child_menu {
  display: none; /* Hide by default */
}

.nav.child_menu.collapse {
  display: block !important; /* Show when expanded */
}
}
	      </style>
	      
	      
	   <?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="user/<?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">
					<li> <form name="form22111111111" class="form-horizontal" method="post" action="" enctype="multipart/form-data">

    
    <?php
    function isMobileDevice() {
    $userAgent = $_SERVER['HTTP_USER_AGENT'];

    // Check if user agent matches common mobile device signatures
    $mobileDevices = ['Android', 'iPhone', 'iPad', 'iPod', 'Windows Phone', 'BlackBerry', 'Opera Mini', 'Mobile'];

    foreach ($mobileDevices as $device) {
        if (stripos($userAgent, $device) !== false) {
            return true; // It's a mobile device
        }
    }
    return false; // It's likely a laptop or desktop
}

  if (isMobileDevice()) {
      ?>
      
        <?php
    } else {
        
  
    
    ?>
    <div class="input-group">
    <input type="text" class="form-control" name="ss" id="ss" placeholder="A/C No or Loan No" autofocus>
    <select class="form-control" name="rctype" id="rctype">
        <option value="Daily">Daily</option>
        <option value="Weekly">Weekly</option>
        <option value="Monthly">Monthly</option>
    </select>
    <script>
    // Add an event listener to the 'ss' input field
    document.getElementById('ss').addEventListener('input', function() {
        var inputVal = this.value.trim().toLowerCase(); // Get the value of the input and convert to lowercase
        var rctypeDropdown = document.getElementById('rctype'); // Get the rctype dropdown
        
        if (inputVal.startsWith('d')) {
            rctypeDropdown.value = 'Daily'; // Set the dropdown to Daily
        } else if (inputVal.startsWith('w')) {
            rctypeDropdown.value = 'Weekly'; // Set the dropdown to Weekly
        } else if (inputVal.startsWith('m')) {
            rctypeDropdown.value = 'Monthly'; // Set the dropdown to Monthly
        } else {
            rctypeDropdown.value = ''; // Clear the dropdown if input doesn't match
        }
    });
</script>
    <div class="input-group-btn">
      <button class="btn btn-info" name="sss5555" type="submit" style="height:70px;">
        <i class="glyphicon glyphicon-search"></i>
      </button>
    </div>
    
  </div>
<?php    } ?>
   <div>
	<?php
							if (isset($_POST['sss5555'])) {
    extract($_POST);
    if ($rctype == "Daily") {
        header("location:mobm.php?hpl=$ss&mfin2=$mfin");
    } elseif ($rctype == "Weekly") {
        header("location:mobw.php?hpl=$ss&mfin2=$mfin");
    } elseif ($rctype == "Monthly") {
        header("location:mobme.php?hpl=$ss&mfin2=$mfin");
    } else {
        echo "Invalid option";
    }
    
    exit();
}
?>
	  </div>
</form></li>
 <li><a ><i class="fa fa-home"></i> Dashboard <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						    		<?php if(($postt == 'MD') || ($postt == 'Manager')) { ?>   
						    	 <li><a href="index3.php">Main Dashboard</a>		
						    		<?php } ?>
					 <li><a href="index2.php">Daily Dashboard</a>
					</li>
							<li><a href="index2w.php">Weekly Collection</a>
					</li>
					<li><a href="index2e.php">EMI</a>
					</li>
					<!--<li><a href="indexmi.php">OD</a>-->
					<!--</li>-->
							
							</ul>
							<!-- second-level-items -->
						</li>
					
		<?php	 if($postt != 'Telecalling') { ?>		 <li><a href="all2.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-search"></i> Search </a>
		</li> <?php } ?>
					  
					  <?php if($mfin=='Group') {
						  ?>
						   <li><a href="gglview.php"  data-toggle="tooltip" title="Group HP Ledger"><i class="fa fa-book"></i> Group HP Ledger </a>
					  </li>
					   <li><a href="ggbillrep.php"  data-toggle="tooltip" title="Group HP Receipt "><i class="fa fa-print"></i> Group HP Receipt </a>
					  </li>
					   <li><a href="ggclosedacc.php"  data-toggle="tooltip" title="Group HP Settle "><i class="fa fa-support"></i> Group HP Settle </a>
					  </li>
					   <li><a href="ggvhloan.php"  data-toggle="tooltip" title="Group HL Payment "><i class="fa fa-money"></i> Group HL Payment </a>
					  </li>
					   <li><a href="ggvoentry.php"  data-toggle="tooltip" title="Group Other Entries "><i class="fa fa-group"></i> Group Other Entries </a>
					  </li>
					  <li><a href="ggpending55.php"  data-toggle="tooltip" title="Pending List "><i class="fa fa-question-circle"></i>Group Pending List </a>
					  </li>
				<!--	  <li><a><i class="fa fa-question-circle"></i> Group Pending List <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
							
								<li class="blue">
									<a href="ggpending55.php">Pending List</a>
								</li>
								<li class="blue">
									<a href="ggpendcat.php">Cat Wise</a>
								</li>
						</li>  -->
					  	<?php	if(($postt == 'MD') || ($postt == 'Manager')) { ?> 
						  <li><a href="gghpcol.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-tasks"></i> HP & Collection </a>
					  </li>
					  <li><a href="ggpenrep.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-tasks"></i> Due Analyst </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>-->
					<!--	 <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 DateWise</a>-->
     <!--                       </li>-->
					<!--		<li><a href="eall22.php">View Filtered</a>-->
     <!--                       </li>-->
							
					<!--		</ul>-->
							 
					<!--	</li>-->
			
<?php	 if($postt != 'Telecalling') { ?>
						<?php if(($postt == 'MD') || ($postt == 'Office All') || ($postt == 'Office') || ($postt == 'Office POSTING') || ($postt == 'Manager'))   { ?>   
						 <li><a><i class="fa fa-book"></i> Quick Bill  <span class="fa fa-chevron-down"></span></a> 
	

						<ul class="nav child_menu">
						
								
                            <li><a href="abil1.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-print"></i> Quick Bill </a>
                            </li>
                           
                            <li><a href="abil2.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-print"></i>Quick Bill-Weekly</a>
                            </li>
							 <li><a href="abil3.php"  data-toggle="tooltip" title="Common Search"><i class="fa fa-print"></i>Quick Bill-EMI</a></li>
                          </ul>
							
		</li>
	
				<li><a><i class="fa fa-book"></i> Entry <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu ">
						
								 <li class="blue">
									<a>Create Loan<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu collapse">
								 <li class="blue">
									<a href="register11m.php">Create Loan - DC</a>
								</li>
								 <li class="blue">
									<a href="register11w.php">Create Loan - WC</a>
								</li>
								
								<!-- <li class="blue">-->
								<!--	<a href="register11p.php">Create Loan - Product</a>-->
								<!--</li>-->
								  <li class="blue">
									<a href="register11.php">Create Loan - AUTO EMI</a>
								</li>
								
							</ul>
							
		</li>	
		<li class="blue">
									<a>View Loan<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu collapse">
								 <li class="blue">
									<a href="lview.php">View Loan-Daily</a>
								</li>
								<li class="blue">
									<a href="lvieww.php">View Loan-Weekly</a>
								</li>
								<li class="blue">
									<a href="lviewm.php">View Loan-Monthly</a>
								</li>
								</ul>
							
		</li>
							
								
		<!--					<li class="blue">-->
		<!--							<a>Deposit<span class="fa fa-chevron-down"></span></a>-->
		<!--							 <ul class="nav child_menu">-->
  <!--                          <li><a href="finregister11.php">FD-Create</a>-->
  <!--                          </li>-->
                           
  <!--                          <li><a href="finlview.php">FD-View</a>-->
  <!--                          </li>-->
							 
  <!--                          <li><a href="finsearch55.php">FD-Receipt Create</a>-->
  <!--                          </li>-->
		<!--					  <li><a href="finbillrep.php">FD-Receipt-View</a>-->
  <!--                          </li>-->
		<!--						</ul>-->
							
		<!--</li>-->
                        
									<li class="blue">
									<a>Monthly Ladger<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                            <li><a href="monregister11.php">OD-Create</a>
                            </li>
                           
                            <li><a href="monlview.php">OD-View</a>
                            </li>
							 
                           
                            <li><a href="monsearch55.php">OD-Receipt Create</a>
                            </li>
							  <li><a href="monbillrep.php">OD- Receipt View</a>
                            </li>
							
							</ul>
							
		</li>
								
						
<!-- 
						<li class="blue">
									<a>EMI Ledger<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
                         <li><a href="register11.php" >Create</a>
                            </li>
                            <li><a href="lview.php">View</a>
                            </li>
							 <li><a href="docr.php" >Document Release</a>
                            </li>
                          </ul>
								</li>
								
								<li class="blue">
									<a>Weekly Ledger<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
                         <li><a href="register11w.php" >Create</a>
                            </li>
                            <li><a href="lvieww.php">View</a>
                            </li>
							 <li><a href="docrw.php" >Document Release</a>
                            </li>
                          </ul>
								</li>
								
								
								<li class="blue">
									<a>15Days Ledger<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu">
                           
                         <li><a href="register11q.php" >Create</a>
                            </li>
                            <li><a href="lviewq.php">View</a>
                            </li>
							 <li><a href="docrq.php" >Document Release</a>
                            </li>
                          </ul>
								</li> -->
		
							
								
				<?php } if(($postt == 'MD') || ($postt == 'Office All') || ($postt == 'Office') || ($postt == 'Office POSTING') || ($postt == 'Manager'))   { ?>     

							
								
								<li class="blue">
									<a>Voucher<span class="fa fa-chevron-down"></span></a>
									 <ul class="nav child_menu collapse">
                           
                         <li><a href="voucher.php?vt=Payment" >Create Voucher</a>
                            </li>
                            <li><a href="vvoucher.php">View Voucher</a>
                            </li>
                        	</ul>
						</li>
								
							</ul>
						</li>
				<?php } 
				if(($postt == 'MD') || ($postt == 'Manager'))   { ?> 	
		   <li><a><i class="fa fa-leaf"></i> Master <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
	     
								<!--	 	<li class="blue">-->
								<!--	<a href="product.php">Products</a>-->
								<!--</li> -->
							 
							 
							 <li class="blue">
									<a href="mcust.php">Customer</a>
								</li>
								<li class="blue">
									<a href="vmcust.php">View Customer</a>
								</li>
							 
							 
								 <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="mgovt.php">Goverment ID</a>
								</li>
								 <li class="blue">
									<a href="mfin.php">Company Master</a>
								</li>
								
								<li class="blue">
									<a href="ledger.php">Ledger</a>
								</li>
								<li class="blue">
									<a href="ledgergrp.php">Ledger Group</a>
</li>
							</ul>
						   
						</li>
					 <?php } ?>	
						 <li><a><i class="fa fa-question-circle"></i>Pending List All<span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						
						 <li><a>Pending List<span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
						
						
								<li class="blue">
									<a href="pending55.php">Pending List - Daily</a>
								</li>
							<li class="blue">
									<a href="pending55w.php">Pending List - Weekly</a>
								</li>
								<li class="blue">
									<a href="pending55m.php">Pending List - EMI</a>
								</li>
								</ul>
				</li>
				<!--				 <li><a>OD Pending List<span class="fa fa-chevron-down"></span></a>-->
				<!--		<ul class="nav child_menu">-->
				<!--					<li class="blue">-->
				<!--					<a href="monpros2.php">OD Refresh List</a>-->
				<!--				</li>-->
				<!--				<li class="blue">-->
				<!--					<a href="monpending55.php">OD Pending List</a>-->
				<!--				</li>-->
				<!--					 </ul>-->
				<!--</li>-->
								<!--<li class="blue">
									<a href="pendcat.php">Cat Wise</a>
								</li>
								-->
								
								 <li><a>Photo Pending List<span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
								
								<li class="blue">
									<a href="lview2.php">Photo Pending Daily</a>
								</li>
								
									<li class="blue">
									<a href="lview2w.php">Photo Pending Weekly</a>
								</li>
								
									<li class="blue">
									<a href="lview2m.php">Photo Pending EMI</a>
								</li>
								
									 </ul>
				</li>
								<!--<li class="blue">-->
								<!--	<a href="lviewgvt.php">Govt ID Pending</a>-->
								<!--</li>-->
								
								 <li><a>Location Pending List<span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
							  <li class="blue">
									<a href="lviewl.php">Location Pending Daily</a>
								</li>
								
								 <li class="blue">
									<a href="lviewlw.php">Location Pending Weekly</a>
								</li>
								
								 <li class="blue">
									<a href="lviewlm.php">Location Pending EMI</a>
								</li>
								
						</ul>
				</li>
								<!-- <li class="blue">-->
								<!--	<a href="pendingt.php">Termination A/C</a>-->
								<!--</li>-->
							
							
								</ul>
				</li>  <?php } ?>
					<?php	 if($postt != 'Telecalling') { ?>	
					  <li><a><i class="fa fa-support"></i> Reports <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
									 
								
								
								
								 <li><a>Active Loan Report <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
								
							   <li class="blue">
									<a href="loanact.php">Active Loan List - Daily</a>
								</li>
								   <li class="blue">
									<a href="loanactw.php">Active Loan List - Weekly</a>
								</li>
								   <li class="blue">
									<a href="loanactm.php">Active Loan List - EMI</a>
								</li>
								
								<!-- <li class="blue">-->
								<!--	<a href="loanactmi.php">Active Loan List - OD</a>-->
								<!--</li>-->
								
								 </ul>
				</li>
				
				
								 <li><a>Closed Loan Report <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
								
							   <li class="blue">
									<a href="loancol.php">Closed Loan List - Daily</a>
								</li>
								   <li class="blue">
									<a href="loancolw.php">Closed Loan List - Weekly</a>
								</li>
								   <li class="blue">
									<a href="loancolm.php">Closed Loan List - EMI</a>
								</li>
								
								<!-- <li class="blue">-->
								<!--	<a href="loancolmi.php">Closed Loan List - OD</a>-->
								<!--</li>-->
								
								 </ul>
				</li>
					 <li><a>Day Close Report <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
								
							   <li class="blue">
									<a href="ddclose.php">Day Close - Daily</a>
								</li>
								   <li class="blue">
									<a href="ddclosew.php">Day Close - Weekly</a>
								</li>
								   <li class="blue">
									<a href="ddclosem.php">Day Close - EMI</a>
								</li>
								
								 
								
								 </ul>
				</li>
					<li><a> Bill Report <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
								<li class="blue">
									<a href="billrep.php">Bill Report- ALL</a>
								</li>
									<li class="blue">
									<a href="billrepd.php">Bill Report- DC</a>
								</li>
									<li class="blue">
									<a href="billrepw.php">Bill Report- WC</a>
								</li>
									<li class="blue">
									<a href="billrepe.php">Bill Report- EMI</a>
								</li>
								</ul>
				</li>
				
				<li><a> Customer Statement <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
				
								 <li class="blue">
									<a href="cuslview.php">Customer Statement - Daily</a>
								</li>
								   <li class="blue">
									<a href="cuslvieww.php">Customer Statement - Weekly</a>
								</li>
								   <li class="blue">
									<a href="cuslviewm.php">Customer Statement - EMI</a>
								</li>
								
								<!-- <li class="blue">-->
								<!--	<a href="cuslviewmi.php">Customer Statement - OD</a>-->
								<!--</li>-->
								<!--   <li class="blue">-->
								<!--	<a href="cuslviewfd.php">Customer Statement - FD</a>-->
								<!--</li>-->
								</ul>
				</li>
			
							<?php if(($postt == 'MD') || ($postt == 'Manager'))   { ?> 		
							
								<li><a> Business Report<span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
									<li class="blue">
									<a href="hpcol.php">Daily Finance & Collection </a>
								</li>
								<li class="blue">
									<a href="hpcoll.php">Weekly Finance & Collection </a>
								</li>
								<li class="blue">
									<a href="hpcolll.php">Mothly Finance & Collection </a>
								</li>
								
									</ul>
				</li>
							
								
							
                           	<li><a> Balance Report<span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
                            <li><a href="hpbalall.php">Total Principle Balance</a></li>
			                <li><a href="hpbaliall.php">Total Interest Balance</a></li>
							 
			                 <li><a href="hpbalp.php">Daily Principle Balance</a></li>
			                 <li><a href="hpbali.php">Daily Interest Balance</a></li>
							  
							    <li><a href="hpbalwc.php">Weekly Principle Balance</a></li>
							    <li><a href="hpbaliw.php">Weekly Interest Balance</a></li>
							    <li><a href="hpbaldc.php"> Monthly Principle Balance</a></li>
							  <li><a href="hpbalim.php">Monthly Interest Balance</a></li>
							  
							  <!-- <li><a href="monhpbalp.php"> OD Principle Balance</a></li>-->
							  <!--<li><a href="monhpbali.php">OD Interest Balance</a></li>-->
							  
							  
							    <!--<li><a href="fdbal.php">FD Principle Balance</a></li>-->
							    <!--<li><a href="fdbali.php">FD Interest Balance</a></li>-->
							</ul>
				</li>
                         <?php }  ?>
									<li class="blue">
									<a href="grp.php">Group Report</a>
								</li>
								<?php if(($postt == 'MD') || ($postt == 'Manager'))   { ?> 	
			<li class="blue">
									<a href="vlogin.php">Login History</a>
								</li>
									<li class="blue">
									<a href="doc.php">Documentation Charges</a>
								</li>
								<?php }  ?>
							</ul>
							<!-- second-level-items -->
					</li>  <?php } ?>
						<?php if(($postt == 'MD') || ($postt == 'Manager'))   { ?> 
						  <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>
									
							  . <li class="blue">
									<a href="state.php">Statement</a>
								</li>
								<li class="blue">
									<a href="statew.php">Statement-Weekly</a>
								</li>
								<li class="blue">
									<a href="statem.php">Statement-Monthly</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><a> Account book<span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu collapse">
                           <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>
                        
								
							</ul>
							<!-- second-level-items -->
						</li>  <?php } ?>
						
										
	 <li><a><i class="fa fa-group"></i> Employee Management <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						
					<?php	if(($postt == 'MD') || ($postt == 'Manager')) { ?>  <li>
												<a href="eatt.php">
													<i class="fa fa-users success"></i> EMP ATT
												</a>
											</li><?php } ?>
											 <li>
												<a href="veatt.php">
													<i class="fa fa-users success"></i> View EMP ATT
												</a>
											</li>
											<li>
												<a href="lapply.php">
													<i class="fa fa-users success"></i> Leave Apply
												</a>
											</li>
										<?php	if(($postt == 'MD') || ($postt == 'Manager')) { ?>		   <li>
												<a href="salary.php">
													<i class="fa fa-inr success"></i> SALARY
												</a>
											</li>
								 <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>
											
												 <li>
												<a href="newemp2.php">
													<i class="fa fa-male warning"></i> Canceled EMPLOYEE
												</a>
											</li> <?php } ?>
					</ul>
							<!-- second-level-items -->
					</li> 
				
				
	<?php	if(($postt == 'MD') || ($postt == 'Manager')) { ?> 
					
	 <li><a><i class="fa fa-archive"></i> Options <span class="fa fa-chevron-down"></span></a>
						<ul class="nav child_menu">
						<li class="blue">
									<a href="notice6.php">F9/Ledger Print</a>
								</li>
						
<li class="blue">
									<a href="setup.php">Settings</a>
						</li>
<li class="blue">
									<a href="smssetup.php">SMS Setup</a>
						</li>
					
								  <li class="blue"><a href="pros2.php">Day Closing DC</a></li>
								   <li class="blue"><a href="pros2w.php">Day Closing WC</a></li>
								    <li class="blue"><a href="pros2m.php">Day Closing Monthly</a></li>
								  <li class="blue">
									<a href="pros.php">Send Due Msg</a>
								</li>
								<li class="blue">
									<a href="00acc.php">Account Closing</a>
								</li>
								<li class="blue"><a href="00def.php">Default Process</a></li>
							
						 <li class="blue">
									<a href="backup.php">Backup</a>
							</li>			
							</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="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
						<img src="user/<?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="reports.php"><font color="red"><b>I</b></font><font color="blue"><b>con</b> <font color="blue"><b> Finance</b></font></font></a>
					
						</li>
						<li><a href="javascript:;">Help</a></li>
						<li><a href="index.php"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
					  </ul>
					</li>
					<?php  
 $qry12=mysqli_query($conn, "select * from entry where status='Entry' && mfin='$mfin'");
								$n12=mysqli_num_rows($qry12);
						
						$qry121=mysqli_query($conn, "select * from entry where status='Manager Approved' && mfin='$mfin'");
								$n121=mysqli_num_rows($qry121);
						
									?>
						<li role="presentation" class="dropdown">
					  <a href="javascript:;"  title="Task Management" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
						<i class="fa fa-bell"></i>
						<span class="badge bg-blue"><?php 
					 if(($postt == 'MD') || ($postt == 'Manager')) { 
						echo $n121; } 
						elseif(($postt == 'MD')){ 
						echo $n12; } 
						?></span>
					  </a>
					  <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
					  
					   <li> <a href="app.php">
													<i class="fa fa-bell warning"></i>Verification-Approval
												</a>
											</li>
						<?php if(($postt == 'MD') || ($postt == 'Manager')) {  ?>
<li> <a href="appsp.php">
													<i class="fa fa-bell success"></i>Admin-Approval
												</a>
											</li>
									 <?php } ?>		<!-- <li>
												 <a href="memo.php">
													<i class="fa fa-clock-o warning"></i> Memo
												</a>
											</li>  -->
												
					   
				   
					  </ul>
</li>


				
				

				   
					</li><center><h1>
					<?php $mfinh = $mfin;
					if($mfin == 'Sri Hari Associates') { ?>
					<font color="green" font="Arial Black"> <b><?PHP echo $mfin; ?></font> <?php } else { ?>
					<font color="blue" font="Arial Black"> <b><?PHP echo $mfin; ?></font>
					<?php } ?>
					
					</h1></b></center>
				  </ul>
				
				</nav>
			  </div>
			</div>
			<!-- /top navigation -->

