94 lines
3.4 KiB
PHP
94 lines
3.4 KiB
PHP
<form method="post" name="post_nav_find" action="">
|
|
<input type="hidden" name="jobOfferID" value="<?php echo $jobOfferID; ?>">
|
|
</form>
|
|
<!-- Main content -->
|
|
<div class="content-wrapper">
|
|
<?php include('common/jobstrip.php'); ?>
|
|
|
|
<!-- Main charts -->
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /main charts -->
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
<div class="panel panel-flat" style="height: 335px;">
|
|
<table class='table table-striped table-hover table-bordered table-condensed'>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2"><b><?php echo $title; ?></b></th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td style="width: 100px;"><b>Date</b></td><td><?php echo $added_date; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 100px;"><b>Description</b></td><td><?php echo $description; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 100px;"><b>Offer Expire</b></td><td><?php echo $expire; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 100px;"><b>Price</b></td><td><?php echo $price; ?> Naira</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 100px;"><b>Duration</b></td><td><?php echo $timeline_days; ?> day(s)</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 100px;"><b>Detail</b></td><td><?php echo $job_description; ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="thumbnail">
|
|
<div class="caption">
|
|
<div id="offer_result">
|
|
<input id="accept_submit" type="button" class="btn btn-primary btn-sm" name='send' value='Accept Offer' onclick="return acceptOffer();">
|
|
<hr size ="1">
|
|
<input id="reject_submit" type="button" class="btn btn-danger btn-sm" name='send' value='Reject Offer' onclick="return rejectOffer();">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /main content -->
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
function acceptOffer() {
|
|
|
|
$('#offer_result').html('Processing...');
|
|
$('#accept_submit').prop('disabled', true);
|
|
$.ajax({
|
|
url: "/jobs/viewjob_accept?jobOfferID=<?php echo $jobOfferID; ?>"
|
|
}).done(function( data ) {
|
|
$('#offer_result').html(data);
|
|
document.offer_individual.rec_email.value = '';
|
|
$('#accept_submit').prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
function rejectOffer() {
|
|
|
|
$('#offer_result').html('Processing...');
|
|
$('#reject_submit').prop('disabled', true);
|
|
//alert(element.value);
|
|
$.ajax({
|
|
url: "/jobs/viewjob_reject?jobOfferID=<?php echo $jobOfferID; ?>"
|
|
}).done(function( data ) {
|
|
$('#offer_result').html(data);
|
|
document.offer_group.job_group.value = '';
|
|
$('#reject_submit').prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
// -->
|
|
</script>
|