-
Notifications
You must be signed in to change notification settings - Fork 0
/
addCandidate.php
116 lines (99 loc) · 5.8 KB
/
addCandidate.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
<?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();
$addCandidate = $create->createCandidate($_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>
<div class="container">
<?php include ('nav.php'); ?>
<div style="width: 50%; margin: 25px auto;">
<?php
if (isset($addCandidate)) {
echo $addCandidate;
}
?>
</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"> Candidate Name<span class="asteriskField"></span> </label>
<div class="controls col-md-8 ">
<input class="input-md textinput textInput form-control" id="candName" maxlength="30" name="candName" placeholder="Candidate Name" style="margin-bottom: 10px" type="text" />
</div>
</div>
<div id="div_id_email" class="form-group required">
<label for="id_email" class="control-label col-md-4 requiredField"> E-mail<span class="asteriskField">*</span> </label>
<div class="controls col-md-8 ">
<input class="input-md emailinput form-control" id="candEmail" name="candEmail" placeholder="Candidate email address" style="margin-bottom: 10px" type="email" />
</div>
</div>
<div id="div_id_location" class="form-group required">
<label for="id_location" class="control-label col-md-4 requiredField"> Candidate Qualification<span class="asteriskField">*</span> </label>
<div class="controls col-md-8 ">
<input class="input-md textinput textInput form-control" id="candQuali" name="candQuali" placeholder="Candidate Qualification" style="margin-bottom: 10px" type="text" />
</div>
</div>
<div id="div_id_number" class="form-group required">
<label for="id_number" class="control-label col-md-4 requiredField"> Age <span class="asteriskField">*</span> </label>
<div class="controls col-md-8 ">
<input class="input-md textinput textInput form-control" id="candAge" name="candAge" placeholder="Age" style="margin-bottom: 10px" type="text" />
</div>
</div>
<div id="div_id_number" class="form-group required">
<label for="id_number" class="control-label col-md-4 requiredField"> Contact number<span class="asteriskField"></span> </label>
<div class="controls col-md-8 ">
<input class="input-md textinput textInput form-control" id="candNumber" name="candNumber" placeholder="provide candidate number" style="margin-bottom: 10px" type="text" />
</div>
</div>
<div id="div_id_location" class="form-group required">
<label for="id_location" class="control-label col-md-4 requiredField"> Your Location<span class="asteriskField">*</span> </label>
<div class="controls col-md-8 ">
<input class="input-md textinput textInput form-control" id="candAddress" name="candAddress" placeholder="Your Pincode and City" style="margin-bottom: 10px" type="text" />
</div>
</div>
<div id="div_id_location" class="form-group required">
<label for="id_location" class="control-label col-md-4 requiredField"> Your interested field<span class="asteriskField">*</span> </label>
<select name="departments" id="dept">
<div class="controls col-md-8 ">
<option value="controls">Controls</option>
<option value="dynamics">Dynamics</option>
<option value="circuits">Circuits</option>
<option value="Non-tech">non-tech</option>
</div>
</select>
</div>
<div class="form-group">
<div class="aab controls col-md-4 "></div>
<div class="controls col-md-8 ">
<input type="submit" name="addCand" value="Add New Candidate" class="btn btn-primary btn btn-info" id="addCand" />
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<p class="text-center top_spac"> <a href="?action=logout">Logout</a> </p>