This commit is contained in:
2022-05-13 23:57:38 -04:00
parent aa0a9789fa
commit 95b7128d91
5 changed files with 455 additions and 347 deletions
+18 -5
View File
@@ -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');
}