From 744540cac03fbdbc98cad4649aacf9a66ead4b8f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 23 Sep 2023 15:27:21 -0400 Subject: [PATCH] marketing list --- application/controllers/Marketing.php | 18 ++++ application/libraries/Bko_Controller.php | 32 +++++++ application/views/bko/view_bko_header.php | 1 + application/views/bko/view_marketing.php | 108 ++++++++++++++++++++++ 4 files changed, 159 insertions(+) create mode 100644 application/controllers/Marketing.php create mode 100644 application/views/bko/view_marketing.php diff --git a/application/controllers/Marketing.php b/application/controllers/Marketing.php new file mode 100644 index 0000000..5f81144 --- /dev/null +++ b/application/controllers/Marketing.php @@ -0,0 +1,18 @@ +bkoMarketingList(); + + // var_dump( $data ); + $this->load->view('bko/view_bko_header', $data); + $this->load->view('bko/view_marketing', $data); + $this->load->view('bko/view_bko_footer', $data); + } + +//C:\WORKS\PROJECTS\WRB\WrenchBoard\WrenchBackOffice\application\views\bko_pages\blog_items.php +} diff --git a/application/libraries/Bko_Controller.php b/application/libraries/Bko_Controller.php index 6241a48..6ee1e2c 100644 --- a/application/libraries/Bko_Controller.php +++ b/application/libraries/Bko_Controller.php @@ -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 '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' => '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||'
'||loc AS dates,email||'
'||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"); diff --git a/application/views/bko/view_bko_header.php b/application/views/bko/view_bko_header.php index ad2a544..29d041e 100644 --- a/application/views/bko/view_bko_header.php +++ b/application/views/bko/view_bko_header.php @@ -78,6 +78,7 @@
+ Marketing Blog Sign up Locate diff --git a/application/views/bko/view_marketing.php b/application/views/bko/view_marketing.php new file mode 100644 index 0000000..0c62613 --- /dev/null +++ b/application/views/bko/view_marketing.php @@ -0,0 +1,108 @@ +
+ +
+ +
+ + +
+
+ + +
+ +
+
Marketing List
+
+
+ +
+
+
+ +
+
+ +
+
+ + +
+ + + + + +
+
+ + + +
+
+
Result
+
+
+
+ +
+
+
+ +
+ +
+
+ +
+ + + +
+ + + + +
+ + \ No newline at end of file