From 6a221ab1b4344a5a58057555b7a93ce86788bbd6 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sat, 19 Mar 2022 13:48:18 -0400 Subject: [PATCH] Added country to pending signup --- application/controllers/Tokens.php | 10 ++++++++++ application/libraries/Bko_Controller.php | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 application/controllers/Tokens.php diff --git a/application/controllers/Tokens.php b/application/controllers/Tokens.php new file mode 100644 index 0000000..fb71e0f --- /dev/null +++ b/application/controllers/Tokens.php @@ -0,0 +1,10 @@ +load->library('table'); $this->table->set_template($this->template); - $mysql = "SELECT 'ADDED:'||added::date||'
EXPIRE:'||expire::date||'
'||username||'
Name:'||firstname||' '||lastname AS signup," + $mysql = "SELECT 'ADDED:'||added::date||'
EXPIRE:'||expire::date||'
'||username||'
Name:'||firstname||' '||lastname AS signup, country," . " (CASE WHEN status=1 THEN '
' ELSE ' ' END) AS action ," . " (CASE WHEN status=1 THEN '
' ELSE ' ' END) AS Del " . " FROM members_pending WHERE expire> now() AND status = 1" . " ORDER BY id desc limit 5"; $query = $this->db->query($mysql); // $this->table->set_heading('Dates', 'Username', 'Name', 'Action'); - $this->table->set_heading(array('data' => 'Date/Email/Name', 'style' => 'width:180px'), array('data' => 'RES', 'style' => 'width:20px; cellpadding:0px;'), array('data' => 'Del', 'style' => 'width:20px; cellpadding:0px;')); + $this->table->set_heading(array('data' => 'Date/Email/Name', 'style' => 'width:180px'),array('data' => 'Country', 'style' => 'width:20px; cellpadding:0px;'), + array('data' => 'RES', 'style' => 'width:20px; cellpadding:0px;'), array('data' => 'Del', 'style' => 'width:20px; cellpadding:0px;')); $data['pending_dash_table'] = $this->table->generate($query);