-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathmain.php
235 lines (176 loc) · 8.1 KB
/
main.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
<?php
// Initialize the session
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<?php include 'header.php'?>
<!-- Home -->
<div id="home" class="hero-area">
<!-- Backgound Image -->
<div class="bg-image bg-parallax overlay" style="background-image:url(./img/bg.jpg); width:100%; height: 656px;"></div>
<!-- /Backgound Image -->
<div class="home-wrapper">
<div class="container">
<div class="row">
<div class="col-md-8">
<h1 class="white-text" style="font-size: 40px;margin-top: 20px;
margin-bottom:50px;">Intelligent Career Guidance System</h1>
<?php
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true):?>
<p class="lead white-text" style="margin-left: 5px;" ><b>Discover yourself<br>Take the test to find the perfect role for you after Engineering</b></p>
<a class="main-button icon-button" href="login.php">Get Started!</a>
<?php else: ?>
<p class="lead white-text" style="margin-left: 5px;" ><b>Hi, <?php echo htmlspecialchars($_SESSION["username"]); ?> !<br><b>Discover yourself,<br>Take the test to find the perfect role for you after Engineering</b></p>
<a class="main-button icon-button" href="http://127.0.0.1:5000/">Get Started!</a>
<?php endif ?>
</div>
</div>
</div>
</div>
</div>
<!-- /Home -->
<!-- Why us -->
<div id="why-us" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="section-header text-center">
<h2 style="margin-top: 100px; font-size: 45px;">Welcome to Career.ly</h2>
<!--<p class="lead">We all want to fly high and in real time!<br> And in this random pursuit of success, we end up making wrong career choices.</p>-->
<p class="lead"><b style="color: rgb(56, 48, 48);">Career.ly</b> is one stop destination <br>in helping you understand yourself, the best career for you <br> and providing all the resources in the process.</p>
</div>
</div>
<div class="row">
<!-- feature -->
<div class="col-md-4">
<div class="feature">
<i class="feature-icon fa "><span> 🔎︎</span></i>
<div class="feature-content">
<a href="#" >
<?php
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true):?>
<a href="login.php"><h4>Career Prediction</h4></a>
<?php else: ?>
<a href="http://127.0.0.1:5000/"><h4>Career Prediction</h4></a>
<?php endif ?>
<p>Take the test to find the perfect role for you after Engineering.</p>
</div>
</div>
</div>
<!-- /feature -->
<!-- feature -->
<div class="col-md-4">
<div class="feature">
<i class="feature-icon fa "><span>🔎︎</span></i>
<div class="feature-content">
<a href="blog.php" >
<h4>Knowledge Network</h4>
</a>
<p>Gain knowledge through various sources, like important informational links, access to study materials, etc.</p>
</div>
</div>
</div>
<!-- /feature -->
<!-- feature -->
<div class="col-md-4">
<div class="feature">
<i class="feature-icon fa "><span>🔎︎</span></i>
<div class="feature-content">
<a href="courses.php" >
<h4>Online Courses</h4>
</a>
<p>Links to relevant Courses.</p>
</div>
</div>
</div>
<!-- /feature -->
</div>
<!-- /row -->
<hr class="section-hr">
</div>
<!-- /container -->
</div>
<!-- /Why us -->
<!-- Call To Action -->
<div id="cta" class="section" style="height: 400px;">
<!-- Backgound Image -->
<div class="bg-image bg-parallax overlay" style="background-image:url(./img/bgmid.jpg)"></div>
<!-- /Backgound Image -->
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-6">
<?php
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true):?>
<h2 class="white-text" style="font-size: 30px; width:700px ;">Hi,</h2>
<h2 class="white-text" style="font-size: 25px; width:700px ; margin-top:10px;">Your Career Path Begins Here</h2>
<p class="lead white-text" >We Create Beautiful Experiences
That Drive Successful Careers.</p>
<a class="main-button icon-button" href="register.php">Get Started!</a>
<?php else: ?>
<h2 class="white-text" style="font-size: 30px; width:700px ;">Hi, <b><?php echo htmlspecialchars($_SESSION["username"]); ?> !</b></h2>
<h2 class="white-text" style="font-size: 25px; width:700px ; margin-top:10px;">Your Career Path Begins Here</h2>
<p class="lead white-text" >We Create Beautiful Experiences
That Drive Successful Careers.</p>
<a class="main-button icon-button" href="main.php">Get Started!</a>
<?php endif ?>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /Call To Action -->
<!-- About -->
<div id="about" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-6">
<div class="section-header">
<h2 style="font-size: 35px;">About Career.ly</h2>
<p class="lead" style="font-size: 18px; font-style: italic; margin-top: 50px;">Education seekers get a personalised experience on our site, based on educational background and career interest, enabling them to make well informed course and career decisions. The decision making is empowered with easy access to detailed information on career choices, courses, exams, colleges, admission criteria, eligibility, placement statistics, rankings, reviews, scholarships, latest updates etc as well as by interacting with other career.ly users, experts, current students in colleges and alumni groups. We have introduced several student oriented products and tools like Career Prediction, Knowledge Network, Daily Bytes, Blogs, Community discussion forum, and various Courses.</p>
<!--Education seekers get a personalised experience on our site, based on educational background and career interest, enabling them to make well informed course and college decisions. The decision making is empowered with easy access to detailed information on career choices, courses, exams, colleges, admission criteria, eligibility, fees, placement statistics, rankings, reviews, scholarships, latest updates etc as well as by interacting with other Shiksha.com users, experts, current students in colleges and alumni groups. We have introduced several student oriented products and tools like Career Central, Common Application Form, Top Colleges, College Compare, Alumni Employment Stats, Campus Connect, College Reviews, College Predictors, MyShortlist and Shiksha Café.-->
</div>
</div>
<div class="col-md-6">
<div class="about-img">
<img src="./img/about.png" alt="">
</div>
</div>
</div>
<!-- row -->
<hr class="section-hr">
</div>
<!-- container -->
</div>
<!-- /About -->
<!-- Contact CTA -->
<div id="contact-cta" class="section" style="height: 400px;">
<!-- Backgound Image -->
<div class="bg-image bg-parallax overlay" style="background-image:url(./img/cta2-background.jpg)"></div>
<!-- Backgound Image -->
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-8 col-md-offset-2 text-center">
<h2 class="white-text">Contact Us</h2>
<p class="lead white-text">Help us to get to know you.</p>
<a class="main-button icon-button" href="contact.php">Contact Us Now</a>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /Contact CTA -->
<?php include 'footer.php'?>
</html>