diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index 408f2638..4eb59149 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -921,6 +921,7 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] ) // $timeline_days = NULL; $price = NULL; $submit = NULL; + $country_job ='NG'; extract($_POST); $redirected = false; @@ -932,6 +933,7 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] ) $in['job_detail'] =$this->input->post('job_detail'); // Somehow this doesnt show when large $job_detail; $in['price'] = $price * 100; $in['member_id'] = $_SESSION['member_id']; + $in['country'] = $country_job; $this->load->model('job_model'); if ($this->job_model->verifyJobInputs($in) == true) { @@ -988,13 +990,26 @@ echo $this->getMarketInterestMessage( $data['offer_code'], $out['client_id'] ) } } + public function agreejobterms(){ + $data = $this->getSessionArray(); + $in = array(); + $in['action'] = WRENCHBOARD_ACCOUNT_TERMS; + $in['action_item'] = ACCOUNT_AGREE_JOBS; + $in['member_id'] = $_SESSION['member_id']; + $this->load->model('backend_model'); + $out = array(); + $res = $this->backend_model->wrenchboard_api($in, $out); + + if ($res == PHP_API_OK) { + redirect('/jobs/create'); + } + } + public function jobagree() { $data = $this->getSessionArray(); - - +//$this->agreejobterms(); if ($_POST) { - //echo rand(1000,9999); $in = array(); $in['action'] = WRENCHBOARD_ACCOUNT_TERMS; $in['action_item'] = ACCOUNT_AGREE_JOBS; diff --git a/www/application/controllers/Paymnt.php b/www/application/controllers/Paymnt.php index edde55a0..8f3fda76 100644 --- a/www/application/controllers/Paymnt.php +++ b/www/application/controllers/Paymnt.php @@ -23,14 +23,14 @@ class Paymnt extends Users_Controller { public function paycc() { $data = $this->getSessionArray(); $data['card_table_result'] = $this->cardListData(4)['card_table_result']; - $data['page_title'] ="Deposit Funds"; + $data['page_title'] ="Deposit Funds with Credit or Debit Card(s)"; $this->RenderUserPage('users/view_startpaymus', $data); } public function paypal() { $data = $this->getSessionArray(); $data['card_table_result'] = $this->cardListData(4)['card_table_result']; - $data['page_title'] ="Deposit Funds"; + $data['page_title'] ="Deposit Funds with PayPal"; $this->RenderUserPage('users/view_paypal', $data); } diff --git a/www/application/views/jobs/view_jobagree.php b/www/application/views/jobs/view_jobagree.php index 9de60c85..f26d4fe3 100644 --- a/www/application/views/jobs/view_jobagree.php +++ b/www/application/views/jobs/view_jobagree.php @@ -58,7 +58,7 @@