|
Server IP : 45.113.226.95 / Your IP : 216.73.216.239 Web Server : LiteSpeed System : Linux bharat.hostitbro.com 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64 User : digita21 ( 1701) PHP Version : 8.3.30 Disable Function : mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /home2/digita21/realpropertyindia.com/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
require("config.php");
////code
if(!isset($_SESSION['auser']))
{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<title>Real Estate India | Admin</title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!-- Fontawesome CSS -->
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<!-- Feathericon CSS -->
<link rel="stylesheet" href="assets/css/feathericon.min.css">
<!-- Datatables CSS -->
<link rel="stylesheet" href="assets/plugins/datatables/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="assets/plugins/datatables/responsive.bootstrap4.min.css">
<link rel="stylesheet" href="assets/plugins/datatables/select.bootstrap4.min.css">
<link rel="stylesheet" href="assets/plugins/datatables/buttons.bootstrap4.min.css">
<!-- Main CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Main Wrapper -->
<!-- Header -->
<?php include("header.php"); ?>
<!-- /Sidebar -->
<!-- Page Wrapper -->
<div class="page-wrapper">
<div class="content container-fluid">
<!-- Page Header -->
<div class="page-header">
<div class="row">
<div class="col">
<h3 class="page-title">Builder</h3>
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard.php">Dashboard</a></li>
<li class="breadcrumb-item active">Builder</li>
</ul>
</div>
</div>
</div>
<!-- /Page Header -->
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Builder List</h4>
<?php
if(isset($_GET['msg']))
echo $_GET['msg'];
?>
</div>
<div class="card-body">
<table id="basic-datatable" class="table table-bordered table-hover">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Utype</th>
<th>Image</th>
<th>Status</th>
<th>Change Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$query = mysqli_query($con, "SELECT * FROM user WHERE utype='builder'");
$cnt = 1;
while($row = mysqli_fetch_assoc($query))
{
$id = $row['uid'];
$status = $row['status'];
?>
<tr>
<td><?php echo $cnt; ?></td>
<td><?php echo $row['uname']; ?></td>
<td><?php echo $row['uemail']; ?></td>
<td><?php echo $row['uphone']; ?></td>
<td><?php echo $row['utype']; ?></td>
<td>
<img src="user/<?php echo $row['uimage']; ?>" height="50" width="50">
</td>
<!-- STATUS -->
<td>
<?php if($status == 'active') { ?>
<span style="color:green;font-weight:bold;">Active</span>
<?php } else { ?>
<span style="color:red;font-weight:bold;">Inactive</span>
<?php } ?>
</td>
<!-- CHANGE STATUS -->
<td>
<?php if($status == 'active') { ?>
<a href="change_builder_status.php?id=<?php echo $id; ?>&status=inactive">
<button class="btn btn-warning btn-sm">Deactivate</button>
</a>
<?php } else { ?>
<a href="change_builder_status.php?id=<?php echo $id; ?>&status=active">
<button class="btn btn-success btn-sm">Activate</button>
</a>
<?php } ?>
</td>
<!-- ACTION -->
<td>
<a href="userbuilderdelete.php?id=<?php echo $id; ?>">
<button class="btn btn-danger btn-sm">Delete</button>
</a>
</td>
</tr>
<?php
$cnt++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /Main Wrapper -->
<!-- jQuery -->
<script src="assets/js/jquery-3.2.1.min.js"></script>
<!-- Bootstrap Core JS -->
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<!-- Slimscroll JS -->
<script src="assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- Datatables JS -->
<script src="assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="assets/plugins/datatables/dataTables.bootstrap4.min.js"></script>
<script src="assets/plugins/datatables/dataTables.responsive.min.js"></script>
<script src="assets/plugins/datatables/responsive.bootstrap4.min.js"></script>
<script src="assets/plugins/datatables/dataTables.select.min.js"></script>
<script src="assets/plugins/datatables/dataTables.buttons.min.js"></script>
<script src="assets/plugins/datatables/buttons.bootstrap4.min.js"></script>
<script src="assets/plugins/datatables/buttons.html5.min.js"></script>
<script src="assets/plugins/datatables/buttons.flash.min.js"></script>
<script src="assets/plugins/datatables/buttons.print.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/script.js"></script>
</body>
</html>