-
Notifications
You must be signed in to change notification settings - Fork 3
/
view_jobs.php
55 lines (54 loc) · 1.33 KB
/
view_jobs.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
<?php include 'admin/db_connect.php' ?>
<?php
if(isset($_GET['id'])){
$qry = $conn->query("SELECT * FROM careers where id=".$_GET['id'])->fetch_array();
foreach($qry as $k =>$v){
$$k = $v;
}
}
?>
<div class="container-fluid">
<p>Company: <b><large><?php echo ucwords($company) ?></large></b></p>
<p>Job Title: <b><large><?php echo ucwords($job_title) ?></large></b></p>
<p>Location: <i class="fa fa-map-marker"></i> <b><large><?php echo $company ?></large></b></p>
<hr class="divider">
<?php echo html_entity_decode($description) ?>
</div>
<div class="modal-footer display">
<div class="row">
<div class="col-md-12">
<button class="btn float-right btn-secondary" type="button" data-dismiss="modal">Close</button>
</div>
</div>
</div>
<style>
p{
margin:unset;
}
#uni_modal .modal-footer{
display: none;
}
#uni_modal .modal-footer.display {
display: block;
}
</style>
<script>
$('.text-jqte').jqte();
$('#manage-career').submit(function(e){
e.preventDefault()
start_load()
$.ajax({
url:'admin/ajax.php?action=save_career',
method:'POST',
data:$(this).serialize(),
success:function(resp){
if(resp == 1){
alert_toast("Data successfully saved.",'success')
setTimeout(function(){
location.reload()
},1000)
}
}
})
})
</script>