forked from BE-PROJECTS2018/GroupNo45-Pantomath-bo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.php
222 lines (190 loc) · 8.27 KB
/
start.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
<?php
include './serverScript/class/Database.php';
$db = new Database();
$db->connect();
$db->sql("SELECT count(*) as num FROM pb_candidate_list;");
$num_conducted = $db->getResult();
$db->sql("SELECT count(*) as num FROM pb_candidate_details;");
$num_total = $db->getResult();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="New Intelligent System">
<title>Pantomath'Bo</title>
<link rel="stylesheet" href="./css/mainstyle.css" >
<link rel="stylesheet" href="./css/fontawesome.css" >
<link rel="stylesheet" href="./css/bootstrap.min.css">
<!-- JS -->
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<!--[if lte IE 8]>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/grids-responsive-min.css">
<!--<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/layouts/blog-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="css/layouts/blog.css">
<!--<![endif]-->
<style type="text/css">
form { margin-top: 15px; }
form > input { margin-right: 15px; }
#profilePhoto {
zoom: 2; //increase if you have very small images
display: block;
margin: auto;
height: auto;
max-height: 100%;
width: auto;
max-width: 100%;
}
/* Create two equal columns that floats next to each other */
.column_2 {
float: left;
width: 50%;
padding: 10px;
height: 300px; /* Should be removed. Only for demonstration */
}
.column_1 {
float: right;
width: 50%;
height: 300px; /* Should be removed. Only for demonstration */
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
#photoBanner{
border-right-style:solid;
border-right-width:thick;
border-color:#ff9f80;
}
.button {
background-color: #555555;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button:hover{
text-decoration:none;
cursor:pointer;
background-color:#e7e7e7;
color: black;
}
</style>
</head>
<body onload="startTime()">
<div id="layout" class="pure-g">
<div class="sidebar pure-u-1 pure-u-md-1-4">
<div class="header">
<h1 class="brand-title">Pantomath 'Bo</h1>
<h2 class="brand-tagline">Discover Cross Model Behavior Analysis</h2>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item">
<a class="pure-button" href="./start.php">Interview Info</a>
</li>
<li class="nav-item">
<a class="pure-button" href="./list.php">List of Candidates</a>
</li>
<li class="nav-item">
<a class="pure-button" href="index.php">New Interview</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="content pure-u-1 pure-u-md-3-4">
<div>
<!-- A wrapper for all the blog posts -->
<div class="posts">
<h1 class="content-subhead">Pinned Board</h1>
<!-- A single blog post -->
<section class="post">
<header class="post-header">
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
document.getElementById('txt').innerHTML =
h + ":" + m + ":" + s;
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>
<h2 class="post-title">Time <div id="txt"></div></h2>
</header>
<div class="post-description">
<div class="list">
<ul class="quantity-list">
<li class="quantity-item">
Number of interviews:
<h2 class="quantity-item"><?php echo $num_total[0]["num"];?></h2>
</li>
<li class="quantity-item">
Number of interviews conducted:
<h2 class="quantity-item"><?php echo $num_conducted[0]["num"];?></h2>
</li>
</ul>
</div>
</div>
</section>
<section>
<!--
PHP code for fetching candidate data and display
-->
<h2>Information</h2>
<?php
$db->sql('SELECT name,photo,degree,resume FROM pb_candidate_details WHERE c_id=' . $_GET['id']);
$res = $db->getResult();
$row = $res[0]; // array of paramenter
$html = '<div class="row">
<div class="column_1">';
$html .= '<div id="photoBanner">
<h2>Candidate Profile:</h2>
<img id="profilePhoto" src="'. $row["photo"] . '"/>
</div></div>';
$html .= "<div class=\"column_2\">
<h4>Name:</h4> " . $row["name"] .
"<h4>Degree:</h4> " . $row["degree"] .
"<h4>Resume</h4> <a href=\"" . $row["resume"] . "\">view</a>";
$html .= '<h4><br><br><a href="./interview.php?id=' .$_GET["id"]. '" class="button">Proceed to Interview</a></h4>' . "</div></div>";;
echo $html;
?>
</section>
</div>
<div class="footer">
<div class="pure-menu pure-menu-horizontal">
<ul>
<li class="pure-menu-item"><a href="http://purecss.io/" class="pure-menu-link">About</a></li>
<br/>
<i class="fa fa-heart heart"></i>
</ul>
</div>
</div>
</div>
</div>
</div>
</body>
</html>