<?php 
include "includes/header.php"; 
include "includes/Mdme-functions.php";
$mdme = getMdmeCustomer($db,'');
include_once "includes/pagepermission.php";
//check permission - START
if(!($res_modm_prm)){
	header("Location:".admin_public_url."error.php");
}
else if(trim($res_modm_prm['ViewPrm'])=="0") {
	header("Location:".admin_public_url."error.php");
}
//check permission - END
?> 


<div class="wrapper">
    <div class="container">
        <!-- Page-Title - START -->
        <div class="row">
            <div class="col-sm-12">   
				<div class="btn-group pull-right m-t-15">									
					<?php if(trim($res_modm_prm['AddPrm'])=="1") { ?>
						<a href="customer_form.php" class="btn btn-custom waves-effect waves-light"> Add Customer <span class="m-l-5"><i class="fa fa-plus"></i></span> </a>
					<?php } ?>
                </div>
						
                <h4 class="page-title">Manage Customer</h4>
				<input type="hidden" name="disptblname" id="disptblname" value="<?php echo "customer"; ?>" />
            </div>
        </div>
		<!-- Page-Title - END -->	
			
		
		<div class="row">
            <div class="col-sm-12">
                <div class="card-box table-responsive">                         
                    <table id="tblresult" class="table table-striped table-bordered">
                        <thead>
                            <tr>
                            	<th>Reference Code</th>
								<th>Customer Name</th>
								<th>Customer Type</th>
								<th>Mobile No</th>						
								<th>Email</th>
								<th>GST No</th>	
								<th>Address</th>	
								<th>State</th>	
								<th>City</th>	
								<th>Postal Code</th>						
								<th>Status</th>
								<th>Actions</th>
                            </tr>
                        </thead>                       
                    </table>
                </div>
            </div>
        </div> <!-- end row -->		

<?php include "includes/footer.php";  ?> 
	</div> <!-- container -->
</div> <!-- End wrapper -->

<?php include "includes/footer_script.php";  ?> 


<script>
$(function () {   		
	datatblCalExport();		
});
</script>	

</body>
</html>
