| Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 Path : /home/u901718425/domains/panel.urbanpillar.in/public_html/ |
| Current File : /home/u901718425/domains/panel.urbanpillar.in/public_html/usercontroll.php |
<?php
include_once "cdn/globle.php";
$roll = (in_array('UserControl',array_keys($_SESSION['roll'])) ? array_values($_SESSION['roll']['UserControl']) : []);
if(isset($_SESSION['roll_name']) && $_SESSION['roll_name'] != 'user' && in_array('view',$roll) ){
?>
<!doctype html>
<html lang="en">
<?php
include 'widgets/head.php';
?>
<body class="d-flex">
<div class="messages position-fixed w-100 p-3 top-0 start-0 ">
</div>
<?php
include 'widgets/aside.php';
?>
<div class="page overflow-y-auto" style="width: calc(100% - 280px); height:100vh;">
<?php
include 'widgets/header.php';
?>
<div class="body d-flex flex-wrap pb-4">
<div class="container p-4">
<div class="row justify-content-center align-items-center g-3 mb-3" id="userRoll">
</div>
<div class="flex mt-5">
<h5 class=" fw-semibold ">Roles List</h5>
<p class="fs-7 fw-light text-secondary w-75">A role provided access to predefined menus and features so that depending on
assigned role an administrator can have access to what user needs.</p>
</div>
<div class="container mt-4 mb-4 shadow rounded-4 bg-white p-3 overflow-hidden row">
<div class="col-6">
<div class="fs-6 fw-semibold ">User</div>
<div class="d-flex text-secondary fs-6 my-2" >
<span class="material-icons-outlined text-success fs-6 fw-bold ">
done
</span> <span class="text-dark user-count"> </span>
Active user's
</div>
</div>
<div class="col-6 d-flex justify-content-end ">
<div class="input-group w-50" style="height:40px;">
<input type="search" id="search-box" class="form-control rounded" placeholder="Search" aria-label="Search" aria-describedby="search-addon" />
<button type="button" id="search-box-button" class="btn btn-outline-primary" data-mdb-ripple-init>search</button>
</div>
</div>
<div class="table-responsive mt-3 ">
<table class="table align-middle mb-0 bg-white ">
<thead class="bg-white border-1 border-light fs-8" style="height:50px;">
<tr>
<th class=" text-secondary py-2">NAME</th>
<th class=" text-secondary py-2">POSITION</th>
<th class=" text-secondary py-2">STATUS</th>
</tr>
</thead>
<tbody id="user-data">
</tbody>
</table>
</div>
<div class="pagination d-flex py-3 justify-content-between ">
<div class="d-flex w-25 fs-7 align-items-center ">
Showing <div id="start" class="px-2"> 1 </div> to <div id="endpx-2" class="px-2"> 10 </div> of <div class="user-count-all px-2"></div> entries
</div>
<nav aria-label="...">
<ul class="pagination pagination-sm mb-0" id="pagination">
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1">Previous</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item active">
<a class="page-link" href="#">2</a>
</li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#">Next</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg modal-simple modal-dialog-centered modal-add-new-role">
<div class="modal-content p-3 p-md-5">
<div class="modal-body">
<button type="button" class="btn-close position-absolute top-0 end-0 " data-bs-dismiss="modal" aria-label="Close"></button>
<div class="text-center mb-4">
<h3 class="role-title">Edit Role</h3>
<p>Set role permissions</p>
</div>
<!-- Add role form -->
<form id="addRoleForm" class="row g-3 fv-plugins-bootstrap5 fv-plugins-framework" onsubmit="return false" novalidate="novalidate">
<div class="col-12 mb-4 fv-plugins-icon-container">
<label class="form-label" for="modalRoleName">Role Name</label>
<input type="text" id="modalRoleName" name="roll" class="form-control" placeholder="Enter a role name" tabindex="-1">
<div class="fv-plugins-message-container fv-plugins-message-container--enabled invalid-feedback"></div></div>
<div class="col-12">
<h4>Role Permissions</h4>
<!-- Permission table -->
<div class="table-responsive">
<table class="table table-flush-spacing">
<tbody>
<tr>
<td class="text-nowrap fw-medium">Administrator Access <i class="bx bx-info-circle bx-xs" data-bs-toggle="tooltip" data-bs-placement="top" aria-label="Allows a full access to the system" data-bs-original-title="Allows a full access to the system"></i></td>
<td>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input" type="checkbox" id="selectAll">
<label class="form-check-label" for="selectAll">
Select All
</label>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Dashboard</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Dashboard[]" data="dashboard" >
<label class="form-check-label" for="view">
Read
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Analytics</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Analytics[]" data="analytics" >
<label class="form-check-label" for="view">
Read
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">User Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="UserControl[]" data="usercontrol" >
<label class="form-check-label" for="view">
Read
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input edit" value="edit" type="checkbox" name="UserControl[]" data="usercontrol" >
<label class="form-check-label" for="edit">
Update
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input add" value="add" type="checkbox" name="UserControl[]" data="usercontrol">
<label class="form-check-label" for="add">
Create
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input delete" value="delete" type="checkbox" name="UserControl[]" data="usercontrol" >
<label class="form-check-label" for="delete">
Delete
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Property Control</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Property[]" data="property" >
<label class="form-check-label" for="view">
Read
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input edit" value="edit" type="checkbox" name="Property[]" data="property" >
<label class="form-check-label" for="edit">
Update
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input add" value="add" type="checkbox" name="Property[]" data="property">
<label class="form-check-label" for="add">
Create
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input delete" value="delete" type="checkbox" name="Property[]" data="property" >
<label class="form-check-label" for="delete">
Delete
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Inquiry Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Inquery[]" data="inquery" >
<label class="form-check-label" for="view">
Read
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input edit" value="edit" type="checkbox" name="Inquery[]" data="inquery" >
<label class="form-check-label" for="edit">
Update
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input delete" value="delete" type="checkbox" name="Inquery[]" data="inquery" >
<label class="form-check-label" for="delete">
Delete
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">News Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Newsfeed[]" data="Newsfeed" >
<label class="form-check-label" for="view">
Read
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input edit" value="edit" type="checkbox" name="Newsfeed[]" data="Newsfeed" >
<label class="form-check-label" for="edit">
Update
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input delete" value="delete" type="checkbox" name="Newsfeed[]" data="Newsfeed" >
<label class="form-check-label" for="delete">
Delete
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Comment Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Comment[]" data="comment" >
<label class="form-check-label" for="view">
Read
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input edit" value="edit" type="checkbox" name="Comment[]" data="comment" >
<label class="form-check-label" for="edit">
Update
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input delete" value="delete" type="checkbox" name="Comment[]" data="comment" >
<label class="form-check-label" for="delete">
Delete
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Developers Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Developer[]" data="developer" >
<label class="form-check-label" for="view">
Read
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input edit" value="edit" type="checkbox" name="Developer[]" data="developer" >
<label class="form-check-label" for="edit">
Update
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input delete" value="delete" type="checkbox" name="Developer[]" data="developer" >
<label class="form-check-label" for="delete">
Delete
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Meta Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Meta[]" data="meta" >
<label class="form-check-label" for="view">
Read
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input edit" value="edit" type="checkbox" name="Meta[]" data="meta" >
<label class="form-check-label" for="edit">
Update
</label>
</div>
<div class="form-check me-3 me-lg-5">
<input class="form-check-input delete" value="delete" type="checkbox" name="Meta[]" data="meta" >
<label class="form-check-label" for="delete">
Delete
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Download Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Download[]" data="download" id="Download" >
<label class="form-check-label" for="view">
Download
</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="text-nowrap fw-medium">Property Priority Management</td>
<td>
<div class="d-flex">
<div class="form-check me-3 me-lg-5">
<input class="form-check-input view" value="view" type="checkbox" name="Property_Priority[]" data="Property_Priority" id="Property_Priority" >
<label class="form-check-label" for="view">
Download
</label>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Permission table -->
</div>
<div class="col-12 text-center">
<button type="submit" id="update" class="btn btn-danger me-sm-3 me-1">Save</button>
<button type="reset" class="btn btn-secondary" data-bs-dismiss="modal" aria-label="Close">Cancel</button>
</div>
<input type="hidden"></form>
<!--/ Add role form -->
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="/js/usercontroll.js"></script>
<?php
include 'widgets/footer.php';
?>
</div>
</body>
</html>
<?php
}
?>