From 43c222e77cf28a71fdc5099bc771386d8f8ce1d6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 19 Nov 2024 06:46:07 -0500 Subject: [PATCH] status just added --- app/Config/Constants.php | 9 +++++++++ app/Controllers/PromoAdmin.php | 6 ++++-- app/Views/admin/index.php | 4 ++-- app/Views/admin/mylist.php | 4 ++-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app/Config/Constants.php b/app/Config/Constants.php index 47b92f8..062bc9b 100644 --- a/app/Config/Constants.php +++ b/app/Config/Constants.php @@ -92,3 +92,12 @@ define('EVENT_PRIORITY_NORMAL', 100); * @deprecated Use \CodeIgniter\Events\Events::PRIORITY_HIGH instead. */ define('EVENT_PRIORITY_HIGH', 10); + +const MEMBER_STATUS = [ + ['Deleted', 'This signup/invitation expired'], + ['Started', 'Waiting for user to sign up'], + ['Signup', 'Assign task to this user'], + ['Offered','Waiting for the user to start task'], + ['Task', 'Waiting for te user to complete task'], + ['Completed', 'All activities completed'] +]; \ No newline at end of file diff --git a/app/Controllers/PromoAdmin.php b/app/Controllers/PromoAdmin.php index 534c94f..3e6c21d 100644 --- a/app/Controllers/PromoAdmin.php +++ b/app/Controllers/PromoAdmin.php @@ -11,8 +11,9 @@ class PromoAdmin extends BaseController public function __construct() { if(!isset($_SESSION['sessionid'])){ - redirect('/promoadmin'); - exit(); + // redirect('promoadmin','refresh'); + // exit(); + // var_dump($_SESSION?? 'No Session'); } } @@ -76,6 +77,7 @@ class PromoAdmin extends BaseController $data['promo_admin_id'] = $_SESSION['promo_admin_id']; // =$out['promo_admin_id']; $data['admin_uid'] = $_SESSION['uid']; // =$out['promo_admin_id']; $data['loc'] = $this->getIpData(); // =$out['promo_admin_id']; + $data['promo'] = 'MARKET01'; $out=[]; $out = $this->APIcall('POST', $this->wrenchAdminApiServer(). 'assigntask',$data); echo $out['task_result'] ?? 'Unknown Result'; diff --git a/app/Views/admin/index.php b/app/Views/admin/index.php index 31ffb83..1f39440 100644 --- a/app/Views/admin/index.php +++ b/app/Views/admin/index.php @@ -178,10 +178,10 @@ - Initial Task + - + - Initial Task + - +