From 49c5e94dd5c8bf4e2dc610ece059d5325641d518 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 23 Jul 2022 12:56:36 -0400 Subject: [PATCH] fix --- www/application/controllers/Jobs.php | 20 +- www/application/views/jobs/common/jobside.php | 97 +------ .../views/jobs/view_startcreate.php | 236 +++++++++--------- 3 files changed, 125 insertions(+), 228 deletions(-) diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index ec01f760..a0edee91 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -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 'Date: '||created::date||'
Timeline: '||timeline_days||' day(s)'||'
Price: '||price*0.01||' ' AS Job," . " 'Title: '||title||'
Description: '||description AS detail, " . " '
' 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'] = ""; $this->pagination->initialize($config); - $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; - +/* $mysql = "SELECT 'Date: '||created::date||'
Timeline: '||timeline_days||' day(s)'||'
Price: '||price*0.01||' ' AS Job," . " 'Title: '||title||'
Description: '||description AS detail, " . " '
' 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, 'Date: '||created::date||'
Timeline: '||timeline_days||' day(s)'||'
Price: '||price*0.01||' ' AS Job," . " title, description,timeline_days, price*0.01 AS amount," . " '
' 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); } diff --git a/www/application/views/jobs/common/jobside.php b/www/application/views/jobs/common/jobside.php index 2b68641c..df3354c4 100644 --- a/www/application/views/jobs/common/jobside.php +++ b/www/application/views/jobs/common/jobside.php @@ -7,98 +7,7 @@ 0 Active Jobs
- - - - - - +
@@ -122,8 +31,8 @@
- Jobs and Tasks - 0 Total Jobs + Jobs and Tasks + Total Job(s)
diff --git a/www/application/views/jobs/view_startcreate.php b/www/application/views/jobs/view_startcreate.php index 9ff42a7f..0475b452 100644 --- a/www/application/views/jobs/view_startcreate.php +++ b/www/application/views/jobs/view_startcreate.php @@ -4,140 +4,142 @@
- -
- -
- -
- -
- -
+ +
+
+

+ Add New Job or Task + . +

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

Select a job template

+
+ New Custom Job + Due in 2 Days +
- - Create Custom Job - + + + +
+
- - -
- - -
+
+ +
+ + + + + + + + + + + + + +
+ Add Repeating Job + Due in 2 Days +
+ + + + +
+ +
+
+ + + + + +
+
+ +
+ +
+

+ Job Templates + . +

+
+ +
+
+ + +
+ +
+ + + + + - - -
- -
- - - -
- - - - -
- -
- - -
- - -
- - - estimate- days - - - Continue - +
+ + + - - - -
- -
- - - -
- - - - -
- - simply Create any type of job you wanted - - -
We’ve been focused on making a the from also not been eye
- - -
- - - . - - - Continue - -
- -
- -
- -
- - - + + +
+
+
+ + + +
+
+ +
-
- - - - - - - +
+ Start +
+
- -
- - - - - -
-
- - - -
-
-
- +
-