From ba1deee754e7dae4391a97fef7074698c333b802 Mon Sep 17 00:00:00 2001 From: franzz Date: Sun, 27 Jan 2019 16:42:15 +0100 Subject: [PATCH] Add project radio buttons --- inc/project.php | 3 +- masks/project.html | 124 +++++++++++++++++++++++++-------------------- style/_fa.scss | 4 +- style/spot.css | 2 +- style/spot.css.map | 4 +- style/spot.scss | 38 +++++++++----- 6 files changed, 101 insertions(+), 74 deletions(-) diff --git a/inc/project.php b/inc/project.php index 7b54431..21a0a56 100644 --- a/inc/project.php +++ b/inc/project.php @@ -85,13 +85,14 @@ class Project extends PhpObject { if($iProjectId > 0) $asInfo['constraint'] = array(Db::getId(self::PROJ_TABLE)=>$iProjectId); $asProjects = $this->oDb->selectRows($asInfo, 'codename'); - foreach($asProjects as &$asProject) { + foreach($asProjects as $sCodeName=>&$asProject) { switch($asProject['mode']) { case 0: $asProject['mode'] = self::MODE_PREVIZ; break; case 1: $asProject['mode'] = self::MODE_BLOG; break; case 2: $asProject['mode'] = self::MODE_HISTO; break; } $asProject['geofile'] = Spot::addTimestampToFilePath(self::GEO_FOLDER.$asProject['geofile']); + $asProject['codename'] = $sCodeName; } return $asProjects; } diff --git a/masks/project.html b/masks/project.html index de415a8..2115031 100755 --- a/masks/project.html +++ b/masks/project.html @@ -1,15 +1,6 @@
-
-
-
-
- -
-
-
Trajet principal
-
Variante
-
Hors rando
-
+
+
@@ -17,6 +8,13 @@
+
+
+
Trajet principal
+
Variante
+
Hors rando
+
+