Merge branch 'master' of bitbucket.org:venbainformationtechnology/golf_backend
This commit is contained in:
commit
6472ee645e
@ -24,8 +24,51 @@
|
||||
<link rel="stylesheet" href="<?= base_url()."/public/"; ?>assets/member_css/intlTelInput.css">
|
||||
<script src="<?= base_url()."/public/"; ?>assets/member_js/intlTelInput.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
|
||||
|
||||
|
||||
<style>
|
||||
.custom-alert {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
padding: 20px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.custom-alert h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.custom-alert p {
|
||||
margin-bottom: -20px;
|
||||
}
|
||||
|
||||
.custom-alert .close-btn {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 10px;
|
||||
cursor: pointer;
|
||||
font-size: 26px;
|
||||
}
|
||||
.button-popup {
|
||||
background-color: #4CAF50; /* Green */
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 1px 20px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
align:center;
|
||||
|
||||
margin-left: 40%;
|
||||
}
|
||||
.field-icon {
|
||||
float: right;
|
||||
margin-left: -35px;
|
||||
@ -74,12 +117,14 @@
|
||||
<path d="M15.6568 15.75H3.72781C3.28047 15.75 2.98225 16.05 2.98225 16.5C2.98225 16.95 3.28047 17.25 3.72781 17.25H15.6568C16.1041 17.25 16.4024 16.95 16.4024 16.5C16.4024 16.05 16.1041 15.75 15.6568 15.75Z" />
|
||||
<path d="M15.6568 18.75H3.72781C3.28047 18.75 2.98225 19.05 2.98225 19.5C2.98225 19.95 3.28047 20.25 3.72781 20.25H15.6568C16.1041 20.25 16.4024 19.95 16.4024 19.5C16.4024 19.05 16.1041 18.75 15.6568 18.75Z" />
|
||||
</svg></span><span>Profile</span></button>
|
||||
<a href="<?=base_url()."member_logout"; ?>" class="tablinks" ><span class="dash-icon"><svg width="22" height="20" viewBox="0 0 26 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<a onclick="showCustomAlert()" class="tablinks" ><span class="dash-icon"><svg width="22" height="20" viewBox="0 0 26 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 3C5.325 3 6 2.325 6 1.5C6 0.675 5.325 0 4.5 0H1.5C0.675 0 0 0.675 0 1.5V22.5C0 23.325 0.675 24 1.5 24H4.5C5.325 24 6 23.325 6 22.5C6 21.675 5.325 21 4.5 21H3V3H4.5Z" />
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.2268 11.1372L21.0058 5.1372C20.5288 4.4592 19.5928 4.2942 18.9163 4.7727C18.2383 5.2497 18.0748 6.1857 18.5518 6.8622L21.1289 10.5267C21.0839 10.5222 21.0448 10.4997 20.9998 10.4997H8.99985C8.17185 10.4997 7.49985 11.1702 7.49985 11.9997C7.49985 12.8292 8.17185 13.4997 8.99985 13.4997H21.0014L18.2998 17.1012C17.8033 17.7627 17.9369 18.7032 18.5999 19.1997C18.8699 19.4022 19.1863 19.4997 19.4983 19.4997C19.9543 19.4997 20.4059 19.2927 20.6999 18.8997L25.1999 12.8997C25.5899 12.3807 25.6018 11.6682 25.2268 11.1372Z" />
|
||||
</svg></span><span>Sign Out</span></a>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="Credits" class="tabcontent">
|
||||
<div id="Credits" class="tabcontent">
|
||||
<!---------------------------header--------------------------------->
|
||||
<h5 class="dashboard-maintitle">Credits</h5>
|
||||
<div class="row">
|
||||
@ -602,5 +647,25 @@ $(document).ready(function(){
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
|
||||
|
||||
function showCustomAlert() {
|
||||
document.getElementById("customAlert").style.display = "block";
|
||||
}
|
||||
$(document).ready(function(){
|
||||
document.getElementById("customAlert").style.display = "none";
|
||||
|
||||
});
|
||||
function closeCustomAlert() {
|
||||
document.getElementById("customAlert").style.display = "none";
|
||||
}
|
||||
</script>
|
||||
<div id="customAlert" class="custom-alert">
|
||||
<span class="close-btn" onclick="closeCustomAlert()">×</span>
|
||||
<p>Are you sure you want to sign out</p>
|
||||
<br>
|
||||
<a href="<?=base_url()."member_logout"; ?>"><button class="button-popup" style="background-color: #008CBA;">ok</button></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
102
app/Views/users_list copy.php
Normal file
102
app/Views/users_list copy.php
Normal file
@ -0,0 +1,102 @@
|
||||
<style>
|
||||
.dataTables_filter{
|
||||
margin-top: -35px;
|
||||
|
||||
}
|
||||
.buttons-csv{
|
||||
background-color: white;
|
||||
color: #002B60;
|
||||
border-color: #000;
|
||||
}
|
||||
</style>
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Users</h4>
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="<?= base_url() ?>user_add">
|
||||
<button type="button" class="btn btn-primary waves-effect waves-light">Add</button>
|
||||
</a></li>
|
||||
<!-- <li class="breadcrumb-item"><a href="javascript: void(0);">Tables</a></li>
|
||||
<li class="breadcrumb-item active">Datatables</li> -->
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<!-- <h4 class="header-title">Buttons example</h4>
|
||||
<p class="text-muted font-13 mb-4">
|
||||
|
||||
</p> -->
|
||||
|
||||
<table id="datatable-buttons" class="table table-striped dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>id</th>
|
||||
<th>Name</th>
|
||||
<th>Mobile</th>
|
||||
<th>Email</th>
|
||||
<th>Role</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($userList as $row)
|
||||
{ ?>
|
||||
<tr>
|
||||
<td hidden><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['name'];?></td>
|
||||
<td><?php echo $row['mobile'];?></td>
|
||||
<td><?php echo $row['email'];?></td>
|
||||
<td><?php echo $row['role'];?></td>
|
||||
|
||||
<td><?php if($row['is_active'] == 1){ echo "Active"; }else{ echo "Deactive"; }?></td>
|
||||
<td><a href="<?= base_url() ?>user_edit/<?php echo md5($row['id']);?>"><i class="mdi mdi-lead-pencil" style="font-size:18px;"></i></a>
|
||||
<?php if ($row['is_active'] == 1) { ?>
|
||||
<a href="<?= base_url() ?>user_deactivate/<?php echo md5($row['id']);?>"><i class="mdi mdi-account-check-outline" title="Deactivate" style="font-size:18px;"></i></a>
|
||||
<?php }
|
||||
else { ?>
|
||||
<a href="<?= base_url() ?>user_activate/<?php echo md5($row['id']);?>"><i class="mdi mdi-account-cancel-outline" title="Activate" style="font-size:18px;"></i></a>
|
||||
<?php }
|
||||
?></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
<!-- end row-->
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#datatable-buttons').DataTable({
|
||||
"order": [[0, 'desc']], // Set initial sorting to descending on the first column
|
||||
"dom": 'Bfrtip', // Show export buttons
|
||||
// "buttons": ['copy', 'csv', 'excel', 'pdf'], // Enable export options
|
||||
"language": {
|
||||
"search": "Search: " // Customize search label
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user