-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpostnotes.php
375 lines (341 loc) · 8.34 KB
/
postnotes.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<?php
session_start();
if(isset($_SESSION["user_name"])){
include './bar\navigation_bar.php';
$institute=$_GET["institute"];
$_SESSION["branch"] = $_GET["branch"];
?>
<!DOCTYPE html>
<html>
<head>
<title>post_books</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
.body{
max-width:1150px;
}
.banner h1 {
color:#fff;
font-size: 45px;
}
.banner p {
color: #fff;
margin: 10px 0 30px 0;
font-size: 18px;
}
.banner a {
text-decoration: none;
color: #fff;
font-size: 17px;
background-color: #00b5ff;
padding: 10px 20px;
}
.banner a:hover {
background:blue;
}
/*-- Post ad --*/
.post-ad-form {
border: 1px solid blue;
padding: 40px;
margin-bottom: 60px;
}
.post-ad-form form label {
font-size: 15px;
text-transform: capitalize;
margin-bottom: 8px;
color: #000;
margin-top: 10px;
display: BLOCK;
font-weight: 400;
float: left;
width: 16%;
text-align: right;
margin-right: 4%;
}
.post-ad-form form label span {
color:red;
}
.post-ad-form input[type="text"] {
padding: 10px 10px 10px 10px;
width: 70%;
margin-bottom: 25px;
border: 1px solid blue;
outline: none;
color: #555;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
float: left;
}
.post-ad-form input[type="number"] {
padding: 10px 10px 10px 10px;
width: 70%;
margin-bottom: 25px;
border: 1px solid blue;
outline: none;
color: #555;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
float: left;
}
.post-ad-form textarea {
height: 180px;
outline: none;
resize: none;
padding: 10px 10px 10px 10px;
width: 70%;
margin-bottom: 25px;
border: 1px solid blue;
outline: none;
color: #555;
}
.post-ad-form input[type="text"]:hover,.post-ad-form textarea:hover {
border: 1px solid blue;
transition:0.5s all;
-webkit-transition:0.5s all;
-moz-transition:0.5s all;
-o-transition:0.5s all;
-ms-transition:0.5s all;
}
.post-ad-form input[type="number"]:hover,.post-ad-form textarea:hover {
border: 1px solid blue;
transition:0.5s all;
-webkit-transition:0.5s all;
-moz-transition:0.5s all;
-o-transition:0.5s all;
-ms-transition:0.5s all;
}
.post-ad-form form select {
border: 1px solid blue;
background-color: #fff;
padding: 8px;
width: 30%;
margin-bottom: 25px;
}
.post-ad-form input[type="submit"] {
background: blue;
color: white;
-webkit-appearance: none;
border: none;
text-transform: uppercase;
position: relative;
padding: 10px 50px;
font-size: 20px;
letter-spacing: 0.1em;
font-weight: 300;
-webkit-transition: all 333ms ease-in-out;
-moz-transition: all 333ms ease-in-out;
-o-transition: all 333ms ease-in-out;
-ms-transition: all 333ms ease-in-out;
transition: all 333ms ease-in-out;
margin-top: 20px;
float: right;
}
legend
{
font-weight: bold;
color: #333;
}
#filedrag
{
display: none;
font-weight: 600;
text-align: center;
padding: 25px 0;
margin: 25px 0;
color: blue;
border: 2px dashed blue;
border-radius: 0px;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
-ms-border-radius: 0px;
-o-border-radius: 0px;
cursor: default;
font-size: 20px;
}
#filedrag.hover
{
color: #f00;
border-color: #f00;
border-style: solid;
box-shadow: inset 0 3px 4px #888;
}
img
{
max-width: 100%;
}
pre
{
width: 95%;
height: 8em;
font-family: monospace;
font-size: 0.9em;
padding: 1px 2px;
margin: 0 0 1em auto;
border: 1px inset #666;
background-color: #eee;
overflow: auto;
}
#messages {
padding: 15px 10px;
margin: 15px 0;
border: 1px solid blue;
}
#messages p
{
color: #555;
font-size:14px;
}
#progress p
{
display: block;
width: 240px;
padding: 2px 5px;
margin: 2px 0;
border: 1px inset #446;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
background: #eee url("progress.png") 100% 0 repeat-y;
}
#progress p.success
{
background: #0c0 none 0 0 no-repeat;
}
#progress p.failed
{
background: #c00 none 0 0 no-repeat;
}
.photos-upload-view{
float:left;
width: 70%;
margin-top: 10px;
}
.upload-ad-photos {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
padding: 20px 0;
margin: 20px 0;
}
.personal-details label {
font-size: 15px;
text-transform: capitalize;
margin-bottom: 8px;
color: #000;
margin-top: 10px;
display: BLOCK;
font-weight: 400;
float: left;
width: 16%;
text-align: right;
margin-right: 4%;
}
p.post-terms {
margin-left: 20%;
color: #000;
font-size: 15px;
letter-spacing: 1px;
}
p.post-terms a {
color: blue;
}
.main-grid-border{
border-bottom: 3px solid #F4F4F4;
}
body{
background-image: url("https://st2.depositphotos.com/1280399/6228/i/950/depositphotos_62289735-stock-photo-white-background-smooth-metal-texture.jpg");
}
.banner {
background:url('img/banner1.jpg') no-repeat 0px 0px;
background-size:cover;
min-height:240px;
padding:45px 0 0 0;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid blue;
margin: 1em 0;
padding: 0;
}
</style>
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<center>
<div class="body">
<h2 class="head">Post Your Notes</h2><hr>
<div class="banner text-center">
<div class="container">
<h1>Post Your<span class="segment-heading"> Notes online </span> with Unotes</h1>
<p>#############################################</p>
<a href="home.php">Go to Home</a>
</div></center>
</div><br>
<!-- Submit Ad -->
<div class="submit-ad main-grid-border">
<div class="container">
<div class="post-ad-form">
<form id="upload" action="postnotesfunction.php?branch=<?php echo $_SESSION["branch"];?>" method="POST" enctype="multipart/form-data">
<label> Subject Name <span>*</span></label>
<input type="text" readonly="readonly" name="subject" Value="<?php echo $_GET["branch"];?>" placeholder="subject name">
<div class="clearfix"></div>
<label>Description <span>*</span></label>
<textarea class="mess" name="description" value="10" placeholder="Write 2-3 lines about your Notes"></textarea>
<div class="clearfix"></div>
<div class="upload-ad-photos">
<label>Only PDF file upload :</label>
<div class="photos-upload-view">
<input type="hidden" name="post_image" id="MAX_FILE_SIZE" name="MAX_FILE_SIZE" value="300000" />
<div>
<input type="file" name="post_image" id="fileselect" name="fileselect[]" multiple="multiple" />
<div id="filedrag" >or drop files here</div>
</div>
<div id="submitbutton">
<button type="submit" name="post_image">Upload Files</button>
</div>
<div id="messages">
<p>Status Messages</p>
</div>
</div>
<div class="clearfix"></div>
<script src="js/filedrag.js"></script>
</div>
<div class="personal-details">
<label>Your Name <span>*</span></label>
<input type="text" Value="<?php echo $_SESSION["user"];?>" name="name" class="name" placeholder="">
<div class="clearfix"></div>
<label>Your Institute <span>*</span></label>
<input type="text" name="institute" value="<?php echo $institute;?>" class="phone" placeholder="">
<div class="clearfix"></div>
<label>Your Mobile No <span>*</span></label>
<input type="text" name="mobile" Value="<?php echo $_SESSION["user_name"];?>" class="phone" placeholder="">
<div class="clearfix"></div>
<label>Your Email Address<span>*</span></label>
<input type="text" name="email" Value="<?php echo $_SESSION["user_email"];?>" class="email" placeholder="">
<div class="clearfix"></div>
<p class="post-terms">By clicking <strong>post Button</strong> Your Notes will be Uploaded</p>
<input type="submit" id="uploadTrigger" name="postnotes" value="Post">
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
}else { header("Location:index.php");
}
?>