<?php 
include "includes/header.php"; 
include "includes/Mdme-functions.php";
$mdme = getMdmeRole($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="roleinfo_form.php" class="btn btn-custom waves-effect waves-light"> Add Role <span class="m-l-5"><i class="fa fa-plus"></i></span> </a>
					<?php } ?>
                </div>
						
                <h4 class="page-title">Manage Role</h4>
				<input type="hidden" name="disptblname" id="disptblname" value="<?php echo "roleinfo"; ?>" />
            </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>Role Name</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>