-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.php
41 lines (36 loc) · 1.79 KB
/
view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
$title = 'View Resident Details';
require_once 'includes/header.php';
require_once './includes/auth_check.php';
require_once './includes/master_check.php';
require_once './db/conn.php';
require './includes/sanitise.php';
// Get Blog by id
if(!isset($_GET['tid'])){
include './includes/errormessage.php';
} else{
$id = test_input($_GET['tid']);
$result = $crud->getPendingById($id);
?>
<div class="text-center container">
<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col py-2">
<div class="card h-100 shadow-lg p-3 mb-5 bg-white rounded">
<div class="card-body">
<h5 class="card-title">Occupant Name: <?php echo test_input($result['occupant_name']); ?></h5>
<p class="card-text">Plot No:<?php echo test_input($result['plot_no']); ?></p>
<p class="card-text">Paid Upto:<?php echo test_input($result['paid_upto']); ?></p>
<p class="card-text">Owner Name:<?php echo test_input($result['owner_name']); ?></p>
<p class="card-text">Contact Number:<?php echo test_input($result['contact']); ?></p>
<p class="card-text">Membership Status:<?php echo test_input($result['membership_status']); ?></p>
</div>
</div>
</div>
</div>
<br/>
<a href="pendinglist.php" class="btn btn-info">Back to List</a>
<a onclick="return confirm('Are you sure you want to approve this record?')" href="approve.php?tid=<?php echo $r['tid'] ?>" class="btn btn-success">Approve</a>
<a onclick="return confirm('Are you sure you want to delete this record?')" href="reject.php?tid=<?php echo $r['tid'] ?>" class="btn btn-danger">Reject</a>
</div></div>
<?php } ?>
<?php require_once 'includes/footer.php'; ?>