-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
32 lines (23 loc) · 1.04 KB
/
dashboard.php
File metadata and controls
32 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// NrgHomeVis - Energievisualisierung für zu Hause | Repository: <https://github.com/SvenoF54/home-energy-visualizer>
// Licensed under the GNU GPL v3.0 - see <https://www.gnu.org/licenses/gpl-3.0.en.html>
include_once("lib/appLibLoader.php");
// Defaults
$baseConfig = Configuration::getInstance();
$actualConfig = Configuration::getInstance()->dashboardPage();;
$dashboardsServce = new DashboardService();
$initialDashboardData = $dashboardsServce->prepareInitialDashboardData();
$overviewPageService = new OverviewPageService();
$overviewPageService->calculateYearData($overviewPageService->getFirstYear(), $overviewPageService->getLastYear());
$errorMsg = "";
// configure VIEW
$pageTitle = "Dashboard";
$jsHeaderFiles = ["/js/utils.js"];
$jsFooterFiles = ["/js/dashboard/documentReady.js"];
$cssFiles = ["/css/dashboardPage.css"];
$jsVars = [
"staticData" => $dashboardsServce->getStaticDataAsJson(),
"config" => $actualConfig->toJson()
];
$partialTop = "views/pages/dashboard/top-area.phtml";
include("views/partials/layout.phtml");