From 58b12ee874fc3d82df8f47dd18ce2ad0428cc2df Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 14 May 2022 13:56:06 -0400 Subject: [PATCH] fix --- www/application/controllers/Jobs.php | 22 ++++++- www/application/views/jobs/view_create.php | 74 ++++++++++++++-------- 2 files changed, 69 insertions(+), 27 deletions(-) diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index 48edb878..588fc0fa 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -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); diff --git a/www/application/views/jobs/view_create.php b/www/application/views/jobs/view_create.php index b899416b..6b7dbf41 100644 --- a/www/application/views/jobs/view_create.php +++ b/www/application/views/jobs/view_create.php @@ -1,4 +1,18 @@ +
+ +
+
@@ -61,7 +75,7 @@ - +
@@ -71,14 +85,14 @@ - +
- +
@@ -110,7 +124,12 @@
- + 0 ? "
$job_message
" : ''; + echo $remS; + ?> + +
@@ -142,38 +161,43 @@
- +
-
-

- . -

-
- -
+
+

Previous Jobs

-
-
- -
- -
- - - .. +
+ + +
+ +
+ title?> + created?>
- + + View
- -
+ + + + + + +
- +