From 72e5cc515840aaeb5560fa6d9ab481ba416d516f Mon Sep 17 00:00:00 2001 From: "DESKTOP-BC3NEC6\\chiefsoft" Date: Sun, 22 Jan 2023 17:43:16 -0500 Subject: [PATCH] clean up --- app/Config/Database.php | 21 ++ app/Controllers/Dash.php | 6 + app/Controllers/Home.php | 2 +- app/Views/bko/contacts.php | 269 ++---------------------- app/Views/bko/faq.php | 387 +++++++++++++++++++++++++++++++++++ app/Views/layouts/master.php | 8 +- 6 files changed, 439 insertions(+), 254 deletions(-) create mode 100644 app/Views/bko/faq.php diff --git a/app/Config/Database.php b/app/Config/Database.php index 87d73b1..b6b27c1 100644 --- a/app/Config/Database.php +++ b/app/Config/Database.php @@ -77,6 +77,27 @@ class Database extends Config 'foreignKeys' => true, ]; + public $mermsemr_site = [ + 'DSN' => '', + 'hostname' => '10.10.33.60', + 'username' => 'mermsemr', + 'password' => 'may12002', + 'database' => 'site_mermsemr_com', + 'DBDriver' => 'MySQLi', + 'DBPrefix' => '', + 'pConnect' => false, + 'DBDebug' => (ENVIRONMENT !== 'production'), + 'charset' => 'utf8', + 'DBCollat' => 'utf8_general_ci', + 'swapPre' => '', + 'encrypt' => false, + 'compress' => false, + 'strictOn' => false, + 'failover' => [], + 'port' => 3306, + ]; + + public function __construct() { parent::__construct(); diff --git a/app/Controllers/Dash.php b/app/Controllers/Dash.php index 2518dff..78d11a1 100644 --- a/app/Controllers/Dash.php +++ b/app/Controllers/Dash.php @@ -11,6 +11,12 @@ class Dash extends BaseUsersController } public function contacts(){ + + $db = \Config\Database::connect('mermsemr_site'); + $query = $db->query( + 'SELECT * FROM myfit_contact ORDER BY id DESC LIMIT 10' + ); + $data['contact_data'] = $query->getResultArray();; $data['page_title'] ='Contacts'; return view('bko/contacts',$data); } diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index a05ea9c..f55c04d 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -40,7 +40,7 @@ class Home extends BaseController $loginComplete = false; $out['error'] = 'All parameters required'; } - if ($username == 'ameye@chiefsoft.com' && $password == 'may12002') { + if ($username == 'support@chiefsoft.com' && $password == '12345678') { $loginComplete = true; $out['username'] = 'ameye@chiefsoft.com'; $out['firstname'] = 'Olusesan'; diff --git a/app/Views/bko/contacts.php b/app/Views/bko/contacts.php index 7c0b54d..403fd4c 100644 --- a/app/Views/bko/contacts.php +++ b/app/Views/bko/contacts.php @@ -13,16 +13,21 @@

- Visits by Country - 20 countries share 97% visits + Contacts from the website + 10 last entries shown

- -
+ + +
@@ -31,10 +36,11 @@
- United States + : : - Direct link clicks + +
@@ -43,257 +49,22 @@
- 9,763 + - - -
- - - - - - - - - - 2.6 % - -
- + +
+
- -
- -
- - - - -
- - Brasil - - - All Social Channels - -
- -
- - -
- - 4,062 - - -
- - - - - - - - - - 0.4 % - -
- -
- -
- - -
- - -
- -
- - - - -
- - Turkey - - - Mailchimp Campaigns - -
- -
- - -
- - 1,680 - - -
- - - - - - - - - - 0.2 % - -
- -
- -
- - -
- - -
- -
- - - - -
- - France - - - Impact Radius visits - -
- -
- - -
- - 849 - - -
- - - - - - - - - - 4.1 % - -
- -
- -
- - -
- - -
- -
- - - - -
- - India - - - Many Sources - -
- -
- - -
- - 604 - - -
- - - - - - - - - - 8.3 % - -
- -
- -
- - -
- - -
- -
- - - - -
- - Sweden - - - Social Network - -
- -
- - -
- - 237 - - -
- - - - - - - - - - 1.9 % - -
- -
- -
- + +
diff --git a/app/Views/bko/faq.php b/app/Views/bko/faq.php new file mode 100644 index 0000000..139983e --- /dev/null +++ b/app/Views/bko/faq.php @@ -0,0 +1,387 @@ +extend('layouts/master') ?> +section('content') ?> + + +
+ +
+ +
+ +
+ +
+ +

+ Contacts from the website + 10 last entries shown +

+ +
+ + +
+ + +
+ +
+ + + + +
+ + : : + + + + + +
+ +
+ + +
+ + - + + +
+ + + + + + + + + + 2.6 % + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ + +
+ +
+ +
+ +

+ Social Network Visits + 8k social visitors +

+ +
+ + +
+ +
+ +
+ + + + +
+ + Dribbble + + + Community + +
+ +
+ + +
+ + 579 + + +
+ + + + + + + + + + 2.6 % + +
+ +
+ +
+ + +
+ + +
+ +
+ + + + +
+ + Linked In + + + Social Media + +
+ +
+ + +
+ + 2,588 + + +
+ + + + + + + + + + 0.4 % + +
+ +
+ +
+ + +
+ + +
+ +
+ + + + +
+ + Slack + + + Messanger + +
+ +
+ + +
+ + 794 + + +
+ + + + + + + + + + 0.2 % + +
+ +
+ +
+ + +
+ + +
+ +
+ + + + +
+ + YouTube + + + Video Channel + +
+ +
+ + +
+ + 1,578 + + +
+ + + + + + + + + + 4.1 % + +
+ +
+ +
+ + +
+ + +
+ +
+ + + + +
+ + Instagram + + + Social Network + +
+ +
+ + +
+ + 3,458 + + +
+ + + + + + + + + + 8.3 % + +
+ +
+ +
+ + +
+ + +
+ +
+ + + + +
+ + Facebook + + + Social Network + +
+ +
+ + +
+ + 2,047 + + +
+ + + + + + + + + + 1.9 % + +
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +endSection() ?> diff --git a/app/Views/layouts/master.php b/app/Views/layouts/master.php index 412424f..589dff4 100644 --- a/app/Views/layouts/master.php +++ b/app/Views/layouts/master.php @@ -88,7 +88,7 @@ - Ready Menu 1 + FAQ
@@ -114,7 +114,7 @@ - Menu Level 2 + Contents