diff --git a/application/controllers/Bkouser.php b/application/controllers/Bkouser.php index ff0b0a8..7ffce12 100644 --- a/application/controllers/Bkouser.php +++ b/application/controllers/Bkouser.php @@ -522,7 +522,7 @@ class Bkouser extends Bko_Controller { $page = is_numeric($page) ? $page : 0; $extra_qr = ''; - var_dump($_POST); + // var_dump($_POST); if ($_POST) { @@ -578,13 +578,25 @@ class Bkouser extends Bko_Controller { $data = array(); $data['page_title'] = 'Site Contacts'; + $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; + $page = is_numeric($page) ? $page : 0; + + $config = $this->PrepPagination(10, 3, '/bkouser/contact'); + + $mysql0 = "SELECT * FROM contacts"; + $q = $this->db->query($mysql0); + $config["total_rows"] = $q->num_rows(); + + $this->load->library('pagination'); + $this->pagination->initialize($config); + $data["pagination_links"] = $this->pagination->create_links(); + + $this->load->library('table'); $this->table->set_template($this->template); - $mysql = "SElECT added::date||'
'||loc||'
'||(CASE WHEN last_login::date IS NULL THEN ' ' ELSE last_login::date::text END) AS Act," - . " username||'
'||firstname||' '||lastname AS Name, " - . " '
' AS select " - . " FROM members ORDER BY id DESC LIMIT 100"; - $mysql = " SELECT created||'
'||email||'
'||member_id||'
' AS sender,your_message FROM contacts ORDER BY id desc"; + + $mysql = " SELECT your_message ||'
Added:'|| created::date||' - From:'||email||' ID-'||member_id AS site_msg , '
' AS acti + FROM contacts ORDER BY id DESC LIMIT " . $config["per_page"] . " OFFSET " . $page; ; $query = $this->db->query($mysql); // $this->table->set_heading('Account', 'Created', 'Action'); diff --git a/application/views/bko/view_bko_contact.php b/application/views/bko/view_bko_contact.php index 2d8e330..91ae8fb 100644 --- a/application/views/bko/view_bko_contact.php +++ b/application/views/bko/view_bko_contact.php @@ -23,6 +23,13 @@ +
+
+ +
+
+ +