promot tools
This commit is contained in:
@@ -51,22 +51,13 @@ class Bko_Controller extends WRB_Controller {
|
||||
$data = array();
|
||||
$this->load->library('table');
|
||||
$this->table->set_template($this->template);
|
||||
// $mysql = "SELECT '<b>ADDED:</b>'||added::date||'<br><b>EXPIRE:</b>'||expire::date||'<br>'||username||'<br><b>Name:</b>'||firstname||' '||lastname AS signup, country,"
|
||||
// . " (CASE WHEN status=1 THEN '<div id=\"btu'||id||'\"><button id=\"acc'||id||'\" class=\"btn btn-info btn-xs\" onclick=\"return resendLink('''||id||''');\" >Resend</button></div>' ELSE ' ' END) AS action ,"
|
||||
// . " (CASE WHEN status=1 THEN '<div id=\"dtu'||id||'\"><button id=\"del'||id||'\" class=\"btn btn-warning btn-xs\" onclick=\"return deleteLink('''||id||''');\" >Del</button></div>' 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' => '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);
|
||||
|
||||
$this->table->set_template($this->template);
|
||||
//$mysql = "SElECT added::date||'<br>'||loc AS dates,email||'<br>'||firstname||' '||lastname AS Name FROM members ORDER BY id DESC LIMIT 7";
|
||||
|
||||
$mysql = "SELECT email, lastname, firstname, status, added::date, updated FROM marketing_list";
|
||||
$mysql = "SELECT email, lastname, firstname, status, added::date, updated,
|
||||
'<div id=\"btu'||id||'\"><button id=\"acc'||uid||'\" class=\"btn btn-info btn-xs\" onclick=\"return resendLink('''||uid||''');\" >Resend</button></div>' AS SendInfo
|
||||
FROM marketing_list";
|
||||
$query = $this->db->query($mysql);
|
||||
// $this->table->set_heading('Account', 'Created', 'Action');
|
||||
// $this->table->set_heading(array('data' => 'Date/LOC', 'style' => 'width:140px'), 'Email/Name');
|
||||
|
||||
Reference in New Issue
Block a user