Files
WrenchBoradWeb/www/application/views/jobs/view_viewjoboffer.php
T
2022-07-16 19:22:20 -04:00

126 lines
5.1 KiB
PHP

<form method="post" name="post_nav_find" action="">
<input type="hidden" name="jobOfferID" value="<?php echo $jobOfferID; ?>">
</form>
<?php include('common/jobstrip.php'); ?>
<div class="row g-5 g-xl-8">
<div class="col-xl-6">
<div class="card card-xl-stretch mb-5 mb-xl-8">
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1"><?=$title?></span>
</h3>
<div class="card-toolbar">
</div>
</div>
<div class="card-body py-3">
<div class="tab-content">
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<div class="table-responsive">
<table class="table table-row-dashed table-row-gray-200 align-middle gs-0 gy-4">
<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>
<table class="table table-row-dashed table-row-gray-200 align-middle gs-0 gy-4">
<tbody>
<tr>
<td>
<div id="offer_result"> </div>
</td>
</tr>
<tr>
<td style="width: 40%;"><input id="reject_submit" type="button" class="btn btn-danger btn-block btn-sm" name='send' value='Reject Offer' onclick="return rejectOffer();"></td>
<td style="width: 20%;"></td>
<td style="width: 40%;"><input id="accept_submit" type="button" class="btn btn-primary btn-block btn-sm" name='send' value='Accept Offer' onclick="return acceptOffer();"> </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<?php
include(VIEWPATH.'/compo/comp_active_jobs.php');
?>
</div>
<!--end::Col-->
</div>
<script type="text/javascript">
<!--
function acceptOffer() {
let confirmAction = confirm("Are you sure to accept this offer?");
if (confirmAction) {
} else {
return true;
}
$('#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() {
let confirmAction = confirm("Are you sure to reject this offer?");
if (confirmAction) {
} else {
return true;
}
$('#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>