-
Notifications
You must be signed in to change notification settings - Fork 0
/
vacancies.php
49 lines (43 loc) · 1.7 KB
/
vacancies.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
<?php
include("includes/header.php");
//if postcode POST parameter is set
if(isset($_POST['postcode'])){
//store postcode in variable
$postcode = $_POST['postcode'];
}?>
<article class="content">
<ul class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="occupations.php">Occupations</a></li>
<li>Search Vacancies</li>
</ul>
<i class="fa fa-search fa-lg icon"></i><h1>Search Vacancies</h1>
<p>
Enter a job title below to find any current vacancies for that occupation.
<br><br>
If you wish to find vacancies in your current area, then you can also enter your postcode to find vacancies close to you.
</p>
<div class="thinborder" style="padding: 20px 0;">
<form method="POST" action="vacancies_results.php">
<label style="padding-left: 30px;">Enter Job Title:*</label>
<input type="text" id="jobTitleInput" name="jobInput" style="margin: 10px 30px 0 30px;" required><br>
<label style="padding-left: 30px;">Enter Postcode:</label>
<input type="text" id="inputPostcode" name="postcodeInput" style="margin: 10px 30px 0 30px;"><br>
<div style="text-align: center; padding: 10px 0;"><input type="submit" value="Submit"></div>
</form>
</div>
</article>
<!-- Script to autofill user postcode if redirected from search_results.php -->
<script>
$(document).ready(function(){
//initialise variable
var postcode = '<?php echo $postcode?>';
//if postcode is not empty
if(postcode!=""){
//auto fill postcode value on screen
$('#inputPostcode').val(postcode);
}
});
</script>
<?php include("includes/aside.php");?>
<?php include("includes/footer.php");?>