From 95b7128d91525901979a6c119809727203dc0fba Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Fri, 13 May 2022 23:57:38 -0400 Subject: [PATCH] fix --- www/application/controllers/Jobs.php | 23 +- www/application/views/jobs/view_create.php | 8 +- www/application/views/jobs/view_joboffer.php | 172 +++++++--- .../site3/internal/template/side_menu.php | 310 ++++++++++++++++++ .../internal/template/view_securehead.php | 289 +--------------- 5 files changed, 455 insertions(+), 347 deletions(-) create mode 100644 www/application/views/site3/internal/template/side_menu.php diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index 08262c1a..48edb878 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -925,6 +925,15 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] ); $submit = NULL; $country_job ='NG'; + $amountArray = []; + + for ($i = 2000; $i <= 10000; $i = $i + 1000) { + $amountArray[] = [$i,$i,'Naira']; + } + + $data['amount_array'] = $amountArray; + + extract($_POST); $redirected = false; if ($_POST) { @@ -933,7 +942,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] ); $in['description'] = $description; $in['timeline_days'] = $timeline; $in['job_detail'] =$this->input->post('job_detail'); // Somehow this doesnt show when large $job_detail; - $in['price'] = $price * 100; + $in['price'] = (is_int($price)? $price:0) * 100; $in['member_id'] = $_SESSION['member_id']; $in['country'] = $country_job; @@ -1044,20 +1053,24 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] ); $this->load->library('table'); $this->table->set_template($this->template); - $mysql = "SELECT title,description,timeline_days||' day(s)', price*0.01||'Naira' AS price, created::date" + $mysql = "SELECT title,description,timeline_days||' day(s)' AS day_timeline, price*0.01||'Naira' AS price, created::date AS create_date, job_detail" . " FROM members_jobs WHERE id =" . $jobID . " AND member_id = " . $_SESSION['member_id']; $query = $this->db->query($mysql); + $data['job_table_row'] = $query->row(); $this->table->set_heading('Title', 'Description', 'Timeline', 'Price', 'Created'); $data['job_table'] = $this->table->generate($query); + $this->load->model('job_model'); // too bad I have to run again $jobData = $this->job_model->getJob($jobID); $data['job_description'] = $jobData->job_detail; $data['jobID'] = $jobID; - $this->load->view('users/view_header_user', $data); - $this->load->view('jobs/view_joboffer', $data); - $this->load->view('users/view_footer_user', $data); + // $this->load->view('users/view_header_user', $data); + // $this->load->view('jobs/view_joboffer', $data); + // $this->load->view('users/view_footer_user', $data); + $this->renderSecurePage('jobs/view_joboffer', $data); + } else { redirect('/jobs/manage'); } diff --git a/www/application/views/jobs/view_create.php b/www/application/views/jobs/view_create.php index 1aff63ac..7d557f21 100644 --- a/www/application/views/jobs/view_create.php +++ b/www/application/views/jobs/view_create.php @@ -45,8 +45,8 @@ @@ -78,7 +78,7 @@
- +
@@ -89,7 +89,7 @@ + + + + + + + + + + + + + + + + + + + + + -
- -
- -
- - - - - - - - - -
Job Details: Please provide clear deliverables for this task.
-
+ +
+ + +
+ +
+ +
+
+ + +
+
+ +
+ +
+ + -
- - -
- -
-
- - -
-
+
Offer this job to public
-
+
-
+
Offer this job to individual.
-
+
-
+
Offer this job to your Group.
-
+
-
+
+
+ +
-
- +
+
- - +
- + + +