-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_post.php
202 lines (160 loc) · 6.24 KB
/
my_post.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?php
session_start();
include 'common/connect.php';
$volunteer_id = $_SESSION['volunteer_id'];
//we can collect user_id into session and fetch with that id into database....
$result = $obj->query("select * from volunteer_acceptance WHERE user_id = '$volunteer_id' ");
?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
-->
<!doctype html>
<html lang="zxx">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Helping-Hand(NGO)
</title>
<!-- Template CSS -->
<link rel="stylesheet" href="assets/css/style-starter.css">
<!-- Template CSS -->
<link href="//fonts.googleapis.com/css?family=Poppins:300,400,400i,500,600,700&display=swap" rel="stylesheet">
<!-- Template CSS -->
</head>
<body>
<!--w3l-header-->
<?php include 'common/header.php'; ?>
<!--/header-->
<div class="inner-banner">
</div>
<!-- /contact-form -->
<section class="w3l-contact-11">
<div class="form-41-mian py-5">
<div class="container py-lg-4">
<div class="row align-form-map">
<div class="col-lg-12 form-inner-cont">
<div class="title-content text-left">
<h3 class="hny-title mb-lg-5 mb-4">My donation post</h3>
</div>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Donation Post No.</th>
<th scope="col">Message</th>
<!-- <th scope="col">description</th> -->
<th scope="col">Date - time</th>
<!-- <th scope="col">status</th> -->
<th scope="col">Status</th>
<th scope="col">Receive Status</th>
<th scope="col">Delivery Status</th>
<!-- <th scope="col">contact number</th>
<th scope="col">Date</th> -->
<!-- <th scope="col">Reject</th>
<th scope="col">Accept</th> -->
</tr>
</thead>
<tbody>
<?php
while($row=$result->fetch_object()){
?>
<tr>
<th scope="row"><?php echo $row->d_id; ?></th>
<td><?php echo $row->description; ?></td>
<td><?php echo $row->datetime; ?></td>
<td><?php echo $row->status; ?></td>
<?php
if( ($row->receive_message=='') and ($row->delivery_message==''))
{
?>
<th scope="row">
<a href="update_donation_post.php?delid=<?php echo $row->v_id;?>"><button class="btn btn-success">Received</button></a>
</th>
<th scope="row">
Wait for Receiving
</th>
<?php
}
else if( ($row->receive_message!='') and ($row->delivery_message==''))
{
?>
<th scope="row">
Received
</th>
<th scope="row">
<a href="delivery_donation_post.php?delid=<?php echo $row->v_id;?>"><button class="btn btn-success">Delivered</button></a>
</th>
<?php
}
else
{
?>
<th scope="row">
Received
</th>
<th scope="row">
Delivered
</th>
<?php
}
?>
</tr>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- <div class="map">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3671.5832020013786!2d72.62799931496815!3d23.039070984944615!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x395e8691219fcc49%3A0x3b9e0bbd566d855d!2sBrainKlick%20Technologies!5e0!3m2!1sen!2sin!4v1672226949385!5m2!1sen!2sin" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div> -->
</section>
<!-- //contact-form -->
<!-- footer-66 -->
<?php include 'common/footer.php'; ?>
<!--//footer-66 -->
</body>
</html>
<script src="assets/js/jquery-3.3.1.min.js"></script>
<!-- disable body scroll which navbar is in active -->
<!-- disable body scroll which navbar is in active -->
<script>
$(function () {
$('.navbar-toggler').click(function () {
$('body').toggleClass('noscroll');
})
});
</script>
<!-- disable body scroll which navbar is in active -->
<!--/MENU-JS-->
<script>
$(window).on("scroll", function () {
var scroll = $(window).scrollTop();
if (scroll >= 80) {
$("#site-header").addClass("nav-fixed");
} else {
$("#site-header").removeClass("nav-fixed");
}
});
//Main navigation Active Class Add Remove
$(".navbar-toggler").on("click", function () {
$("header").toggleClass("active");
});
$(document).on("ready", function () {
if ($(window).width() > 991) {
$("header").removeClass("active");
}
$(window).on("resize", function () {
if ($(window).width() > 991) {
$("header").removeClass("active");
}
});
});
</script>
<!--//MENU-JS-->
<script src="assets/js/bootstrap.min.js"></script>