diff --git a/www/application/controllers/Dash.php b/www/application/controllers/Dash.php index 2e62c268..2524a443 100644 --- a/www/application/controllers/Dash.php +++ b/www/application/controllers/Dash.php @@ -113,7 +113,7 @@ class Dash extends Users_Controller { $data['job_table_result'] = $acp['job_table_result']; $ya = array(); - $ya = $this->dash_title(); + $ya = $this->dash_title( 4 ); $data["dash_title"] = $ya["dash_title"]; $data["offer_dash"] = $ya["offer_dash"]; $data["offer_dash_result"] = $ya["offer_dash_result"]; @@ -177,7 +177,7 @@ class Dash extends Users_Controller { return $data; } - private function dash_title() { + private function dash_title($listLimit) { $offer_found = false; @@ -192,7 +192,7 @@ class Dash extends Users_Controller { . "'' AS View ,jo.offer_code AS offer_code " . "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"; + . "AND jo.client_id = " . $_SESSION['member_id'] . " LIMIT $listLimit"; $query = $this->db->query($mysql); $num = $query->num_rows(); $data["dash_title"] = "Pending Offer(s)"; @@ -212,14 +212,14 @@ class Dash extends Users_Controller { if ($offer_found == false) { - $data["dash_title"] = "My Pending Offer(s)"; + $data["dash_title"] = "Offer(s)"; $jbx = "''/jobs/viewmyjob''"; $mysql = "SELECT jo.added::date||'
'||jo.expire::date AS pdate,j.title, (CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,'\/jobs\/viewmyjob' AS qpath," . '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,jo.offer_code AS offer_code " . "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"; + . "AND jo.member_id = " . $_SESSION['member_id'] . " ORDER BY jo.id DESC LIMIT $listLimit"; $query = $this->db->query($mysql); $num = $query->num_rows(); diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index 73c67fd5..5391e25e 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -526,7 +526,6 @@ class Jobs extends Users_Controller { $this->load->model('job_model'); $out = $this->job_model->loadJobOffer($_SESSION['member_id'], $jobOfferID); -// print_r($out); if ($out['result'] == 1) { $data["added_date"] = $out["added_date"]; @@ -540,9 +539,10 @@ class Jobs extends Users_Controller { $out["expire"] = date_format($date, 'Y-m-d H:i'); $data["expire"] = $out["expire"]; - $this->load->view('users/view_header_user', $data); - $this->load->view('jobs/view_viewjoboffer', $data); - $this->load->view('users/view_footer_user', $data); + // $this->load->view('users/view_header_user', $data); + // $this->load->view('jobs/view_viewjoboffer', $data); + // $this->load->view('users/view_footer_user', $data); + $this->renderSecurePage('jobs/view_viewjoboffer', $data); } else { redirect('dash'); // go back to dash if not valid } diff --git a/www/application/views/jobs/view_viewjoboffer.php b/www/application/views/jobs/view_viewjoboffer.php index 4096eeeb..c5012579 100644 --- a/www/application/views/jobs/view_viewjoboffer.php +++ b/www/application/views/jobs/view_viewjoboffer.php @@ -1,64 +1,105 @@
- -
- - - -
-
- -
-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
Date
Description
Offer Expire
Price Naira
Duration day(s)
Detail
+ +
+
+
+
+

+ +

+
+
-
-
-
-
-
- -
- +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Date
Description
Offer Expire
Price Naira
Duration day(s)
Detail
+ + + + + + + + + + + + + +
+
+
+ + + +
+
+
+
+

+ Active Projects +

+
+
+
+
+
+ +
+ +
+ +
+ +
+ + +
+
+ +
+ +
+
- +