Files
WrenchBoradWeb/www/application/views/jobs/view_viewmyjoboffer.php
T
2022-10-06 20:28:10 -04:00

281 lines
11 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-8">
<div class="card card-xl-stretch mb-5 mb-xl-8">
<div class="card mb-5 mb-xl-10" id="kt_profile_details_view">
<div class="card-header cursor-pointer">
<div class="card-title m-0">
<h3 class="fw-bolder m-0"><?php echo $title; ?></h3>
</div>
</div>
<div class="card-body p-9">
<div class="row mb-7">
<div class="notice d-flex bg-light-warning rounded border-warning border border-dashed p-6">
<span class="svg-icon svg-icon-2tx svg-icon-warning me-4">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.3" x="2" y="2" width="20" height="20" rx="10" fill="black" />
<rect x="11" y="14" width="7" height="2" rx="1" transform="rotate(-90 11 14)" fill="black" />
<rect x="11" y="17" width="2" height="2" rx="1" transform="rotate(-90 11 17)" fill="black" />
</svg>
</span>
<div class="d-flex flex-stack flex-grow-1">
<div class="fw-bold">
<h4 class="text-gray-900 fw-bolder"> You have sent this job to <?php echo $job_sent_to; ?></h4>
<div class="fs-6 text-gray-700">This offer will automatically expire on <?php echo $expire; ?> .</div>
</div>
</div>
</div>
</div>
<div class="row mb-7">
<label class="col-lg-4 fw-bold text-muted">Date Added</label>
<div class="col-lg-8">
<span class="fw-bolder fs-6 text-gray-800"><?php echo $added_date; ?></span>
</div>
</div>
<div class="row mb-7">
<label class="col-lg-4 fw-bold text-muted">Description</label>
<div class="col-lg-8 fv-row">
<span class="fw-bold text-gray-800 fs-6"><?php echo $description; ?></span>
</div>
</div>
<div class="row mb-7">
<label class="col-lg-4 fw-bold text-muted">Offer Expire
</label>
<div class="col-lg-8 d-flex align-items-center">
<span class="fw-bolder fs-6 text-gray-800 me-2"><div id="extend_result"><?php echo $expire; ?></div></span>
</div>
</div>
<div class="row mb-7">
<label class="col-lg-4 fw-bold text-muted">Price</label>
<div class="col-lg-8">
<a href="#" class="fw-bold fs-6 text-gray-800 text-hover-primary"><?php echo $price; ?> Naira</a>
</div>
</div>
<div class="row mb-7">
<label class="col-lg-4 fw-bold text-muted">Duration</label>
<div class="col-lg-8">
<span class="fw-bolder fs-6 text-gray-800"><?php echo $timeline_days; ?> day(s)</span>
</div>
</div>
<div class="row mb-7">
<label class="col-lg-4 fw-bold text-muted">Detail</label>
<div class="col-lg-8">
<span class="fw-bolder fs-6 text-gray-800"><?php echo stripslashes(htmlspecialchars_decode($job_description)); ?></span>
</div>
</div>
<div class="row mb-10">
<label class="col-lg-4 fw-bold text-muted">Public Link</label>
<div class="col-lg-8">
<input type="text" name="plink" readonly class="form-control form-control-lg form-control-solid" placeholder="Public Link" value="<?php echo $job_link; ?>">
</div>
</div>
<!-- div class="row mb-10" style="text-align: right'">
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="cancel grp" style="padding-left: 0px; padding-right: 10px;">
<input type="button" name="reject_submit" id="reject_submit" onclick="return cancelOffer();" value='Cancel Offer' class="btn btn-danger btn-sm" >
</div>
<div class="btn-group mr-2" role="group" aria-label="Second group" style="padding-left: 10px; padding-right: 10px;">
<input type="button" name="sendjob_resend" id="sendjob_resend" onclick="return resendOffer();" value='Resend Offer' class="btn btn-primary btn-sm" >
</div>
<div class="btn-group" role="group" aria-label="Third group" style="padding-left: 10px; padding-right: 0px;">
<input type="button" name="sendjob_tome" id="sendjob_tome" onclick="return sendOfferToMe();" value='Send to me' class="btn btn-info btn-sm" >
</div>
</div>
</div -->
</div>
</div>
</div>
</div>
<div class="col-xl-4">
<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">Actions</span>
</h3>
</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-striped">
<tbody>
<tr>
<td>
<? if($is_public_view > 0){
?>
Job sent to <?php echo $job_sent_to; ?>
<?php
}
else{
?>
<input type="button" name="sendjob_resend" id="sendjob_resend" onclick="return resendOffer();" value='Resend Offer' class="btn btn-primary btn-sm btn-block " >
<?php
}
?>
</td>
</tr>
<tr>
<td>
<input type="button" name="extend_job" id="extend_job" onclick="return extendDuration();" value='Extend by a week' class="btn btn-info btn-sm btn-block" >
</td>
</tr>
<tr>
<td>
<input type="button" name="sendjob_tome" id="sendjob_tome" onclick="return sendOfferToMe();" value='Send to me' class="btn btn-info btn-sm btn-block" >
</td>
</tr>
<tr>
<td style="height: 60x; vertical-align: bottom;">
<br>
<br>
<input type="button" name="reject_submit" id="reject_submit" onclick="return cancelOffer();" value='Cancel Offer' class="btn btn-danger btn-sm btn-block" >
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main content -->
<div class="content-wrapper">
<!-- 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">
</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 resendOffer() {
$('#mailsent_sent').html('Processing...');
$('#sendjob_resend').prop('disabled', true);
//alert(element.value);
$.ajax({
url: "/jobs/viewjob_resend?jobOfferID=<?php echo $jobOfferID; ?>"
}).done(function( data ) {
$('#mailsent_sent').html(data);
//document.offer_group.job_group.value = '';
$('#sendjob_resend').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;
}
function extendDuration(){
$('#extend_result').html('Processing...');
$('#extend_job').prop('disabled', true);
//alert(element.value);
$.ajax({
url: "/jobs/viewjob_extend?jobOfferID=<?php echo $jobOfferID; ?>"
}).done(function( data ) {
$('#extend_result').html(data);
$('#extend_job').prop('disabled', false);
});
return false;
}
// -->
</script>