-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsignup.html
326 lines (257 loc) · 14.2 KB
/
signup.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
<!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><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>
</div>
</div>
</div>
</header>
<div class="site-blocks-cover overlay" style="background-image: url(images/signup.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" id="signupforms">
<div class="col-md-6 col-md-offset-3">
<button id="changerole" type="button" class="btn btn-outline-danger" onclick="changerole()">Change role</button>
<form action="signup.php" method="post" accept-charset="utf-8" class="form" role="form" id="author" style="display:none"> <legend>Sign Up</legend>
<h4>So you can publish citations as an author</h4>
<div class="row">
<div class="col-xs-6 col-md-6">
<input type="text" name="name" value="" class="form-control input-lg" placeholder="First Name" required>
</div>
<div class="col-xs-6 col-md-6">
<input type="text" name="surname" value="" class="form-control input-lg" placeholder="Last Name" required>
</div>
</div>
<input type="text" name="username" value="" class="form-control input-lg" placeholder="Username" required>
<input type="password" id="p" name="password" minlength="6" value="" class="form-control input-lg" placeholder="Password" required>
<input type="password" id="cp" name="confirm_password" value="" class="form-control input-lg" placeholder="Confirm Password" required>
<div class="row">
<div class="col-xs-4 col-md-4">
<input type="text" id="orcidurl" class="form-control input-lg" name="orcidurl" placeholder="Orcid URL">
</div>
<div class="col-xs-4 col-md-4">
<input type="text" id="url" class="form-control input-lg" name="url" placeholder="Bio URL">
</div>
<div class="col-xs-4 col-md-4">
<input type="text" id="specialty" class="form-control input-lg" name="specialty" placeholder="Specialty"><br>
</div>
</div>
<span class="help-block">By clicking Create my account, you agree to our Terms and that you have read our Data Use Policy, including our Cookie Use.</span>
<input class="btn btn-lg btn-primary btn-block signup-btn" type="submit" name="Signup" value="Signup" onclick="checkstuff()">
</form>
<form action="signup.php" method="post" accept-charset="utf-8" class="form" id="plainuser" role="form">
<legend>Sign Up</legend>
<h4>So you can publish citations as a user</h4>
<input type="text" name="username" value="" class="form-control input-lg" placeholder="Username" required>
<input type="password" id="p" name="password" minlength="6" value="" class="form-control input-lg" placeholder="Password" required>
<input type="password" id="cp" name="confirm_password" value="" class="form-control input-lg" placeholder="Confirm Password" required>
<span class="help-block">By clicking Create my account, you agree to our Terms and that you have read our Data Use Policy, including our Cookie Use.</span>
<input class="btn btn-lg btn-primary btn-block signup-btn" type="submit" name="Signupuser" value="Signup" onclick="checkstuff()">
</form>
</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 type="text/javascript">
function openForm() {
document.getElementById("loginform").style.display = "block";
}
function closeForm() {
document.getElementById("loginform").style.display = "none";
}
function logout()
{
$.ajax({ url: "functions.php",
type:'post',
data: { "logout": "1"},
success: function(){
location.reload();
alert("You logged out");
location.reload();
}});
}
function checkstuff()
{
if(document.getElementById('p').value!=document.getElementById('cp').value)
alert("Password and confirm password dont match");
}
function changerole()
{
if(document.getElementById('author').style.display=="block")
{
document.getElementById('plainuser').style.display="block";
document.getElementById('author').style.display="none";
}
else{
document.getElementById('plainuser').style.display="none";
document.getElementById('author').style.display="block";
}
}
</script>
<script src="js/typed.js"></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();
$('#signupforms').html("You are already logged in....");
}
}});
});
</script>
</body>
</html>