-
Notifications
You must be signed in to change notification settings - Fork 0
/
applicationform.php
182 lines (172 loc) · 10.6 KB
/
applicationform.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
<section id="content">
<div class="container content">
<?php
if (isset($_GET['search'])) {
# code...
$jobid = $_GET['search'];
}else{
$jobid = '';
}
$sql = "SELECT * FROM `tblcompany` c,`tbljob` j WHERE c.`COMPANYID`=j.`COMPANYID` AND JOBID LIKE '%" . $jobid ."%' ORDER BY DATEPOSTED DESC" ;
$mydb->setQuery($sql);
$result = $mydb->loadSingleResult();
?>
<p> <?php check_message();?></p>
<?php
if (isset($_SESSION['APPLICANTID'])) {
?>
<div class="col-sm-12">
<div class="row">
<h2 class=" " >Job Details</h2>
<div class="panel">
<div class="panel-header">
<div style="border-bottom: 1px solid #ddd;padding: 10px;font-size: 25px;font-weight: bold;color: #000;margin-bottom: 5px;"><a href="<?php echo web_root.'index.php?q=viewjob&search='.$result->JOBID;?>"><?php echo $result->OCCUPATIONTITLE ;?></a>
</div>
</div>
<div class="panel-body">
<div class="row contentbody">
<div class="col-sm-6">
<ul>
<li><i class="fp-ht-bed"></i>Required No. of Employee's : <?php echo $result->REQ_NO_EMPLOYEES; ?></li>
<li><i class="fp-ht-food"></i>Salary : <?php echo number_format($result->SALARIES,2); ?></li>
<li><i class="fa fa-sun-"></i>Duration of Employment : <?php echo $result->DURATION_EMPLOYEMENT; ?></li>
</ul>
</div>
<div class="col-sm-6">
<ul>
<li><i class="fp-ht-tv"></i>Prefered Sex : <?php echo $result->PREFEREDSEX; ?></li>
<li><i class="fp-ht-computer"></i>Sector of Vacancy : <?php echo $result->SECTOR_VACANCY; ?></li>
</ul>
</div>
<div class="col-sm-12">
<p>Qualification/Work Experience :</p>
<ul style="list-style: none;">
<li><?php echo $result->QUALIFICATION_WORKEXPERIENCE ;?></li>
</ul>
</div>
<div class="col-sm-12">
<p>Job Description:</p>
<ul style="list-style: none;">
<li><?php echo $result->JOBDESCRIPTION ;?></li>
</ul>
</div>
<div class="col-sm-12">
<p>Employer : <?php echo $result->COMPANYNAME; ?></p>
<p>Location : <?php echo $result->COMPANYADDRESS; ?></p>
</div>
</div>
</div>
<div class="panel-footer">
Date Posted : <?php echo date_format(date_create($result->DATEPOSTED),'M d, Y'); ?>
</div>
</div>
</div>
</div>
<form class="form-horizontal span6 " action="process.php?action=submitapplication&JOBID=<?php echo $result->JOBID; ?>" enctype="multipart/form-data" method="POST">
<div class="col-sm-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-sm 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>
<?php }else{ ?>
<form class="form-horizontal span6 wow fadeInDown" action="process.php?action=submitapplication&JOBID=<?php echo $result->JOBID; ?>" enctype="multipart/form-data" method="POST">
<div class="col-sm-8">
<div class="row">
<h2 class=" ">Personal Info</h2>
<?php require_once('applicantform.php') ?>
</div>
</div>
<div class="col-sm-4">
<div class="row">
<h2 class=" " >Job Details</h2>
<div class="panel">
<div class="panel-header">
<div style="border-bottom: 1px solid #ddd;padding: 10px;font-size: 25px;font-weight: bold;color: #000;margin-bottom: 5px;"><a href="<?php echo web_root.'index.php?q=viewjob&search='.$result->JOBID;?>"><?php echo $result->OCCUPATIONTITLE ;?></a>
</div>
</div>
<div class="panel-body">
<div class="row contentbody">
<div class="col-sm-6">
<ul>
<li><i class="fp-ht-bed"></i>Required No. of Employee's : <?php echo $result->REQ_NO_EMPLOYEES; ?></li>
<li><i class="fp-ht-food"></i>Salary : <?php echo number_format($result->SALARIES,2); ?></li>
<li><i class="fa fa-sun-"></i>Duration of Employment : <?php echo $result->DURATION_EMPLOYEMENT; ?></li>
</ul>
</div>
<div class="col-sm-6">
<ul>
<li><i class="fp-ht-tv"></i>Prefered Sex : <?php echo $result->PREFEREDSEX; ?></li>
<li><i class="fp-ht-computer"></i>Sector of Vacancy : <?php echo $result->SECTOR_VACANCY; ?></li>
</ul>
</div>
<div class="col-sm-12">
<p>Qualification/Work Experience :</p>
<ul style="list-style: none;">
<li><?php echo $result->QUALIFICATION_WORKEXPERIENCE ;?></li>
</ul>
</div>
<div class="col-sm-12">
<p>Job Description:</p>
<ul style="list-style: none;">
<li><?php echo $result->JOBDESCRIPTION ;?></li>
</ul>
</div>
<div class="col-sm-12">
<p>Employer : <?php echo $result->COMPANYNAME; ?></p>
<p>Location : <?php echo $result->COMPANYADDRESS; ?></p>
</div>
</div>
</div>
<div class="panel-footer">
Date Posted : <?php echo date_format(date_create($result->DATEPOSTED),'M d, Y'); ?>
</div>
</div>
</div>
</div>
<div class="col-sm-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.
</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-sm 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>
<?php } ?>
</div>
</section>