fix
This commit is contained in:
@@ -1378,21 +1378,17 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
public function manage() {
|
||||
|
||||
$data = $this->getSessionArray();
|
||||
$this->load->library('table');
|
||||
|
||||
$this->table->set_template($this->template);
|
||||
$jbx = "''/jobs/processjob''";
|
||||
$mysql = "SELECT '<b>Date: </b>'||created::date||'<br><b>Timeline: </b>'||timeline_days||' day(s)'||'<br><b>Price: </b>'||price*0.01||' ' AS Job,"
|
||||
. " '<b>Title: </b>'||title||'<br><b>Description: </b>'||description AS detail, "
|
||||
. " '<table><tr><td><input type=button onclick=\"return post_nav_find_action($jbx, '||id||')\" name=\"manage\" class=\"btn btn-info btn-xs\" value=\"View\"></td><td><div id=\"subdel'||id||'\" ><input type=button id=\"dacc'||id||'\" onclick=\"return deleteJob('||id||')\" name=\"manage\" class=\"btn btn-warning btn-xs\" value=\"Del\"></td></tr></table>' AS manage"
|
||||
. " FROM members_jobs WHERE member_id = " . $_SESSION['member_id'] . " AND status=1 ORDER BY id DESC";
|
||||
|
||||
|
||||
|
||||
$this->load->library('pagination');
|
||||
$config = array();
|
||||
$query = $this->db->query($mysql);
|
||||
$config["total_rows"] = $query->num_rows();
|
||||
$_SESSION['total_job_count'] = $config["total_rows"];
|
||||
$config["base_url"] = base_url() . "/jobs/manage";
|
||||
$config["per_page"] = 10;
|
||||
$config["uri_segment"] = 3;
|
||||
@@ -1414,32 +1410,22 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
|
||||
$config['last_tagl_close'] = "</li>";
|
||||
|
||||
$this->pagination->initialize($config);
|
||||
|
||||
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
|
||||
|
||||
/*
|
||||
$mysql = "SELECT '<b>Date: </b>'||created::date||'<br><b>Timeline: </b>'||timeline_days||' day(s)'||'<br><b>Price: </b>'||price*0.01||' ' AS Job,"
|
||||
. " '<b>Title: </b>'||title||'<br><b>Description: </b>'||description AS detail, "
|
||||
. " '<table><tr><td><input type=button onclick=\"return post_nav_find_action($jbx, '||id||')\" name=\"manage\" class=\"btn btn-info btn-xs\" value=\"View\"><div id=\"subdel'||id||'\" ></td><td><input type=button id=\"dacc'||id||'\" onclick=\"return deleteJob('||id||')\" name=\"manage\" class=\"btn btn-warning btn-xs\" value=\"Del\"></td></tr></table>' AS manage"
|
||||
. " FROM members_jobs WHERE member_id = " . $_SESSION['member_id'] . " AND status=1 ORDER BY id DESC LIMIT " . $config["per_page"] . " OFFSET " . $page;
|
||||
|
||||
*/
|
||||
$mysql = "SELECT id AS job_id, '<b>Date: </b>'||created::date||'<br><b>Timeline: </b>'||timeline_days||' day(s)'||'<br><b>Price: </b>'||price*0.01||' ' AS Job,"
|
||||
. " title, description,timeline_days, price*0.01 AS amount,"
|
||||
. " '<table><tr><td><input type=button onclick=\"return post_nav_find_action($jbx, '||id||')\" name=\"manage\" class=\"btn btn-info btn-xs\" value=\"View\"><div id=\"subdel'||id||'\" ></td><td><input type=button id=\"dacc'||id||'\" onclick=\"return deleteJob('||id||')\" name=\"manage\" class=\"btn btn-warning btn-xs\" value=\"Del\"></td></tr></table>' AS manage"
|
||||
. " FROM members_jobs WHERE member_id = " . $_SESSION['member_id'] . " AND status=1 ORDER BY id DESC LIMIT " . $config["per_page"] . " OFFSET " . $page;
|
||||
|
||||
$query = $this->db->query($mysql);
|
||||
$this->table->set_heading(array('data' => 'Job/Task', 'style' => 'width:150px'), 'Title/Description', array('data' => 'Manage', 'style' => 'width:120px'));
|
||||
$data["links"] = $this->pagination->create_links();
|
||||
|
||||
// array('data' => 'Del.', 'style' => 'width:80px')
|
||||
|
||||
$data['page_title'] = "Manage Job(s)";
|
||||
$data['job_table_rows'] = $query->result();
|
||||
|
||||
$data['job_table'] = $this->table->generate($query);
|
||||
/* $this->load->view('users/view_header_user', $data);
|
||||
$this->load->view('jobs/view_manage', $data);
|
||||
$this->load->view('users/view_footer_user', $data); */
|
||||
$this->renderSecurePage('jobs/view_manage', $data);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user