-
Notifications
You must be signed in to change notification settings - Fork 1
/
postan.html
617 lines (533 loc) · 27 KB
/
postan.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
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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
<!DOCTYPE html>
<html lang="en">
<head>
<title>Create — Onepage Website Template by Colorlib</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700,900" rel="stylesheet">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/jquery.fancybox.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body data-spy="scroll" data-target=".site-navbar-target" data-offset="300">
<div class="site-wrap">
<div class="site-mobile-menu site-navbar-target">
<div class="site-mobile-menu-header">
<div class="site-mobile-menu-close mt-3">
<span class="icon-close2 js-menu-toggle"></span>
</div>
</div>
<div class="site-mobile-menu-body"></div>
</div>
<div class="border-bottom top-bar py-2 bg-dark" id="home-section">
<div class="container">
<div class="row">
<div class="col-md-6">
<p class="mb-0">
<span class="mr-3">
<span><strong id="usernamelbl" style="color:rgb(0, 252, 239)" style="display:none">Username:</strong> <label style="color:red" id="usernameglbl"></label></span>
<span><strong id="rolelbl" style="color:rgb(0, 252, 239)" style="display:none;">Role:</strong> <label style="color:red" id="roleglbl"></label></span>
<span><button id="logout" class="btn btn-outline-danger" style="display:none;" onclick="logout()">Logout</button></span>
</p>
</div>
<div class="col-md-6">
<div class="form-popup" id="loginform" style="display:none">
<form action="login.php" method="POST" class="form-container">
<h1 style="color:red">Login</h1>
<label for="email"><b style="color:red">Email</b></label>
<input type="text" placeholder="Enter Email" name="email" required>
<label for="psw"><b style="color:red">Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit" name="logsub" class="btn btn-outline-primary">Login</button>
<button type="button" class="btn btn-outline-danger" onclick="closeForm()">Close</button>
</form>
</div>
<ul class="social-media">
<li><a href="#" class="p-2"><span class="icon-facebook"></span></a></li>
<li><a href="#" class="p-2"><span class="icon-twitter"></span></a></li>
<li><a href="#" class="p-2"><span class="icon-instagram"></span></a></li>
<li><a href="#" class="p-2"><span class="icon-linkedin"></span></a></li>
</ul>
</div>
</div>
</div>
</div>
<header class="site-navbar py-4 bg-white js-sticky-header site-navbar-target" role="banner">
<div class="container">
<div class="row align-items-center">
<img src="images/logo.png" />
<h1 class="mb-0 site-logo"><a href="index.html" class="text-black h2 mb-0">Icsd-Postmaker<span
class="text-primary">.</span> </a></h1>
<div class="col-12">
<nav class="site-navigation position-relative text-right" role="navigation">
<ul class="site-menu main-menu js-clone-nav mr-auto d-none d-lg-block">
<li><a href="index.html" class="nav-link" style="color:rgb(0, 252, 239)">Home</a></li>
<li><a href="postan.html" style="color:rgb(0, 252, 239)">Post annaouncement</a></li>
<li id="profilebtn" ><a href="profile.html" style="color:rgb(0, 252, 239)" class="nav-link">Profile</a></li>
<li>
<a href="stats.html" style="color:rgb(0, 252, 239)" class="nav-link">Statistics</a>
</li>
<li id="adminbtn"><a href="admin.html" style="color:red" class="nav-link">Admin</a></li>
<li id="loginbtn"><a href="javascript:openForm();" style="color:red" class="nav-link">Login</a></li>
<li id="signupbtn"><a href="signup.html" style="color:red" class="nav-link">Sign up</a></li>
</ul>
</nav>
</div>
<div class="d-inline-block d-xl-none ml-md-0 mr-auto py-3" style="position: relative; top: 3px;"><a href="#"
class="site-menu-toggle js-menu-toggle text-black"><span class="icon-menu h3"></span></a></div>
</header>
<div class="site-blocks-cover overlay" style="background-image: url(images/library.jpg);" data-aos="fade"
data-stellar-background-ratio="0.5">
<div class="container">
<div class="row align-items-center justify-content-center text-center">
</div>
</div>
</div>
<section class="site-section">
<div class="container">
<div class="row">
<div class="col-4" id="radiobuttons">
<input type="radio" id="articleb" name="type" onclick="show();" value="article">
<label for="article">Article</label><br>
<input type="radio" id="inprocb" name="type" onclick="show();" value="inproc">
<label for="inproc">Inproceedings</label><br>
<input type="radio" id="bookb" name="type" onclick="show();" value="book">
<label for="book">Book</label><br>
<input type="radio" id="inbookb" name="type" onclick="show();" value="inbook">
<label for="inbook">InBook</label><br>
<form action="functions.php" method="POST" enctype="multipart/form-data">
<input type="submit" name="import" class="btn btn-danger" value="Import"><br><br>
<input type="file" name="file" id="file">
</form>
</div>
<div class="col-8">
<!-- Post article annaouncement -->
<form action="setan.php" method="POST" id="postarticle" name="postarticle" style="display: none;" onsubmit="return validateaForm()">
<div class="form-group row">
<div class="col-8">
<input type="text" id="title" class="form-control" name="title" required placeholder="Title"><br>
<textarea id="txtArea" name="txtArea" class="form-control" rows="7" cols="50" placeholder="Note"></textarea><br>
<input type="text" id="url" class="form-control" name="url" placeholder="URL">
</div>
<div class="col-4">
<input type="submit" name="suba" value="Post" class="btn btn-danger"><br><br>
<input type="text" id="author1" class="form-control" name="author1" required placeholder="1st Author"><br>
<input type="text" id="author2" class="form-control" name="author2" required placeholder="2nd Author"><br>
<input type="text" id="author3" class="form-control" name="author3" required placeholder="3rd Author"><br>
<input type="text" id="author4" class="form-control" name="author4" required placeholder="4th Author"><br>
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="atitle" name="atitle" placeholder="Article Name" required >
</div>
<div class="col">
<input type="text" id="avolume" class="form-control" name="avolume" placeholder="Volume">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" id="anumber" class="form-control" name="anumber" placeholder="Number">
</div>
<div class="col">
<input type="text" id="apages" class="form-control" name="apages" placeholder="Pages">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" id="adoi" class="form-control" name="adoi" placeholder="Document Object Identifier">
</div>
</div>
<!-- Post inproceedings annaouncement -->
</form>
<form action="setan.php" method="POST" id="postinproc" name="postinproc" style="display: none;" onsubmit="return validateinprocForm()">
<div class="form-group row">
<div class="col-8">
<input type="text" id="title" class="form-control" name="title" required placeholder="Title"><br>
<textarea id="txtArea" class="form-control" name="txtArea" rows="7" cols="50" placeholder="Note"></textarea><br>
<input type="text" class="form-control" id="url" name="url" placeholder="URL">
</div>
<div class="col-4">
<input type="submit" name="subinproc" value="Post" class="btn btn-danger"><br><br>
<input type="text" id="author1" class="form-control" name="author1" required placeholder="1st Author"><br>
<input type="text" id="author2" class="form-control" name="author2" required placeholder="2nd Author"><br>
<input type="text" id="author3" class="form-control" name="author3" required placeholder="3rd Author"><br>
<input type="text" id="author4" class="form-control" name="author4" required placeholder="4th Author"><br>
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="radio" id="involumeb" name="involumeb" value="involumeb">
<label for="involume">Volume:</label>
<input type="radio" id="innumberb" name="innumberb" value="involumeb">
<label for="innumber">Number:</label>
<input type="text" class="form-control" id="innumvol" name="innumvol" placeholder="Volume/Number">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="intitle" name="intitle" required placeholder="Booktitle">
</div>
<div class="col">
<input type="text" class="form-control" id="ineditor" name="ineditor" placeholder="Editor">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="inadress" name="inadress" placeholder="Adress">
</div>
<div class="col">
<input type="text" class="form-control" id="inseries" name="inseries" placeholder="Series">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="inpages" name="inpages" placeholder="Pages">
</div>
<div class="col">
<input type="text" class="form-control" id="inorg" name="inorg" placeholder="Organisation">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="inpub" name="inpub" placeholder="Publisher">
</div>
<div class="col">
<input type="text" class="form-control" id="indoi" name="indoi" placeholder="Document Object Identifier">
</div>
</div>
</form>
<!-- Post book annaouncement -->
<form action="setan.php" method="POST" id="postbook" name="postbook" onsubmit="return validatebForm()" style="display: none;">
<div class="form-group row">
<div class="col-8">
<input type="text" class="form-control" id="title" name="title" required placeholder="Title"><br>
<textarea id="txtArea" class="form-control" name="txtArea" rows="7" cols="50" placeholder="Note" ></textarea><br>
<input type="text" class="form-control" id="url" name="url" placeholder="URL">
</div>
<div class="col-4">
<input type="submit" name="subb" value="Post" class="btn btn-danger"><br><br>
<input type="text" id="author1" class="form-control" name="author1" required placeholder="1st Author"><br>
<input type="text" id="author2" class="form-control" name="author2" required placeholder="2nd Author"><br>
<input type="text" id="author3" class="form-control" name="author3" required placeholder="3rd Author"><br>
<input type="text" id="author4" class="form-control" name="author4" required placeholder="4th Author"><br>
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="radio" id="involumeb" name="involumeb" value="involumeb">
<label for="involume">Volume:</label>
<input type="radio" id="innumberb" name="innumberb" value="involumeb">
<label for="innumber">Number:</label>
<input type="text" class="form-control" id="innumvol" name="innumvol" placeholder="Volume/Number">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="bpub" name="bpub" placeholder="Publisher" required>
</div>
<div class="col">
<input type="text" class="form-control" id="badress" placeholder="Publisher Adress" name="badress">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="bedition" name="bedition" placeholder="Edition">
</div>
<div class="col">
<input type="text" class="form-control" id="bseries" name="bseries" placeholder="Series">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" class="form-control" id="bisbn" name="bisbn" placeholder="ISBN">
</div>
<div class="col">
<input type="text" class="form-control" id="bissn" name="bissn" placeholder="ISSN">
</div>
</div>
</form>
<!-- Post inbook annaouncement -->
<form action="setan.php" method="POST" id="postinbook" name="postinbook" onsubmit="return validateinbForm()" style="display: none;">
<div class="form-group row">
<div class="col-8">
<input type="text" id="title" class="form-control" name="title" placeholder="Title" required><br>
<textarea id="txtArea" name="txtArea" class="form-control" rows="7" cols="50" placeholder="Note" ></textarea><br>
<input type="text" id="url" class="form-control" name="url" placeholder="URL">
</div>
<div class="col-4">
<input type="submit" name="subinbook" value="Post" class="btn btn-danger"><br><br>
<input type="text" id="author1" class="form-control" name="author1" required placeholder="1st Author"><br>
<input type="text" id="author2" class="form-control" name="author2" required placeholder="2nd Author"><br>
<input type="text" id="author3" class="form-control" name="author3" required placeholder="3rd Author"><br>
<input type="text" id="author4" class="form-control" name="author4" required placeholder="4th Author"><br>
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="radio" id="involumeb" name="involumeb" value="involumeb">
<label for="involume">Volume:</label>
<input type="radio" id="innumberb" name="innumberb" value="involumeb">
<label for="innumber">Number:</label>
<input type="text" id="innumvol" class="form-control" name="innumvol" placeholder="Volume/Number">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" id="inbpub" class="form-control" name="inbpub" placeholder="Publisher" required>
</div>
<div class="col">
<input type="text" id="inbadress" class="form-control" name="inbadress" placeholder="Publisher Adress">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" id="inbchap" class="form-control" name="inbchap" placeholder="Chapter">
</div>
<div class="col">
<input type="text" id="inbpages" class="form-control" name="inbpages" placeholder="Pages">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" id="inbtype" class="form-control" name="inbtype" placeholder="Type">
</div>
<div class="col">
<input type="text" id="inbseries" class="form-control" name="inbseries" placeholder="Series">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" id="inbedition" class="form-control" name="inbedition" placeholder="Edition">
</div>
<div class="col">
<input type="text" id="inbisbn" class="form-control" name="inbisbn" placeholder="ISBN">
</div>
</div>
<div class="form-group row">
<div class="col">
<input type="text" id="inbissn" class="form-control" name="inbissn" placeholder="ISSN">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="row">
<div class="col-md-5">
<h2 class="footer-heading mb-4">About Us</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Neque facere laudantium magnam voluptatum
autem. Amet aliquid nesciunt veritatis aliquam.</p>
</div>
<div class="col-md-3 ml-auto">
<h2 class="footer-heading mb-4">Features</h2>
<ul class="list-unstyled">
<li><a href="#">About Us</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Testimonials</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div class="col-md-3">
<h2 class="footer-heading mb-4">Follow Us</h2>
<a href="#" class="pl-0 pr-3"><span class="icon-facebook"></span></a>
<a href="#" class="pl-3 pr-3"><span class="icon-twitter"></span></a>
<a href="#" class="pl-3 pr-3"><span class="icon-instagram"></span></a>
<a href="#" class="pl-3 pr-3"><span class="icon-linkedin"></span></a>
</div>
</div>
</div>
<div class="col-md-3">
<h2 class="footer-heading mb-4">Subscribe Newsletter</h2>
<form action="#" method="post">
<div class="input-group mb-3">
<input type="text" class="form-control border-secondary text-white bg-transparent"
placeholder="Enter Email" aria-label="Enter Email" aria-describedby="button-addon2">
<div class="input-group-append">
<button class="btn btn-primary text-white" type="button" id="button-addon2">Send</button>
</div>
</div>
</form>
</div>
</div>
<div class="row pt-5 mt-5 text-center">
<div class="col-md-12">
<div class="border-top pt-5">
<p>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©
<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made
with <i class="icon-heart text-danger" aria-hidden="true"></i> by <a href="https://colorlib.com"
target="_blank">Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</p>
</div>
</div>
</div>
</div>
</footer>
</div> <!-- .site-wrap -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/bootstrap-datepicker.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.fancybox.min.js"></script>
<script src="js/jquery.sticky.js"></script>
<script language="JavaScript" type="text/javascript">
function openForm() {
document.getElementById("loginform").style.display = "block";
}
function closeForm() {
document.getElementById("loginform").style.display = "none";
}
function show() {
if (document.getElementById("articleb").checked == true) {
document.getElementById("postarticle").style.display = "block";
document.getElementById("postinproc").style.display = "none";
document.getElementById("postbook").style.display = "none";
document.getElementById("postinbook").style.display = "none";
}
else if (document.getElementById("inprocb").checked == true) {
document.getElementById("postarticle").style.display = "none";
document.getElementById("postinproc").style.display = "block";
document.getElementById("postbook").style.display = "none";
document.getElementById("postinbook").style.display = "none";
}
else if (document.getElementById("bookb").checked == true) {
document.getElementById("postarticle").style.display = "none";
document.getElementById("postinproc").style.display = "none";
document.getElementById("postbook").style.display = "block";
document.getElementById("postinbook").style.display = "none";
}
else if (document.getElementById("inbookb").checked == true) {
document.getElementById("postarticle").style.display = "none";
document.getElementById("postinproc").style.display = "none";
document.getElementById("postinbook").style.display = "block";
document.getElementById("postbook").style.display = "none";
}
}
function validateaForm()
{
var x = document.forms["postarticle"]["title"].value;
var y = document.forms["postarticle"]["atitle"].value;
if(x==""){
alert("Please fill out title field");
return false;
}
else if(y=="")
{
alert("Please fill out Article title field");
return false;
}
}
function validateinprocForm()
{
var x=document.forms["postinproc"]["title"].value;
var y=document.forms["postinproc"]["intitle"].value;
if(x==""){
alert("Please fill out title field");
return false;
}
else if(y=="")
{
alert("Please fill out Book title field");
return false;
}
}
function validatebForm()
{
var x=document.forms["postbook"]["title"].value;
var y=document.forms["postbook"]["bpub"].value;
if(x==""){
alert("Please fill out title field");
return false;
}
else if(y=="")
{
alert("Please fill out Book publisher field");
return false;
}
}
function validateinbForm()
{
var x=document.forms["postinbook"]["title"].value;
var y=document.forms["postinbook"]["inbpub"].value;
var z1=document.forms["postinbook"]["inbchap"].value;
var z2=document.forms["postinbook"]["inbpages"].value;
if(x==""){
alert("Please fill out title field");
return false;
}
else if(y=="")
{
alert("Please fill out Book publisher field");
return false;
}
else if(z1=="" && z2=="")
{
alert("Please fill out Chapter and/or Pages field");
return false;
}
}
function logout()
{
$.ajax({ url: "functions.php",
type:'post',
data: { "logout": "1"},
success: function(){
alert("You logged out");
location.reload();
}});
}
</script>
<script src="js/typed.js"></script>
<script>
var typed = new Typed('.typed-words', {
strings: ["Web Apps", " WordPress", " Mobile Apps"],
typeSpeed: 80,
backSpeed: 80,
backDelay: 4000,
startDelay: 1000,
loop: true,
showCursor: true
});
</script>
<script src="js/main.js"></script>
<script>
$(document).ready(function(){
$.ajax({ url: "functions.php",
type:'post',
dataType: 'json',
data: { "calluser": "1"},
success: function(data){
if(data!==""){
$('#usernameglbl').html(data.name);
$('#roleglbl').html(data.role);
$('#logout').show();
}
}});
});
</script>
</body>
</html>