
can you share your controller method and did you tried can you share your controller method and did you tried '||j.contract AS date_contract,'Title:'||j.title||' '||substring(s.message,0,90) as title_message," . " '' " . " FROM members_jobs_contract j " . " RIGHT JOIN jobs_contract_message s ON s.contract=j.contract " . " WHERE j.member_id=" . $_SESSION['member_id'] . " AND j.delivery_date IS NOT NULL AND j.delivery_date > now() OR j.client_id = " . $_SESSION['member_id'] . " AND j.status IN (1,4) AND j.delivery_date IS NOT NULL AND j.delivery_date > now() LIMIT 5"; $query = $this->db->query($mysql); $this->load->library('table'); $this->table->set_template($this->template); $this->table->set_heading(array('data' => 'Date', 'style' => 'width:180px'), 'Title/Message', array('data' => '', 'style' => 'width:100px; cellpadding:0px;')); $data['job_message_table'] = $this->table->generate($query); return $data; } private function dash_title() { $offer_found = false; $data = array(); $data['offer_dash'] = ''; $this->load->library('table'); $this->table->set_template($this->template); $jbx = "''/jobs/viewjob''"; $mysql = "SELECT jo.added::date,j.title," . "'' AS View " . "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id " . "WHERE jo.expire > now() AND jo.status = 1 " . "AND jo.client_id = " . $_SESSION['member_id'] . " LIMIT 4"; // . 'CASE WHEN jo.status = 1 THEN \'Pending\' ELSE \'Other\' END AS status,' $query = $this->db->query($mysql); $num = $query->num_rows(); $data["dash_title"] = "Pending Offer(s)"; if ($num > 0) { // array('data' => 'Added', 'style' => 'width:80px') $this->table->set_heading(array('data' => 'Added', 'style' => 'width:80px'), 'Title', array('data' => '', 'style' => 'width:80px')); $data['offer_dash'] = $this->table->generate($query); $offer_found = true; } else { $data["offer_dash"] = " ![]() '||jo.expire::date,j.title||' To :'||(CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec," . 'CASE WHEN jo.status = 1 AND jo.public_view =0 THEN \'Pending\' WHEN jo.status = 1 AND jo.public_view >0 THEN \'Active\' ELSE \'Other\' END AS status,' . "'' AS View " . "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id " . "WHERE jo.expire > now() AND jo.status = 1 " . "AND jo.member_id = " . $_SESSION['member_id'] . " ORDER BY jo.id DESC LIMIT 4"; $query = $this->db->query($mysql); $num = $query->num_rows(); if ($num > 0) { // array('data' => 'Status', 'style' => 'width:150px') //array('data' => 'Added', 'style' => 'width:150px') //array('data' => 'Added', 'style' => 'width:150px') $this->table->set_heading(array('data' => 'Added/Expire', 'style' => 'width:120px'), 'Title/Recipient', array('data' => 'Status', 'style' => 'width:100px'), array('data' => '', 'style' => 'width:100px')); $data['offer_dash'] = $this->table->generate($query); $offer_found = true; } } return $data; } public function howitworks() { $data = $this->getSessionArray(); $data['page_key'] = 'WRB_MAIN_HOWIT_WORK'; $data['txt_detail'] = $this->readFixedText($data['page_key']); $data['txt_detail'] = str_replace("[how-it-worked-image-1]", " ", $data['txt_detail']);
$data['txt_detail'] = str_replace("[how-it-worked-image-2]", " ", $data['txt_detail']);
$data['page_title'] = "How it Works";
$this->load->view('users/view_header_user', $data);
$this->load->view('users/view_howitworks', $data);
$this->load->view('users/view_footer_user', $data);
//echo "here-here";
}
public function howfindwork() {
$data = $this->getSessionArray();
$data['page_key'] = 'WRB_MAIN_HOWIT_WORK';
$data['txt_detail'] = $this->readFixedText($data['page_key']);
$data['txt_detail'] = str_replace("[how-it-worked-image-1]", " ", $data['txt_detail']);
$data['txt_detail'] = str_replace("[how-it-worked-image-2]", " ", $data['txt_detail']);
$data['page_title'] = "How to find Job";
$this->load->view('users/view_header_user', $data);
$this->load->view('users/view_howfindjob', $data);
$this->load->view('users/view_footer_user', $data);
//echo "here-here";
}
public function howpostjob() {
$data = $this->getSessionArray();
$data['page_key'] = 'WRB_MAIN_HOWIT_WORK';
$data['txt_detail'] = $this->readFixedText($data['page_key']);
$data['txt_detail'] = str_replace("[how-it-worked-image-1]", " ", $data['txt_detail']);
$data['txt_detail'] = str_replace("[how-it-worked-image-2]", " ", $data['txt_detail']);
$data['page_title'] = "How to Post Job";
$this->load->view('users/view_header_user', $data);
$this->load->view('users/view_howpostjob', $data);
$this->load->view('users/view_footer_user', $data);
//echo "here-here";
}
}
|