-
Notifications
You must be signed in to change notification settings - Fork 0
/
addQuestion.php
73 lines (59 loc) · 2.41 KB
/
addQuestion.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
<?php
include_once ("inc/classes/session.php");
include ("inc/classes/Create.php");
$userSession = new Session();
if ($userSession->getSession('login') != true) {
header('Location: login.php');
}
$userSession->destroy();
$create = new Create();
$addQuestion = $create->createQuestion($_POST);
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Add a Candidate</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<?php include ('nav.php'); ?>
<div style="width: 50%; margin: 25px auto;">
<?php
if (isset($addQuestion)) {
echo $addQuestion;
}
?>
</div>
<div id="signupbox" style=" margin-top:10px" class="mainbox col-md-10 col-md-offset-1 col-sm-8 col-sm-offset-2">
<div class="panel panel-info">
<div class="panel-heading">
<div class="panel-title">Add New Candidate</div>
</div>
<div class="panel-body" >
<form method="post" action="">
<div id="div_id_username" class="form-group required">
<label for="id_username" class="control-label col-md-4 requiredField"> Add a Question<span class="asteriskField"></span> </label>
<div class="controls col-md-8 ">
<input class="input-md textinput textInput form-control" id="question" name="question" placeholder="Add a Question" style="margin-bottom: 10px" type="text" />
</div>
</div>
<div class="form-group">
<div class="aab controls col-md-4 "></div>
<div class="controls col-md-8 ">
<input type="submit" name="addQuestion" value="Add New Question" class="btn btn-primary btn btn-info" id="addQuestion" />
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<p class="text-center top_spac"> <a href="?action=logout">Logout</a> </p>