diff --git a/app/Controllers/Request.php b/app/Controllers/Request.php index fcac122..0049af7 100644 --- a/app/Controllers/Request.php +++ b/app/Controllers/Request.php @@ -6,7 +6,17 @@ class Request extends BaseController { use ResponseTrait; public function index() { - + $db = db_connect(); + $date1 = $this->request->getGet('date1'); + $date2 = $this->request->getGet('date2'); + + $db = \Config\Database::connect(); + $sql = "SELECT * from GDC_CMOD.dbo.V_DASHBOARD_DEV where + COLLECTIONDATE between '$date1 00:00' and '$date2 23:59' + and ODR_DDATE between '$date1 00:00' and '$date2 23:59'"; + $rows = $db->query($sql)->getResultArray(); + $data['data'] = $rows; + return $this->response->setJSON($data); } diff --git a/app/Views/v2/index.php b/app/Views/v2/index.php index 07a42a7..c8efe86 100644 --- a/app/Views/v2/index.php +++ b/app/Views/v2/index.php @@ -1,302 +1,43 @@ - - - DaisyUI Static 5-Page App - - - - - + + + CMOD + + + + - - -
- - - - - -
-
- - - - - -
- - - -
-

Welcome to the Dashboard (Page 1)

-

This is the landing page structure. The tabs above are static visual elements without JavaScript functionality.

-
-
-
-
Total Users
-
89,400
-
21% more than last month
-
-
-
-
-
New Tasks
-
4,200
-
25% more than yesterday
-
-
-
-
-
Revenue
-
$1,200k
-
8% YoY growth
-
-
-
-
- -
Static Page Separator
- - -
-

Operational Data Table (Static Content)

- - -
- -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Client NameProjectStatusProgressAction
101Alpha CorpWebsite Redesign
Completed
100%
102Beta LabsAPI Integration
In Progress
65%
103Gamma SystemsMobile App Launch
Pending
10%
104Delta GroupCloud Migration
Completed
100%
105Epsilon TechSecurity Audit
Stuck
30%
-
-
- -
Static Page Separator
- - -
-

Advanced Analytics (Page 3)

-

Visualize key metrics and trends over time.

-
- - This is a static placeholder for the Analytics content. -
-
- [ Placeholder for Chart Visualization ] -
-
- -
Static Page Separator
- - -
-

User Settings (Page 4)

-

Manage your account preferences and application configuration.

- -
- - - - - -
- -
- -
Static Page Separator
- - -
-

Help & Support (Page 5)

-

Find answers to frequently asked questions or submit a support ticket.

- - -
-
- -
- How do I reset my password? -
-
-

Click the 'Profile' option in the top right dropdown menu, then navigate to 'Security' and follow the 'Forgot Password' instructions.

-
-
-
- -
- Can I export the data table? -
-
-

Currently, the data is only viewable on this page. Export functionality is planned for the next update!

-
-
-
- -
-
- -
-
- - - -
+ +
+

Dashboard

+

This is the main content area.

+
\ No newline at end of file