-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules_reports_reservations.php
91 lines (82 loc) · 3.77 KB
/
modules_reports_reservations.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
session_start();
require_once('config/config.php');
require_once('config/checklogin.php');
require_once('config/codeGen.php');
checklogin();
require_once('partials/head.php');
?>
<body class="theme-red">
<!-- Page Loader -->
<div class="page-loader-wrapper">
<?php require_once('partials/loader.php'); ?>
</div>
<!-- Overlay For Sidebars -->
<div class="overlay"></div>
<!-- Top Bar -->
<?php require_once('partials/navigation.php'); ?>
<!-- Left Sidebar -->
<?php require_once('partials/sidebar.php'); ?>
<!-- Add Staff Modal -->
<section class="content">
<div class="container-fluid">
<div class="block-header">
<div class="row">
<div class="col-lg-12 col-md-6 col-sm-7">
<h2>Reports - Museum Visit Reservations</h2>
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard">Dashboard</a></li>
<li class="breadcrumb-item"><a href="">Reports</a></li>
<li class="breadcrumb-item active">Reservations</li>
</ul>
</div>
</div>
</div>
<hr>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover dataTable js-exportable">
<thead>
<tr>
<th>Member Details</th>
<th>Dates</th>
<th>Payment Status</th>
</tr>
</thead>
<tbody>
<?php
$ret = "SELECT * FROM reservations r INNER JOIN
users u ON u.user_id = r.reservation_user_id ";
$stmt = $mysqli->prepare($ret);
$stmt->execute(); //ok
$res = $stmt->get_result();
while ($reservations = $res->fetch_object()) {
?>
<tr>
<td>
<a href="modules_bookings_reservation?view=<?php echo $reservations->reservation_id; ?>">
Name: <?php echo $reservations->user_name; ?><br>
Email: <?php echo $reservations->user_email; ?><br>
Contact: <?php echo $reservations->user_phone; ?>
</a>
</td>
<td>
Visit Date : <?php echo date('d, M Y', strtotime($reservations->reservation_date)); ?><br>
Created At : <?php echo date('d, M Y g:ia', strtotime($reservations->reservation_created_at)); ?>
</td>
<td><?php echo $reservations->reservation_payment_status; ?></td>
</tr>
<?php
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
<!-- Scripts -->
<?php require_once('partials/scripts.php'); ?>
</body>
</html>