-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaccept.php
159 lines (143 loc) · 6.44 KB
/
accept.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<video autoplay loop muted plays-inline class="backvid">
<source src="img/1videoplayback.mp4" type="video/mp4">
</video>
<div class="navbar">
<nav>
<li>
<div class="verline"></div>
</li>
<a href="index.php"><img src="img/LifeSource Foundation-1 (2).png" alt="logo" height="50px"
width="200px"></a>
<ul>
<?php session_start();
$userLoggedIn = false;
if(isset($_SESSION['logged_in'])){
$userLoggedIn = true;
$uName = $_SESSION['username'];
}
?>
<li> <a href="index.php">HOME</a> </li>
<li> <a href="about.php">ABOUT US</a></li>
<li> <a href="donorpanel.php">INFORMATION</a> </li>
<li> <a href="donationform.php">DONATE BLOOD</a> </li>
<li> <a href="recieveform.php">RECIEVE BLOOD</a> </li>
<li>
<p class="undersquare">________</p>
</li>
<li id="signUp">
<a href="SignUp.php">SIGN UP
<?php
if($userLoggedIn){
echo "
<script language=javascript>
var signUp = document.getElementById('signUp');
signUp.style.visibility = 'hidden';
</script>
";
}else{
echo "
<script language=javascript>
var signUp = document.getElementById('signUp');
signUp.style.visibility = 'visible';
</script>
";
}
?>
</a>
</li>
<li id="login">
<a href="Login.php">LOGIN
<?php
if($userLoggedIn){
echo "
<script language=javascript>
var login = document.getElementById('login');
login.style.visibility = 'hidden';
</script>
";
}else{
echo "
<script language=javascript>
var login = document.getElementById('login');
login.style.visibility = 'visible';
</script>
";
}
?>
</a>
</li>
<li id="UserName" onclick="profileMenu()">
<a href="">
<?php
if($userLoggedIn){
echo "
<script language=javascript>
var uName = document.getElementById('UserName');
uName.innerHTML = " . json_encode($uName) . ";
uName.style.color = 'white';
function profileMenu(){
window.location.href='../welcome.php';
}
</script>
";
}else{
echo "
<script language=javascript>
var uName = document.getElementById('UserName');
signOut.style.visibility = 'hidden';
</script>
";
}
?>
</a>
</li>
<li id="SignOut" onclick="logOut()">Log Out
<?php
if($userLoggedIn){
echo "
<script language=javascript>
var signOut = document.getElementById('SignOut');
signOut.style.color = 'white';
function logOut(){
window.location.href = 'action/logout.php';
}
</script>
";
}else{
echo "
<script language=javascript>
var signOut = document.getElementById('SignOut');
signOut.innerHTML = 'SIGN OUT';
signOut.style.visibility = 'hidden';
</script>
";
}
?>
</li>
</ul>
</nav>
</div>
<div class="congratulations">
<div class="accept">
<h1>Thank you so much for registering. Please wait till the
admin accepts your request. You will recieve more information
about the location points and furthers regulations
in your email if your request is accepted.
But if unfortunately your request is denied then we wish you
all the best and we
apologize for any inconveniences.
</h1>
</div>
</div>
</body>
</html>