status just added
This commit is contained in:
@@ -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']
|
||||
];
|
||||
@@ -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';
|
||||
|
||||
@@ -178,10 +178,10 @@
|
||||
<td><?=$item["firstname"]?></td>
|
||||
<td><?=$item["lastname"]?></td>
|
||||
<td>
|
||||
Initial Task
|
||||
<?=MEMBER_STATUS[ $item["status"] ][1]?>
|
||||
</td>
|
||||
<td>
|
||||
<label class="badge badge-success-inverse mb-0"><?=$item["status"]?></label>
|
||||
<label class="badge badge-success-inverse mb-0"><?=MEMBER_STATUS[ $item["status"] ][0]?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
@@ -73,10 +73,10 @@
|
||||
<td><?=$item["firstname"]?></td>
|
||||
<td><?=$item["lastname"]?></td>
|
||||
<td>
|
||||
Initial Task
|
||||
<?=MEMBER_STATUS[ $item["status"] ][1]?>
|
||||
</td>
|
||||
<td>
|
||||
<label class="badge badge-success-inverse mb-0"><?=$item["status"]?></label>
|
||||
<label class="badge badge-success-inverse mb-0"><?=MEMBER_STATUS[ $item["status"] ][0]?></label>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
<button id="action_button" onclick="return viewNewRef('<?=$item["uid"]?>')" type="submit" class="btn btn-primary">View</button>
|
||||
|
||||
Reference in New Issue
Block a user