-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyPosts.html
192 lines (167 loc) · 6.05 KB
/
MyPosts.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>IRF - My Posts</title>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="css/mdb.min.css" rel="stylesheet">
<!-- Your custom styles (optional) -->
<link href="css/style.css" rel="stylesheet">
<script src="WebClientpullingfromDB/viewPosts.js"></script>
<link rel="stylesheet" href="vendor/dataTables/css/jquery.dataTables.min.css">
</head>
<body id="content-page">
<!-- Navbar -->
<nav class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
<div class="container">
<!-- Brand -->
<a class="navbar-brand" href="index.html">
<strong>Food Rescue</strong>
</a>
<!-- Collapse -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Links -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<!-- Left -->
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="TheMarket.html">The Market</a>
</li>
<li class="nav-item active" id="myposts-menu">
<a class="nav-link" href="MyPosts.html">My Posts</a>
<span class="sr-only">(current)</span>
</li>
<li class="nav-item">
<a class="nav-link" href="Contact.html">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="AboutUs.html">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Help.html">Help</a>
</li>
</ul>
<!-- Right -->
<ul class="navbar-nav nav-flex-icons">
<li class="nav-item" id="signup-menu">
<a href="" class="nav-link border border-light rounded">
Sign Up
</a>
</li>
<li class="nav-item" id="login-menu">
<a href="" class="nav-link border border-light rounded">
Login
</a>
</li>
<li class="nav-item" id="logout-menu">
<a class="nav-link border border-light rounded" id="logout-user" href="index.html">
Logout
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Navbar -->
<!--Main layout-->
<main>
<div class="container">
<!--Section: Main info-->
<section>
<div class="row">
<div class="col-lg-12 padding-bottom">
<div class="card">
<div class="card-header">
<h4>My Posts</h4>
</div>
<div class="col-xs-12 text-center">
<a href="CreatePost.html" class="btn btn-primary" id="createNewDonation" >Create New</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="donationsTable" class="table table-striped table-hover">
<thead>
<tr>
<th>Title</th>
<th class="hide-mobile">Readiness</th>
<th class="hide-mobile">Address</th>
<th class="hide-mobile">Posted</th>
<th></th>
</tr>
</thead>
<tbody id="tableRows">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="card">
<div class="card-header d-flex align-items-center">
<h4>Pickup Locations</h4>
</div>
<div class="card-body" id="map" style="display:block; height: 500px;">
</div>
</div>
</div>
</div>
</section>
<!--Section: Main info-->
</div>
</main>
<!--Main layout-->
<!--Footer-->
<footer class="page-footer text-center font-small mt-4 wow fadeIn">
<!--Copyright-->
<div class="footer-copyright py-3">
© 2018 Copyright:
<a href="https://mdbootstrap.com/bootstrap-tutorial/" target="_blank"> MDBootstrap.com </a>
</div>
<!--/.Copyright-->
</footer>
<!--/.Footer-->
<!-- SCRIPTS -->
<script async defer src="WebClientpullingfromDB/google.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDuUJl43vI8auaFBkq5WDQC5rF-FV71hK4&callback=initMap">
</script>
<!-- JQuery -->
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Initializations -->
<script type="text/javascript">
// Animations initialization
new WOW().init();
</script>
<script src="vendor/dataTables/js/jquery.dataTables.min.js"></script>
<!-- Main File-->
<script src="js/Post.js"></script>
<script src="js/User.js"></script>
<script type="text/JavaScript">
$(document).ready( function () {
var posts = GetMyPosts();
AddUserToSession();
LoadUser();
} );
</script>
</body>
</html>