diff --git a/www/application/config/constants.php b/www/application/config/constants.php index 8b0bc0dc..9d6e568f 100644 --- a/www/application/config/constants.php +++ b/www/application/config/constants.php @@ -101,7 +101,8 @@ define('UPLOAD_FILE_SIZE',1); define('OFFER_ACCEPT',100); define('OFFER_REJECT',333); define('OFFER_CANCEL',222); -define('OFFER_EXPIRE',444); +define('OFFER_EXPIRE',444); +define('OFFER_EXTEND',555); define('OFFER_SENDTOME',777); diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index ed734958..5ad5e5db 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -1184,7 +1184,12 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] ); { $this->concludeOffer(OFFER_SENDTOME); } - + + public function viewjob_extend() + { + $this->concludeOffer(OFFER_EXTEND); + } + private function concludeOffer($offer_result) { //WRENCHBOARD_JOB_OFFER_CONCLUDE $jobOfferID = $this->input->get('jobOfferID'); @@ -1209,6 +1214,9 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] ); case OFFER_CANCEL: echo "You have cancelled this offer and we have notified the recipient."; break; + case OFFER_EXTEND: + echo "New time"; + break; } } // print_r($out); diff --git a/www/application/views/jobs/view_viewmyjoboffer.php b/www/application/views/jobs/view_viewmyjoboffer.php index 8ec6820c..ea508038 100644 --- a/www/application/views/jobs/view_viewmyjoboffer.php +++ b/www/application/views/jobs/view_viewmyjoboffer.php @@ -59,7 +59,7 @@