fix
This commit is contained in:
@@ -940,7 +940,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
|||||||
$title = NULL;
|
$title = NULL;
|
||||||
$description = NULL;
|
$description = NULL;
|
||||||
$timeline = NULL;
|
$timeline = NULL;
|
||||||
$price = NULL;
|
$price = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -974,7 +974,8 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
|||||||
$in['description'] = $description;
|
$in['description'] = $description;
|
||||||
$in['timeline_days'] = $this->input->post('timeline') ; //$timeline;
|
$in['timeline_days'] = $this->input->post('timeline') ; //$timeline;
|
||||||
$in['job_detail'] = trim( $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'] = $this->input->post('price') *100; // (is_int($price)? $price:0) * 100;
|
$price = $this->input->post('price');
|
||||||
|
$in['price'] = $price * 100; // (is_int($price)? $price:0) * 100;
|
||||||
$in['member_id'] = $_SESSION['member_id'];
|
$in['member_id'] = $_SESSION['member_id'];
|
||||||
$in['country'] = $country_job;
|
$in['country'] = $country_job;
|
||||||
|
|
||||||
@@ -1002,6 +1003,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
|||||||
$this->load->model('combo_model');
|
$this->load->model('combo_model');
|
||||||
$this->combo_model->defaultComboMessage = 'Select Job Country';
|
$this->combo_model->defaultComboMessage = 'Select Job Country';
|
||||||
$data['country_job'] = $this->combo_model->getCountryJobCombo('country', $country);
|
$data['country_job'] = $this->combo_model->getCountryJobCombo('country', $country);
|
||||||
|
$data['job_price'] = $this->combo_model->getJobPriceCombo('price','Naira', $price);
|
||||||
|
|
||||||
$data['title'] = $title;
|
$data['title'] = $title;
|
||||||
$data['description'] = $description;
|
$data['description'] = $description;
|
||||||
@@ -1394,6 +1396,7 @@ $data['page_title'] = "Create Job";
|
|||||||
// array('data' => 'Del.', 'style' => 'width:80px')
|
// array('data' => 'Del.', 'style' => 'width:80px')
|
||||||
|
|
||||||
$data['page_title'] = "Manage Job(s)";
|
$data['page_title'] = "Manage Job(s)";
|
||||||
|
$data['job_table_rows'] = $query->result();
|
||||||
|
|
||||||
$data['job_table'] = $this->table->generate($query);
|
$data['job_table'] = $this->table->generate($query);
|
||||||
/* $this->load->view('users/view_header_user', $data);
|
/* $this->load->view('users/view_header_user', $data);
|
||||||
|
|||||||
@@ -12,6 +12,20 @@ class Combo_model extends CI_Model {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getJobPriceCombo($option_name,$description, $curVal){
|
||||||
|
|
||||||
|
$this->defaultComboMessage ='Select Price...';
|
||||||
|
$cmbstr ="<option value='0'>". $this->defaultComboMessage ."</option>";
|
||||||
|
for ($i = 2000; $i <= 10000; $i = $i + 1000) {
|
||||||
|
// $amountArray[] = [$i,$i,'Naira'];
|
||||||
|
$selV = '';
|
||||||
|
if ($curVal == $i) {
|
||||||
|
$selV = " selected ";
|
||||||
|
}
|
||||||
|
$cmbstr .= "<option value='".$i."' ".$selV.">".$i." ".$description."</option>";
|
||||||
|
}
|
||||||
|
return $this->comboFrame($option_name, $cmbstr);
|
||||||
|
}
|
||||||
public function getJobPostDuration($option_name, $duration)
|
public function getJobPostDuration($option_name, $duration)
|
||||||
{
|
{
|
||||||
$this->defaultComboMessage ='Select duration of post';
|
$this->defaultComboMessage ='Select duration of post';
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ class Job_model extends CI_Model {
|
|||||||
/*
|
/*
|
||||||
* Supply active list of jobs for this id
|
* Supply active list of jobs for this id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function selectMarketJob($jobId){
|
public function selectMarketJob($jobId){
|
||||||
$mysql = 'SELECT jo.offer_code,mj.title,mj.description,mj.timeline_days,mj.price,jo.job_description,jo.expire::date FROM members_jobs_offer jo '
|
$mysql = 'SELECT jo.offer_code,mj.title,mj.description,mj.timeline_days,mj.price,jo.job_description,jo.expire::date FROM members_jobs_offer jo '
|
||||||
. ' LEFT JOIN members_jobs mj ON mj.id=jo.job_id '
|
. ' LEFT JOIN members_jobs mj ON mj.id=jo.job_id '
|
||||||
|
|||||||
@@ -56,15 +56,7 @@
|
|||||||
<label class="fs-5 fw-bold mb-2">Price</label>
|
<label class="fs-5 fw-bold mb-2">Price</label>
|
||||||
<!--end::Label-->
|
<!--end::Label-->
|
||||||
<!--end::Input-->
|
<!--end::Input-->
|
||||||
<select class="form-select form-select-solid form-select-lg" name='price'>
|
<?=$job_price?>
|
||||||
<option value="opt1">Select Price for this job</option>
|
|
||||||
<?php
|
|
||||||
foreach($amount_array as $amr){
|
|
||||||
echo "<option value='".$amr[0]."'>".$amr[1]." ".$amr[2]."</option>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
<!--end::Input-->
|
|
||||||
<!--end::Col-->
|
<!--end::Col-->
|
||||||
</div>
|
</div>
|
||||||
<!--end::Input group-->
|
<!--end::Input group-->
|
||||||
|
|||||||
Reference in New Issue
Block a user