111 lines
4.4 KiB
PHP
111 lines
4.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-12">
|
|
<div class="panel panel-flat">
|
|
<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 colspan="2">
|
|
<div class="alert alert-info no-border"> You have sent this job to <?php echo $job_sent_to; ?></div>
|
|
</td>
|
|
</tr>
|
|
|
|
<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>
|
|
<tr>
|
|
<td colspan="2" style='text-align: center;'><input id="sendjob_tome" type="button" class="btn btn-info btn-xs" name='send' value='Send to me' onclick="return sendOfferToMe();"></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 100px;"><b>Public Link</b></td><td><div class="alert alert-info no-border"> <?php echo $job_link; ?></div></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" style='text-align: right;'> <input id="reject_submit" type="button" class="btn btn-danger btn-xs" name='send' value='Cancel Offer' onclick="return cancelOffer();"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- div class="col-md-3">
|
|
<div class="thumbnail">
|
|
<div class="caption">
|
|
<div id="offer_result">
|
|
<div class="alert alert-info no-border"> You have sent this job to <?php echo $job_sent_to; ?></div>
|
|
<hr size ="1">
|
|
<input id="reject_submit" type="button" class="btn btn-danger btn-xs" name='send' value='Cancel Offer' onclick="return cancelOffer();">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div -->
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /main content -->
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
function sendOfferToMe() {
|
|
|
|
$('#mailsent_sent').html('Processing...');
|
|
$('#sendjob_tome').prop('disabled', true);
|
|
//alert(element.value);
|
|
$.ajax({
|
|
url: "/jobs/viewjob_sendtome?jobOfferID=<?php echo $jobOfferID; ?>"
|
|
}).done(function( data ) {
|
|
$('#mailsent_sent').html(data);
|
|
//document.offer_group.job_group.value = '';
|
|
$('#sendjob_tome').prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
|
|
function cancelOffer() {
|
|
|
|
$('#offer_result').html('Processing...');
|
|
$('#reject_submit').prop('disabled', true);
|
|
//alert(element.value);
|
|
$.ajax({
|
|
url: "/jobs/viewjob_cancel?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>
|