-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuccess.php
218 lines (188 loc) · 8.59 KB
/
success.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
<?php
session_start();
?>
<!doctype html>
<html lang="en">
<head>
<title>EDUCARE | SUCCESS</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/header_home.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!--Bootstap social CDN-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-social@5.1.1/bootstrap-social.min.css">
<!--Font Awesome CDN-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="stylePage.css" type="text/css">
</head>
<body>
<!-- Nav Bar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand mb-0" href="#" style="font-size: 30px;">
<img src="images/unnamed.png" width="50" height="50" class="d-inline-block align-top" alt="" loading="lazy">
Educare
</a>
<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>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<?php
if(isset($_SESSION['admin_fname']))
{
echo('
<li class="nav-item">
<a class="nav-link" href="viewFeedback.php">View Reviews <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="displayCoursesAdmin.php">Display courses <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="courses.php">Add courses <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="modifyCoursesFirstPage.php">Modify courses <span class="sr-only">(current)</span></a>
</li>
</ul>
<li>
<a class="btn btn-info" href="admin_page.php" role="button">Profile</a>
</li>
<li>
<a class="btn btn-success" href="logout.php" role="button">Log out</a>
</li>
');
}
else if(isset($_SESSION['username']))
{
echo('
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.php">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="pricing.php">Courses</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contactPage.php">Contact Us</a>
</li>
</ul>
<li>
<a class="btn btn-info" href="profile.php" role="button">Profile</a>
</li>
<li>
<a class="btn btn-success" href="logout.php" role="button">Log out</a>
</li>
');
}
else
{
echo('<li class="nav-item">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.php">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="pricing.php">Courses</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contactPage.php">Contact Us</a>
</li>');
}
?>
<!-- <form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-secondary my-2 my-sm-0" type="submit">Search</button>
</form> -->
</div>
</nav>
<div class="jumbotron text-center" style="margin-top: 80px;">
<h1 style="font-weight: bolder;">Success!! </h1>
<?php
if(isset($_SESSION['msg']))
{
$message = $_SESSION['msg'];
}
else
$message = "Congratulations!!";
echo "<p>". $message. "</p>";
if(isset($_SESSION['page']))
{
$p=$_SESSION['page'];
if ($p == 10)
{
echo("
<a href='signIn.html' class='btn btn-primary' tabindex='-1' role='button'>Sign In</a>
");
}
else if($p == 20 && isset($_SESSION['username']))
{
echo("
<a href='profile.php' class='btn btn-primary' tabindex='-1' role='button'>Go to profile</a>
");
}
else if($p == 20 && isset($_SESSION['admin_fname']))
{
echo("
<a href='admin_fname.php' class='btn btn-primary' tabindex='-1' role='button'>Go to profile</a>
");
}
else{
}
}
?>
</div>
<!--Footer-->
<footer class="footer bg-dark footer-font fixed-bottom" >
<div class="container">
<div class="row" style="margin-bottom: 30px;">
</div>
<div class="row" >
<div class="col-4 offset-1 col-sm-2">
<h5>Links</h5>
<ul class="list-unstyled">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="col-7 col-sm-5">
<h5>Our Address</h5>
<address>
Bangalore<br>
India<br>
<i class="fa fa-phone fa-lg"></i> : +852 1234 5678<br>
<i class="fa fa-fax fa-lg"></i> : +852 8765 4321<br>
<i class="fa fa-envelope fa-lg"></i> <a href="mailto:educare@edu.in">educare@edu.in</a>
</address>
</div>
<div class="col-12 col-sm-4 align-self-center">
<div class="text-center">
<a class="btn btn-social-icon btn-google" href="http://google.com/+"><i class="fa fa-google-plus fa-lg"></i></a>
<a class="btn btn-social-icon btn-facebook" href="http://www.facebook.com/profile.php?id="><i class="fa fa-facebook fa-lg"></i></a>
<a class="btn btn-social-icon btn-linkedin" href="http://www.linkedin.com/in/"><i class="fa fa-linkedin fa-lg"></i></a>
<a class="btn btn-social-icon btn-twitter" href="http://twitter.com/"><i class="fa fa-twitter fa-lg"></i></a>
<a class="btn btn-social-icon btn-google" href="http://youtube.com/"><i class="fa fa-youtube fa-lg"></i></a>
<a class="btn btn-social-icon" href="mailto:"><i class="fa fa-envelope fa-lg"></i></a>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-auto">
<p>© Copyright 2018 Educare</p>
</div>
</div>
</div>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
</body>
</html>