-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile.php
245 lines (179 loc) · 6.86 KB
/
profile.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
236
237
<!DOCTYPE html>
<html lang="en">
<head>
<title>Alcatraz</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="css/main.css" type="text/css" media="all" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<?php
session_start(); //starts the session
if($_SESSION['user']){ //checks if user is logged in
}
else{
header("location:index.php"); // redirects if user is not logged in
}
$user = $_SESSION['user']; //assigns user value
if(isset($_SESSION['str'])&& isset($_SESSION['strn'])&& isset($_SESSION['strm'])){
$res=$_SESSION['str'];
$resn=$_SESSION['strn'];
$resm=$_SESSION['strm'];
}
?>
<body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#myPage">Alcatraz</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="keystroke_demo.html">HOME</a></li>
<li><a href="logout.php">LOGOUT</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-sm-2">
<br><br>
<ul class="nav nav-pills nav-stacked">
<li class="active">
<!-- <li><a data-toggle="pill" href="#dashborad">Dash Board</a></li> -->
<li><a data-toggle="pill" href="#keys">Enter keystroke</a></li>
<li><a data-toggle="pill" href="#man">Manhattan</a></li>
<li><a data-toggle="pill" href="#euc">Eucledian </a></li>
<li><a data-toggle="pill" href="#med">manhattan Median </a></li>
<li><a data-toggle="pill" href="#ens">Ensemble Result </a></li>
</ul>
</div>
<div class="col-sm-10">
<div class="tab-content">
<br><br>
<div id="keys" class="tab-pane fade">
<h3>Enter Keystroke</h3>
<p><a href="create_account.php">Go to create logistics page</a></p>
</div>
<div id="euc" class="tab-pane fade ">
<h3>Euclidian</h3>
<?php Print "$res"; ?>
</div>
<div id="man" class="tab-pane fade">
<h3>Manhattan model</h3>
<?php Print "$resn" ?>
</div>
<div id="med" class="tab-pane fade">
<h3>Manhattan model using median </h3>
<?php Print "$resm" ?>
</div>
<div id="ens" class="tab-pane fade in active">
<div class="container" style="width:100%;">
<h1>Dash Board</h1>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#collapse1">What is Ensemble result?</a>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse">
<div class="panel-body">Ensemble is a way of combining the results of all the models built and drawing a cumulative conclusion taking into consideration all the individual results of the models.<br>
It is bagging and bootstrapping way of arriving at the results. Here, in our analysis, the result is the majority of all the 3 models built. </div>
</div>
</div>
</div>
<div class="jumbotron text-center" style="background-image: url('images/keyboard.jpg');
background-repeat: no-repeat; background-position: center center;
background-attachment: fixed;background-size:cover;height:400px;opacity:0.9"><br><br>
<h1>Dash Board </h1>
</div>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#collapse2">View results</a>
</h4>
</div>
<div id="collapse2" class="panel-collapse collapse">
<div class="panel-body"><br>
<?php
$count=0;
if(isset($_SESSION['str'])){
if(strpos($res, "yes")!==false)
$count=$count+1;
if(strpos($resn, "yes")!==false)
$count=$count+1;
if(strpos($resm, "yes")!==false)
$count=$count+1;
Print "The input has passed ".$count." out of three predictive algorithms";
if(strpos($res, "yes")!==false ||( strpos($resn, "yes")!==false &&strpos($resm, "yes")!==false))
Print "<br>It has passed the ensemble criteria!!Yippe!!";
else
Print "<br>It has failed the ensemble criteria! Sorry";
}
else{
Print "Enter your keystroke";
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="container-fluid text-center">
<a href="#myPage" title="To Top">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
<p style="background:#181a1b; color:white">Copyrights© reserved by CodeBlooded</p>
</footer>
<script>
$(document).ready(function(){
// Add smooth scrolling to all links in navbar + footer link
$(".navbar a, footer a[href='#myPage']").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (900) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
$(window).scroll(function() {
$(".slideanim").each(function(){
var pos = $(this).offset().top;
var winTop = $(window).scrollTop();
if (pos < winTop + 600) {
$(this).addClass("slide");
}
});
});
})
</script>
</body>
</html>