fix
This commit is contained in:
@@ -957,7 +957,22 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
$amountArray[] = [$i,$i,'Naira'];
|
||||
}
|
||||
|
||||
$marketArray = [];
|
||||
for ($i = 2; $i <= 6; $i = $i + 1) {
|
||||
$marketArray[] = [$i,$i,'Days'];
|
||||
}
|
||||
|
||||
for ($i = 7; $i <= 21; $i = $i + 7) {
|
||||
$marketArray[] = [$i,$i,'Week(s)'];
|
||||
}
|
||||
|
||||
for ($i = 30; $i <= 90; $i = $i + 30) {
|
||||
$marketArray[] = [$i,$i,'Month(s)'];
|
||||
}
|
||||
|
||||
$data['amount_array'] = $amountArray;
|
||||
$data['timeline_array'] = $marketArray;
|
||||
|
||||
|
||||
$mysqlJ = "SELECT id, title,created::date FROM members_jobs WHERE
|
||||
member_id = " . $_SESSION['member_id'] . "
|
||||
@@ -966,6 +981,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
|
||||
$query = $this->db->query($mysqlJ);
|
||||
$data['recentjobs'] = $query->result();
|
||||
$data['recentjobs_count'] = $query->num_rows();
|
||||
|
||||
extract($_POST);
|
||||
$redirected = false;
|
||||
@@ -1005,6 +1021,7 @@ 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['job_price'] = $this->combo_model->getJobPriceCombo('price','Naira', $price);
|
||||
$data['timeline_combo'] = $this->combo_model->marketTimeline('timeline', $timeline);
|
||||
|
||||
$data['title'] = $title;
|
||||
$data['description'] = $description;
|
||||
@@ -1013,7 +1030,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
$data['price'] = $price;
|
||||
$data['country'] = $country_job;
|
||||
|
||||
$data['page_title'] = "Create Job";
|
||||
$data['page_title'] = "Create Job";
|
||||
|
||||
if ($redirected == false) {
|
||||
$this->load->model('dash_model');
|
||||
@@ -1022,11 +1039,6 @@ $data['page_title'] = "Create Job";
|
||||
$data['active_pass_due'] = $out['active_pass_due'];
|
||||
$data['current_balance'] = $out['current_balance'];
|
||||
$data['new_message'] = $out['new_message'];
|
||||
|
||||
// $this->load->view('users/view_header_user', $data);
|
||||
// $this->load->view('jobs/view_create', $data);
|
||||
// $this->load->view('users/view_footer_user', $data);
|
||||
|
||||
$this->renderSecurePage('jobs/view_create', $data);
|
||||
|
||||
}
|
||||
@@ -1052,18 +1064,21 @@ $data['page_title'] = "Create Job";
|
||||
$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');
|
||||
$res = $this->backend_model->wrenchboard_api($in, $out);
|
||||
//echo $res;
|
||||
//exit;
|
||||
if ($res == PHP_API_OK || $out["terms_update"]=='completed') {
|
||||
redirect('/jobs/create',$data);
|
||||
}
|
||||
}
|
||||
|
||||
public function jobagree() {
|
||||
$data = $this->getSessionArray();
|
||||
//$this->agreejobterms();
|
||||
|
||||
if ($_POST) {
|
||||
echo "Ameye";
|
||||
exit;
|
||||
|
||||
$in = array();
|
||||
$in['action'] = WRENCHBOARD_ACCOUNT_TERMS;
|
||||
$in['action_item'] = ACCOUNT_AGREE_JOBS;
|
||||
@@ -1072,7 +1087,7 @@ $data['page_title'] = "Create Job";
|
||||
$out = array();
|
||||
$res = $this->backend_model->wrenchboard_api($in, $out);
|
||||
|
||||
if ($res == PHP_API_OK) {
|
||||
if ($res == PHP_API_OK || $out["terms_update"]=='completed') {
|
||||
redirect('/jobs/create');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user