diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index be4b729..4a2d726 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -130,7 +130,7 @@ class Home extends BaseController ################################ */ //list($tplData['mylaps'], $_) = $bestLapsModel->getBests($period, $carCatId, 0, 0); - + /* $tplData['tracks'] = []; $builder = $this->db->table('races'); $builder->select('track_id, COUNT(*) AS count'); @@ -160,8 +160,9 @@ class Home extends BaseController $tplData['tracks'] = $tracks; $tplData['tracksNames'] = $tracksNames; - } + }*/ + /* $tplData['cars'] = []; $builder = $this->db->table('races r'); @@ -174,7 +175,7 @@ class Home extends BaseController $query = $builder->get(); if ($query && $query->getNumRows() > 0) $tplData['cars'] = $query->getResult(); - + */ echo get_header('Home', ['minidt.css']); echo view('main', $tplData); echo get_footer(['minidt.js', 'home_tables.js']); diff --git a/app/Views/main.php b/app/Views/main.php index ded3ed6..b66fc62 100644 --- a/app/Views/main.php +++ b/app/Views/main.php @@ -1,10 +1,8 @@ '; $menuSelect = ''; ?> @@ -73,50 +71,18 @@ Most used Tracks
- - - - - - - - - - - - - - - -
TrackRaces
- track_id, 'track', $tracksNames[$race->track_id]) ?> - - count ?> -
+
+
+
+

Top cars

- - - - - - - - - - - - - - - -
CarRaces
- car_id, 'car', $car->name) ?> - - count ?> -
+
+
+
+