-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwelcome.php
217 lines (189 loc) · 5.59 KB
/
welcome.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
<?php
require("is_logged.php");
if(isset($_POST['logout']) && $_POST['logout']==="logout_user")
{
session_unset();
session_destroy();
reload();
}
?>
<html>
<head>
<title>Welcome to Student placement Training program</title>
<meta charset="utf-8">
<meta name="description" content="student placement training program">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/header_footer.css">
</head>
<div id="wrapper">
<header><br />
<h2 id="title">STUDENT PLACEMENT TRAINING</h2>
<br />
</header>
</div>
<style>
.sidenav {
height: 100%;
width: 250px;
position: relative;
z-index: 1;
top: 0;
left: 0;
background-color: #f1f1f1;
overflow-x: hidden;
transition: 0.7s;
padding-top: 30px;
}
.sidenav a {
padding: 8px 8px 8px 15px;
text-decoration: none;
font-size: 15px;
color: #818181;
display: block;
transition: 0.3s;
text-align: left;
}
#nav_topics
{
margin-left: 10%;
line-height: 10px;
}
#__user
{
padding: 8px 8px 8px 16px;
text-decoration: none;
font-size: 15px;
color: black;
display: block;
text-align: left;
transition:0.5s;
}
#__user:hover
{
color: white;
transition:0.7s;
}
.sidenav a:hover, .offcanvas a:focus{
color: #000000;
background-color: #4CAF50;
transition: 0.5s
}
#main {
transition: margin-left .5s;
padding: 16px;
}
#site_info
{
border: solid 1px black;
text-align: center;
font-family: sans-serif;
background-color: ;
box-shadow: black 2px 2px 2px;
padding: 2%;
margin-right: 5%;
margin-left: 21%;
}
@media screen and (max-device-width: 1080px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
.sidenav {width: 100%;}
.sidenav {height: 50%;}
#site_info{
clear:both;
margin-left: 5%;
margin-right: 5%;}
}
#contents a
{
padding: 3%;
transition: 1s;
}
#contents a:hover,#contents a:focus
{
opacity: 0.6;
transition: 1s;
}
img
{
border: solid gray 1px;
padding: 1%;
box-shadow: #2e3436 1px 1px 13px;
}
</style>
<body>
<div style=" clear: both; float: left" id="mySidenav" class="sidenav">
<a href="<?php if(isset($_SESSION['home'])){ echo $_SESSION['home']; }?>" id="__user"><?php if(isset($_SESSION['user_email'])){ echo $_SESSION['user_email']; }?></a><br/><hr /><br/>
</br/>
<a href="myprofile.php">Manage profile</a>
<a href="statistics.php">My statistics</a>
<a href="#" id="scoreboard">Scoreboard</a>
<div id="nav_topics" style="display:none">
<a href="scoreboard.php?course=ads">DS and Algorithms</a>
<a href="scoreboard.php?course=oop">O.O.Programming</a>
<a href="scoreboard.php?course=aptitude">Aptitude Skills</a>
</div>
<a href="question_pool.php" id="scoreboard">Question pool</a>
<a href="#" name="logout" onclick="logout();">logout</a>
</div>
<p align="center" id="site_info"><span style="float:right; color:green">Click to hide</span><br /><br /><br />
<i>Welcome , This site trains you on core subjects like <b>Data_structures and Algorithms</b> , <b>Object oriented programming</b> , <b>Reasoning & Aptitude</b>
and we track your performance in above tests and give the graphical statistics.</i><br /><br /><br />
</p>
<h2 align="center">Choose the topic</h2><br /><br />
<div align="center" id="contents" style=" clear: right; line-height: 100px;">
<a href="test.php?course=ads"><img src="images/img1.png" width="270" height="150"></a>
<a href="test.php?course=oop"><img src="images/object-oriented-programming.jpg" width="270" height="150"></a>
<a href="test.php?course=aptitude"><img src="images/aptitude.png" width="270" height="150"></a>
</div>
<br />
<br />
<!-- javascript jquery -->
<script src="javascript/jquery-3.1.1.min.js"></script>
<script>
var click=0;
$(document).ready(function(){
$("#site_info").click(function(){
$("#site_info").hide(700);
});
$("#scoreboard").click(function(){
if(click%2==0)
{
$("#nav_topics").show(700);
}
else
{
$("#nav_topics").hide(700);
}
click+=1;
});
});
function logout()
{
$.ajax({
url:"welcome.php",
type:"post",
data:{
logout:"logout_user"
},
success:function(data){
window.location="index.php";
}
});
}
</script>
</body>
<footer style="display: inline;">
<div class="footer" align="center" style="white-space: normal; background-color: #4CAF50; clear: both">
<br /><br />
    
<a href="request_new_feature.php" style="color: white;">Request_New_Feature</a>
    
<a href="contact_us.php" style="color: white; ">Contact_us</a>
    
<a href="about.php" style="color: white; ">About</a>
    
<br /><br /><br />
</div>
</footer>
</html>