From 7ebeb325d8b3ea1b7dd3023800e420cf621b755a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 17 Nov 2024 07:11:24 -0500 Subject: [PATCH] Used template --- app/Controllers/Auth.php | 20 +- app/Views/admin/index.php | 802 ++++++++++++-------------------- app/Views/layouts/adminpage.php | 222 +++++++++ 3 files changed, 528 insertions(+), 516 deletions(-) create mode 100644 app/Views/layouts/adminpage.php diff --git a/app/Controllers/Auth.php b/app/Controllers/Auth.php index cb5db42..8e411d5 100644 --- a/app/Controllers/Auth.php +++ b/app/Controllers/Auth.php @@ -18,10 +18,14 @@ class Auth extends BaseController public function AuthPromoLogin(){ $raw_json = file_get_contents('php://input'); - $in = $_POST; ///json_decode($raw_json, true); + $data = $_POST; ///json_decode($raw_json, true); $out=[]; - $out = $this->APIcall('POST', $this->wrenchAdminApiServer(). 'auth',$in); + // $data['username'] = $_GET['username']; // strtolower($this->input->get('email')); // '08174596144'; + // $data['password'] = $_GET['password']; // $this->input->get('firstname'); //'7978'; + + $out = $this->APIcall('POST', $this->wrenchAdminApiServer(). 'auth',$data); + // var_dump( $out ); if (is_array($out) && isset($out['sessionid']) && isset($out['promo_admin_id'])){ session_status(); $_SESSION['firstname'] = $out['firstname']; @@ -29,18 +33,18 @@ class Auth extends BaseController $_SESSION['email'] = $out['email']; $_SESSION['promo_admin_id'] =$out['promo_admin_id']; $_SESSION['sessionid'] = $out['sessionid']; - + return view('admin/index', $out); } return view('promo_admin_home', $out); } - public function AuthPromoDash(){ - $out=[]; - //exit(); - return view('admin/index', $out); - } +// public function AuthPromoDash(){ +// $out=[]; +// //exit(); +// return view('admin/index', $out); +// } public function addRefMember(){ echo "Ameye Olu Test "; diff --git a/app/Views/admin/index.php b/app/Views/admin/index.php index 0833424..73185cf 100644 --- a/app/Views/admin/index.php +++ b/app/Views/admin/index.php @@ -1,520 +1,306 @@ - - +extend('layouts/adminpage') ?> - - Mentor - Bootstrap 4 Admin Dashboard Template - - - - - - - - - - - - - - - - - -
- -
- -
-
-
- loader -
-
-
- - -
- - - -
- - -
- -
+
+
+ + + + + + + + + + + + + + + + + + + + - - - - + +
No.EmailFirstnameLastnameActionStatus
#00001 +

james@bond.com

+
FirstnameLastname + Initial Task + + +
+
+
- - - - -
- -
- -
-
- -
-
-

My Promotions Dash

-
-
- -
-
- -
-
- - -
-
-
-
-

Activity Stats

-
-
-
-
-
-
-
-

45%

- Job Seekers -
-
-

55%

- Job Providers -
-
-
-
-
-
-
-
-
-
-

45.8k

- Pending Users -
-
- -
-
-
-
-
-
-

65.4k

- New Users -
-
- -
-
-
-
-
-
-

78.2k

- Deleted Users -
-
- -
-
-
-
-
-
-

65.3k

- Active Users -
-
- -
-
-
-
-
-
-
- -
-

Add New

-
-
-
-
- - - -
-
- - -
-
- - -
-
- - -
-
-
-
-
- -
-
-
-
-
-
-

Recent Contacts

-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - -
No.EmailFirstnameLastnameActionStatus
#00001 -

james@bond.com

-
FirstnameLastname - Initial Task - - -
-
-
-
-
-
-
-
-
-

Recent Actions

-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- user-7 -
-
-

Senior front-end developer - Montreal, Canada

-
-

Over 1 month ago - Full–time

-
- 45 Days left -
-
- user-7 -
-
-

Sales associate - London, UK

-
-

Over 2 month ago - Part–time

-
- 80 Days left -
-
- user-7 -
-
-

Product designer - Delhi, India

-
-

Over 6 month ago - Part–time

-
- 50 Days left -
-
- user-7 -
-
-

Python engineer - Tokyo, Japan

-
-

Over 10 month ago - Full–time

-
- 20 Days left -
-
- user-7 -
-
-

Account executive - Menlo Park, CA

-
-

Over 4 month ago - Casual

-
- 10 Days left -
-
-
-
-
- -
- -
-
- +
+
+
+
+

Recent Actions

+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ user-7 +
+
+

Senior front-end developer + Montreal, Canada

+
+

Over 1 month ago + Full–time

+
+ 45 Days left +
+
+ user-7 +
+
+

Sales associate + London, UK

+
+

Over 2 month ago + Part–time

+
+ 80 Days left +
+
+ user-7 +
+
+

Product designer + Delhi, India

+
+

Over 6 month ago + Part–time

+
+ 50 Days left +
+
+ user-7 +
+
+

Python engineer + Tokyo, Japan

+
+

Over 10 month ago + Full–time

+
+ 20 Days left +
+
+ user-7 +
+
+

Account executive + Menlo Park, CA

+
+

Over 4 month ago + Casual

+
+ 10 Days left +
+
+
+
+
+
- - -
-
-
-

© Copyright 2024. All rights reserved.

-
- - - -
-
- +
- +
- - - - + +endSection() ?> - - - - - - - - - diff --git a/app/Views/layouts/adminpage.php b/app/Views/layouts/adminpage.php new file mode 100644 index 0000000..5dad5e0 --- /dev/null +++ b/app/Views/layouts/adminpage.php @@ -0,0 +1,222 @@ + + + + + Promotion - Administration + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+ loader +
+
+
+ + +
+ + + +
+ + +
+ + + + renderSection('content') ?> + +
+ + +
+
+
+

© Copyright 2024. All rights reserved.

+
+ + + +
+
+ +
+ +
+ + + + + + + + + + + + + + +