<?php
// session_start();
include 'head.php';
include 'header.php';?>
<body class="skin-default fixed-layout">
<div id="main-wrapper">
<?php
include 'sidebar.php';
// include_once ("../_db.php");
$sql = $conn->query("SELECT * FROM user_login ");
?>
<div class="page-wrapper">
<section>
<div class="">
<?php
include 'nav1.php';
?>
<div class="container-fluid">
<div class="card">
<div class="card-header">
<?php echo isset($_SESSION['mgs'])?$_SESSION['mgs']:""?>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<th>#</th>
<th>Userid</th>
<th>Fullname</th>
<th>Email</th>
<th>Phone</th>
<!-- <th>Booking ID</th> -->
<th>Status</th>
<th>----</th>
</thead><br>
<tbody>
<?php
if($sql->num_rows>0){
$num=1;
while($row = $sql->fetch_assoc()){
?>
<tr>
<td><?php echo $num++; ?></td>
<td><?php echo $row['userid']; ?></td>
<td><?php echo $row['full_name']; ?></td>
<td><?php echo $row['email']; ?></td>
<td><?php echo $row['username']; ?></td>
<td>
<?php if($row['status']=='pending'){?>
<a href="controller.php?id=<?php echo
$row['userid']; ?>&status=verify"
class="btn btn-primary btn-sm my-2">verify</a>
<?php } else { ?>
<a href="#" class="btn btn-success btn-sm">Verified</a>
<?php } ?>
<?php if($row['status']=='verified'){?>
<a href="controller.php?id=<?php echo
$row['userid']; ?>&status=un-Ban"
class="btn btn-danger btn-small">Un-Ban</a>
<?php } else{ ?>
<a href="#" class="btn btn-warning btn-small">Ban</a>
<?php } ?>
<a href="controller.php?id=<?php echo $row
['userid']; ?>&status=delete" class="btn btn-danger btn-sm">Delete</a>
<?php } }?>
</td><br>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>
Back to Directory