diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php
index a440beac..f775f6a9 100644
--- a/www/application/controllers/Jobs.php
+++ b/www/application/controllers/Jobs.php
@@ -940,7 +940,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
$title = NULL;
$description = NULL;
$timeline = NULL;
- $price = NULL;
+ $price = 0;
}
@@ -974,7 +974,8 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
$in['description'] = $description;
$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['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['country'] = $country_job;
@@ -1002,6 +1003,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
$this->load->model('combo_model');
$this->combo_model->defaultComboMessage = 'Select Job Country';
$data['country_job'] = $this->combo_model->getCountryJobCombo('country', $country);
+ $data['job_price'] = $this->combo_model->getJobPriceCombo('price','Naira', $price);
$data['title'] = $title;
$data['description'] = $description;
@@ -1394,6 +1396,7 @@ $data['page_title'] = "Create Job";
// array('data' => 'Del.', 'style' => 'width:80px')
$data['page_title'] = "Manage Job(s)";
+ $data['job_table_rows'] = $query->result();
$data['job_table'] = $this->table->generate($query);
/* $this->load->view('users/view_header_user', $data);
diff --git a/www/application/models/Combo_model.php b/www/application/models/Combo_model.php
index 5c6ce80a..8d40eed3 100644
--- a/www/application/models/Combo_model.php
+++ b/www/application/models/Combo_model.php
@@ -12,6 +12,20 @@ class Combo_model extends CI_Model {
}
+ public function getJobPriceCombo($option_name,$description, $curVal){
+
+ $this->defaultComboMessage ='Select Price...';
+ $cmbstr ="";
+ for ($i = 2000; $i <= 10000; $i = $i + 1000) {
+ // $amountArray[] = [$i,$i,'Naira'];
+ $selV = '';
+ if ($curVal == $i) {
+ $selV = " selected ";
+ }
+ $cmbstr .= "";
+ }
+ return $this->comboFrame($option_name, $cmbstr);
+ }
public function getJobPostDuration($option_name, $duration)
{
$this->defaultComboMessage ='Select duration of post';
diff --git a/www/application/models/Job_model.php b/www/application/models/Job_model.php
index c65f07f1..1e05a30b 100644
--- a/www/application/models/Job_model.php
+++ b/www/application/models/Job_model.php
@@ -9,6 +9,7 @@ class Job_model extends CI_Model {
/*
* Supply active list of jobs for this id
*/
+
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 '
. ' LEFT JOIN members_jobs mj ON mj.id=jo.job_id '
diff --git a/www/application/views/jobs/view_create.php b/www/application/views/jobs/view_create.php
index 6b7dbf41..2afdb49e 100644
--- a/www/application/views/jobs/view_create.php
+++ b/www/application/views/jobs/view_create.php
@@ -56,15 +56,7 @@
-
-
+ =$job_price?>