-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost_donation.php
162 lines (141 loc) · 5.03 KB
/
post_donation.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
<?php
session_start();
include 'common/connect.php';
//session code
if(!isset($_SESSION['volunteer_id']))
{
header('location:home.php');
}
//finish
$user_id = $_SESSION['volunteer_id'];
$volunteer_data = $obj->query("select * from user where user_id='$user_id'");
$vol = $volunteer_data->fetch_object();
$v_city_id = $vol->city_id;
$v_area_id = $vol->area_id;
$result = $obj->query("select * from donation where city_id='$v_city_id' and area_id='$v_area_id' and status != 'accept'");
?>
<!--
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">Your donation post</h3>
</div>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">D_ID</th>
<th scope="col">Title</th>
<!-- <th scope="col">description</th> -->
<th scope="col">Address</th>
<!-- <th scope="col">status</th> -->
<th scope="col">Contact Name</th>
<th scope="col">More</th>
<!-- <th scope="col">contact number</th>
<th scope="col">Date</th> -->
<!-- <th scope="col">Reject</th>
<th scope="col">Accept</th> -->
</tr>
</thead>
<?php
while($row=$result->fetch_object()){
?>
<tbody>
<tr>
<th scope="row"><?php echo $row->d_id; ?></th>
<td><?php echo $row->title; ?></td>
<!-- <td><?php //echo $row->description; ?></td> -->
<td><?php echo $row->address; ?></td>
<!-- <td><?php //echo $row->status; ?></td> -->
<td><?php echo $row->contact_name; ?></td>
<!-- <td><?php //echo $row->contact_number; ?></td>
<td><?php //echo $row->date; ?></td> -->
<th scope="row"><a href="more_postdonation.php?moreid=<?php echo $row->d_id;?>">More details..</a></th>
</tr>
<!-- <td><a href="delete_event.php?delid=<?php //echo $row->e_id;?>"><button class="btn btn-danger">Reject</button></a></td>
<td><a href="edit_event.php?eid=<?php //echo $row->e_id;?>"><button class="btn btn-default">Accept</button></a></td>
<td></td> -->
</tr>
</tbody>
<?php
}
?>
</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>