marketing list
This commit is contained in:
@@ -43,6 +43,38 @@ class Bko_Controller extends WRB_Controller {
|
||||
}
|
||||
// protected
|
||||
|
||||
// marketing_list
|
||||
protected function bkoMarketingList()
|
||||
{
|
||||
$this->load->model('backend_model');
|
||||
$is_live = $this->backend_model->cfgReadChar("system.live");
|
||||
$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";
|
||||
$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');
|
||||
|
||||
$data['marketing_list_table'] = $this->table->generate($query);
|
||||
|
||||
return $data;
|
||||
}
|
||||
protected function bkoDashData() {
|
||||
$this->load->model('backend_model');
|
||||
$is_live = $this->backend_model->cfgReadChar("system.live");
|
||||
|
||||
Reference in New Issue
Block a user