-
Notifications
You must be signed in to change notification settings - Fork 0
/
trash.php
150 lines (137 loc) · 7.97 KB
/
trash.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php require_once("header.php"); ?>
<br>
<br>
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<h2 class="all-booking-head"><a href="index.php">Home / </a>All Booking</h2>
</div>
</div>
</div>
<section class="all-booking-dtl">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="all-booking-box card">
<table class="table all-booking-table" cellspacing="0">
<thead>
<div class="table-query">
<h3 class="table-title">Booking</h3>
<input type="text" name="search" placeholder="Search.." class="table-search-box">
<i onclick="trashreoval()" class="fas fa-trash-alt booking-dtl-del table-slected-del"></i>
<div class="table-action">
<a href="new-booking.php?action=true"><i class="fas fa-plus n-booking"></i></a>
<i class="fas fa-redo-alt table-redo"></i>
</div>
</div>
</thead>
<tbody>
<tr>
<th><input type="checkbox" onclick="checkboxToggle(this)" ></th>
<th>Image</th>
<th>Name</th>
<th>Gender</th>
<th>Phone</th>
<th>Email</th>
<th>Arrive</th>
<th>Depart</th>
<th>Status</th>
<th>Room Type</th>
<th>Actions</th>
</tr>
<?php
require_once("config/configer.php");
$shoDataQuery = "SELECT * FROM dashbord WHERE display='none' ";
$runDataQuery = mysqli_query($connect,$shoDataQuery);
if ($runDataQuery==true) {
while ($db_data = mysqli_fetch_array($runDataQuery)) {
$user_name = $db_data["fName"]." ".$db_data["lName"];
$user_email = $db_data["email"];
$user_phone = $db_data["phone"];
$user_gender = $db_data["gender"];
$user_addr = $db_data["addr"];
$user_avater_image_first_person = $db_data["avater_first_person"];
$user_avater_image_second_person = $db_data["avater_second_person"];
$user_avater_image_third_person = $db_data["avater_third_person"];
$user_avater_image_forth_person = $db_data["avater_forth_person"];
$user_room_type = $db_data["room_type"];
$user_arrive_date = $db_data["arrive_date"];
$user_depart_date = $db_data["depart_date"];
$user_nid_first_avater_fornt_photo = $db_data["nid_first_avater_fornt_photo"];
$user_nid_first_avater_back_photo = $db_data["nid_first_avater_back_photo"];
$user_nid_second_avater_fornt_photo = $db_data["nid_second_avater_fornt_photo"];
$user_nid_second_avater_back_photo = $db_data["nid_second_avater_back_photo"];
$user_nid_third_avater_fornt_photo = $db_data["nid_third_avater_fornt_photo"];
$user_nid_third_avater_back_photo = $db_data["nid_third_avater_back_photo"];
$user_nid_forth_avater_fornt_photo = $db_data["nid_forth_avater_fornt_photo"];
$user_nid_forth_avater_back_photo = $db_data["nid_forth_avater_back_photo"];
$user_city = $db_data["city"];
$user_total_person = $db_data["total_person"];
$user_paid_unpaid = $db_data["paid_unpaid"];
$user_token = $db_data["token"];
$checkout_code = $db_data["check_out_code"];
$trDisplay = $db_data["display"];
?>
<tr class="emran" >
<input type="hiden" hidden="" value="<?php ?>" name="">
<td><input type="checkbox" name="bookingCheckBox" ></td>
<td><img src='<?php echo "avater/$user_avater_image_first_person" ?>' ></td>
<td><a href="edit-booking.php?token=<?php echo $user_token; ?>&editB00kingActive"><?php echo $user_name; ?></a></ad>
<td><?php echo $user_gender; ?></ad>
<td><?php echo $user_phone; ?></td>
<td><?php echo $user_email; ?></td>
<td><?php echo $user_arrive_date; ?></td>
<td><?php echo $user_depart_date; ?></td>
<td>
<?php
if ($user_paid_unpaid == "Paid") {
?>
<sapn class="paid">Paid</sapn>
<?php
}else {
?>
<span class="unpadi">Unpaid</span></td>
<?php
}
?>
<td><?php echo $user_room_type; ?></td>
<td style="display: none;"><?php echo $checkout_code; ?></td>
<td>
<a data-toggle="tooltipBooking" data-placement="bottom" title="Delete Booking" onclick='if (confirm("Ar you sure to delete this person?")) {
window.location.href = "php-core/delete_core.php?token=<?php echo $user_token; ?>&deletBookinActive&Aimage=<?php echo $user_avater_image_first_person; ?>&nidImagefornt=<?php echo $user_nid_first_avater_fornt_photo; ?>&nidImageBack=<?php echo $user_nid_first_avater_back_photo ?>"
} else {
window.location.reload();
}' ><i class="fas fa-trash-alt booking-dtl-del" style="background:#f44336 ;"></i></a>
<a data-toggle="tooltipRecoverBooking" data-placement="bottom" title="Recover Booking" onclick='recoverDelet("<?php echo $user_token; ?>")' ><i class="fas fa-recycle booking-dtl-del"></i></a>
</td>
</tr>
<tr>
<?php
}
}else {
echo "not found";
}
?>
<!-- if (confirm("Ar you sure to delete this person?")) {
window.location.href = "php-core/delete_core.php?token=<?php echo $user_token; ?>&deletBookinActive&Aimage=<?php echo $user_avater_image_first_person; ?>&nidImagefornt=<?php echo $user_nid_first_avater_fornt_photo; ?>&nidImageBack=<?php echo $user_nid_first_avater_back_photo ?>"
} else {
window.location.reload();
}
-->
</tbody>
</table>
<div class="table-iteam-query d-flex justify-content-end float-left">
<p>Items per page:</p>
<span class="table-range"><select>
<option>5</option>
<option>25</option>
<option>50</option>
<option>100</option>
</select></span>
</div>
</div>
</div>
</div>
</div>
</section>
<?php require_once("footer.php"); ?>