fix
This commit is contained in:
@@ -933,7 +933,16 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
|
||||
$data['amount_array'] = $amountArray;
|
||||
|
||||
|
||||
$mysqlJ = "SELECT id, title,created::date FROM members_jobs WHERE
|
||||
member_id = " . $_SESSION['member_id'] . "
|
||||
AND status = 1
|
||||
ORDER BY id DESC LIMIT 5";
|
||||
|
||||
$query = $this->db->query($mysqlJ);
|
||||
$data['recentjobs'] = $query->result();
|
||||
|
||||
|
||||
|
||||
extract($_POST);
|
||||
$redirected = false;
|
||||
if ($_POST) {
|
||||
@@ -941,7 +950,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
$in['title'] = $title;
|
||||
$in['description'] = $description;
|
||||
$in['timeline_days'] = $timeline;
|
||||
$in['job_detail'] =$this->input->post('job_detail'); // Somehow this doesnt show when large $job_detail;
|
||||
$in['job_detail'] = trim( $this->input->post('job_detail') ); // Somehow this doesnt show when large $job_detail;
|
||||
$in['price'] = (is_int($price)? $price:0) * 100;
|
||||
$in['member_id'] = $_SESSION['member_id'];
|
||||
$in['country'] = $country_job;
|
||||
@@ -972,6 +981,15 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
$this->combo_model->defaultComboMessage = 'Select Job Country';
|
||||
$data['country_job'] = $this->combo_model->getCountryJobCombo('country', $country);
|
||||
|
||||
$data['title'] = $title;
|
||||
$data['description'] = $description;
|
||||
$data['timeline_days'] = $timeline;
|
||||
$data['job_detail'] = trim( $job_detail );
|
||||
$data['price'] = $price;
|
||||
$data['country'] = $country_job;
|
||||
|
||||
$data['page_title'] = "Create Job";
|
||||
|
||||
if ($redirected == false) {
|
||||
$this->load->model('dash_model');
|
||||
$out = $this->dash_model->getDashData($data);
|
||||
|
||||
@@ -1,4 +1,18 @@
|
||||
<?php include('common/jobstrip.php'); ?>
|
||||
<form method="post" name="post_nav_find" action="">
|
||||
<input type="hidden" name="jobID" value="">
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function post_nav_find_action(what, value) {
|
||||
// alert(what);
|
||||
document.post_nav_find.action = what + '';
|
||||
document.post_nav_find.jobID.value = value;
|
||||
document.post_nav_find.submit();
|
||||
return false;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
||||
<!--begin::Row-->
|
||||
<div class="row g-5 g-xl-8">
|
||||
@@ -61,7 +75,7 @@
|
||||
<label class="fs-5 fw-bold mb-2">Title</label>
|
||||
<!--end::Label-->
|
||||
<!--begin::Input-->
|
||||
<input class="form-control form-control-solid" placeholder="" name="title" maxlength="80">
|
||||
<input class="form-control form-control-solid" placeholder="" name="title" value="<?=isset($title)?$title:''?>" maxlength="80">
|
||||
<!--end::Input-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
@@ -71,14 +85,14 @@
|
||||
<label class="fs-5 fw-bold mb-2">Description [250]:</label>
|
||||
<!--end::Label-->
|
||||
<!--begin::Input-->
|
||||
<input class="form-control form-control-solid" placeholder="" name="description">
|
||||
<input class="form-control form-control-solid" placeholder="" value="<?=isset($description)?$description:''?>" name="description">
|
||||
<!--end::Input-->
|
||||
</div>
|
||||
<!--end::Input group-->
|
||||
<!--begin::Input group-->
|
||||
<div class="d-flex flex-column mb-10 fv-row fv-plugins-icon-container">
|
||||
<label class="fs-6 fw-bold mb-2">Job Delivery Details:</label>
|
||||
<textarea class="form-control form-control-solid" rows="6" name="job_detail" placeholder=""></textarea>
|
||||
<textarea class="form-control form-control-solid" rows="6" name="job_detail" placeholder=""><?=isset($job_detail)?$job_detail:''?></textarea>
|
||||
<div class="fv-plugins-message-container invalid-feedback"></div></div>
|
||||
<!--end::Input group-->
|
||||
|
||||
@@ -110,7 +124,12 @@
|
||||
<div class="d-flex flex-column mb-5 fv-row">
|
||||
<div class="row mb-5">
|
||||
<div class="col-md-9 fv-row fv-plugins-icon-container">
|
||||
<?php echo $job_message; ?>
|
||||
<?php
|
||||
$remS = strlen( $job_message ) > 0 ? "<div class='col-xl-12 bg-light-danger rounded p-5 mb-7'>$job_message </div>" : '';
|
||||
echo $remS;
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 fv-row fv-plugins-icon-container" style="text-align: right;">
|
||||
<!--begin::Submit-->
|
||||
@@ -142,38 +161,43 @@
|
||||
<!--end::Col-->
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-3">
|
||||
<!--begin::Tables Widget 5-->
|
||||
<!--begin::List Widget 3-->
|
||||
<div class="card card-xl-stretch mb-5 mb-xl-8">
|
||||
<!--begin::Header-->
|
||||
<div class="card-header border-0 pt-5">
|
||||
<h3 class="card-title align-items-start flex-column">
|
||||
.
|
||||
</h3>
|
||||
<div class="card-toolbar">
|
||||
|
||||
</div>
|
||||
<div class="card-header border-0">
|
||||
<h3 class="card-title fw-bolder text-dark">Previous Jobs</h3>
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
<!--begin::Body-->
|
||||
<div class="card-body py-3">
|
||||
<div class="tab-content">
|
||||
<!--begin::Tap pane-->
|
||||
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
|
||||
<!--begin::Table container-->
|
||||
<div class="table-responsive">
|
||||
<!--begin::Table-->
|
||||
|
||||
..
|
||||
<div class="card-body pt-2">
|
||||
<!--begin::Item-->
|
||||
<?php
|
||||
foreach ($recentjobs as $row)
|
||||
{
|
||||
?>
|
||||
<div class="d-flex align-items-center mb-8" >
|
||||
<!--begin::Description-->
|
||||
<div class="flex-grow-1">
|
||||
<a href="#" onclick="return post_nav_find_action('/jobs/processjob', '<?=$row->id?>')" class="text-gray-800 text-hover-primary fw-bolder fs-6"><?=$row->title?></a>
|
||||
<span class="text-muted fw-bold d-block"><?=$row->created?></span>
|
||||
</div>
|
||||
<!--end::Table-->
|
||||
<!--end::Description-->
|
||||
<a href="#" onclick="return post_nav_find_action('/jobs/processjob', '<?=$row->id?>')" class="badge badge-light-success fs-8 fw-bolder">View</a>
|
||||
</div>
|
||||
<!--end::Tap pane-->
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<!--end:Item-->
|
||||
|
||||
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Tables Widget 5-->
|
||||
<!--end:List Widget 3-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user