<?php 
include "includes/header.php"; 
include "includes/Mdme-functions.php";
$mdme = getMdmeUser($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="userinfo_form.php" class="btn btn-custom waves-effect waves-light"> Add User <span class="m-l-5"><i class="fa fa-plus"></i></span> </a>
					<?php } ?>
                </div>
						
                <h4 class="page-title">Manage Users</h4>
				<input type="hidden" name="disptblname" id="disptblname" value="<?php echo "userinfo"; ?>" />
            </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>First Name</th>
								<th>Last Name</th>
								<th>User Name</th>						
								<th>User Email</th>
								<th>Role</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 () {   		
		datatblCal();		
    });
</script>	

</body>
</html>
