From 2edcd3207a6f56dd67a3b8e6b69fa544060b0742 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Tue, 11 Oct 2022 07:43:33 -0400 Subject: [PATCH] fix --- www/application/controllers/Proj.php | 4 +-- www/application/views/jobs/view_thisjob.php | 38 +++++---------------- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/www/application/controllers/Proj.php b/www/application/controllers/Proj.php index c4b68310..877231a1 100644 --- a/www/application/controllers/Proj.php +++ b/www/application/controllers/Proj.php @@ -200,7 +200,7 @@ class Proj extends Users_Controller { $data['job_table_result'] = $query->result();; $data['ref_site'] = "/proj/active/$page"; - + $data['job_table'] = $this->table->generate($query); $this->table->set_heading(array('data' => 'Job', 'style' => 'width:180px'), 'Title/Description', array('data' => '', 'style' => 'width:100px; cellpadding:0px;')); //$this->table->set_heading('Job', 'Description', ''); @@ -709,7 +709,7 @@ class Proj extends Users_Controller { $mysql = "SELECT m.id,mc.contract, m.firstname,mc.title,mc.description, mc.timeline_days, mc.price*0.01,mc.delivery_date, mc.contract AS contract_id, mc.job_detail AS job_detail , - $detail_button As delivery_details + $detail_button As delivery_details,mc.status AS current_job_status FROM members_jobs_contract mc LEFT JOIN members m ON m.id=mc.client_id WHERE (mc.member_id = '" . $_SESSION['member_id'] . "' OR mc.client_id='" . $_SESSION['member_id'] . "') diff --git a/www/application/views/jobs/view_thisjob.php b/www/application/views/jobs/view_thisjob.php index 659068dc..3574cfcc 100644 --- a/www/application/views/jobs/view_thisjob.php +++ b/www/application/views/jobs/view_thisjob.php @@ -136,36 +136,9 @@
- - - - - - - - - -
- If you have completed this task and will like the owner to review the work for acceptance, click "Completed" button. - -
-
- If you are unable to complete and will like this project canceled, click "Cancel task" button. - -
-
-
-

Note: Buttons may be disabled for some days at the start of the task

-
- - - - - @@ -232,7 +205,14 @@ current_job_status != 4){ + include('jobaction/job_worker.php'); + } + + if ($this_job_result->current_job_status == 4){ + echo "You have sent this task to the owner for review and acceptance. The job will automatically be completed in 3 days if the owner does not respond"; + } + } if ($this_is_project_owner == true) {