-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplicantform.php
190 lines (158 loc) · 7.03 KB
/
applicantform.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
<style type="text/css">
.form-control-2 {
display: inline-block;
width: 25%;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
-webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
-o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
</style>
<?php
if (!isset($_SESSION['APPLICANTID'])) {
?>
<form action="#" class="bg-white p-5 contact-form">
<div class="form-group">
<input name="JOBID" type="hidden" value="<?php echo $_GET['job']; ?>">
<input class="form-control " id="FNAME" name="FNAME" placeholder="Firstname" type="text" value=""
onkeyup="javascript:capitalize(this.id, this.value);">
</div>
<div class="form-group">
<input class="form-control " id="LNAME" name="LNAME" placeholder="Lastname"
onkeyup="javascript:capitalize(this.id, this.value);">
</div>
<!-- <div class="form-group">
<input class="form-control " id="NATIONALID" name="NATIONALID" placeholder="National Id"
onkeyup="javascript:capitalize(this.id, this.value);">
</div> -->
<div class="form-group">
<textarea class="form-control " id="ADDRESS" name="ADDRESS" placeholder="Address" type="text" value="" required
onkeyup="javascript:capitalize(this.id, this.value);"></textarea>
</div>
<div class="form-group">
Sex:
<input checked id="optionsRadios1" checked="True" name="optionsRadios" type="radio" value="Female">Female
<input id="optionsRadios2" name="optionsRadios" type="radio" value="Male"> Male
</div>
<div class="form-group"> Date of Birth
<select class="form-control-2" name="month">
<option>Month</option>
<?php
$mon = array('Jan' => 1, 'Feb' => 2, 'Mar' => 3, 'Apr' => 4, 'May' => 5, 'Jun' => 6, 'Jul' => 7, 'Aug' => 8, 'Sep' => 9, 'Oct' => 10, 'Nov' => 11, 'Dec' => 11);
foreach ($mon as $month => $value) {
# code...
echo '<option value=' . $value . '>' . $month . '</option>';
}
?>
</select>
<select class="form-control-2" name="day">
<option>Day</option>
<?php
$d = range(31, 1);
foreach ($d as $day) {
echo '<option value=' . $day . '>' . $day . '</option>';
}
?>
</select>
<select class="form-control-2" name="year">
<option>Year</option>
<?php
$years = range(2010, 1900);
foreach ($years as $yr) {
echo '<option value=' . $yr . '>' . $yr . '</option>';
}
?>
</select>
</div>
<div class="form-group">
<textarea class="form-control " id="BIRTHPLACE" name="BIRTHPLACE" placeholder="Place of Birth" type="text"
value="" required onkeyup="javascript:capitalize(this.id, this.value);"></textarea>
</div>
<div class="form-group">
<input class="form-control " id="CELLNO" name="CELLNO" placeholder="Contact No." type="text" any value=""
required onkeyup="javascript:capitalize(this.id, this.value);">
</div>
<div class="form-group">
<select class="form-control " name="CIVILSTATUS" id="CIVILSTATUS">
<option value="none">Select Civil Status</option>
<option value="Single">Single</option>
<option value="Married">Married</option>
<option value="Widow">Widow</option>
</select>
</div>
<div class="form-group">
<input type="Email" class="form-control " id="EMAILADDRESS" name="EMAILADDRESS" placeholder="Email Address"
autocomplete="false" />
</div>
<div class="form-group">
<input class="form-control " id="USERNAME" name="USERNAME" placeholder="Username"
onkeyup="javascript:capitalize(this.id, this.value);">
</div>
<div class="form-group">
<input class="form-control " id="PASS" name="PASS" placeholder="Password" type="password"
onkeyup="javascript:capitalize(this.id, this.value);">
</div>
<div class="form-group">
<input class="form-control " id="DEGREE" name="DEGREE" placeholder="Educational Attainment"
onkeyup="javascript:capitalize(this.id, this.value);">
</div>
<div class="form-group">
Attach your Resume here.
<input id="picture" name="picture" type="file">
<input name="MAX_FILE_SIZE" type="hidden" value="1000000">
</div>
<div class="form-group">
<input type="checkbox"> By Sign up you are agree with our <a href="#">terms and condition</a>
</div>
<div class="form-group">
<input type="submit" value="Submit Application" name="submit" class="btn btn-primary py-3 px-5">
</div>
</form>
<?php } else { ?>
<div class="col-md-12">
<div class="row">
<form class="form-horizontal span6 "
action="process.php?action=submitapplication&JOBID=<?php echo $result->JOBID; ?>"
enctype="multipart/form-data" method="POST">
<div class="col-md-12">
<div class="row">
<div class="panel panel-default">
<div class="panel-header">
<div
style="border-bottom: 1px solid #ddd;padding: 10px;font-size: 25px;font-weight: bold;color: #000;margin-bottom: 5px;">
Attach your Resume here.
<input name="JOBID" type="hidden" value="<?php echo $_GET['job']; ?>">
</div>
</div>
<div class="panel-body">
<label class="col-md-2" for="picture" style="padding: 0;margin: 0;">Attachtment
File:</label>
<div class="col-md-10" style="padding: 0;margin: 0;">
<input id="picture" name="picture" type="file">
<input name="MAX_FILE_SIZE" type="hidden" value="1000000">
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<button class="btn btn-primary btn-md pull-right" name="submit" type="submit">Submit <span
class="fa fa-arrow-right"></span></button>
<a href="index.php" class="btn btn-info"><span
class="fa fa-arrow-left"></span> <strong>Back</strong></a>
</div>
</div>
</form>
</div>
</div>
<?php } ?>