From 442f7271144a4348ddbc286583067d3f9b39b4fc Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 6 Apr 2017 12:20:30 -0500 Subject: [PATCH] Show answer list on admin view --- main/inc/lib/exercise.lib.php | 51 ++++++++++--------- .../lib/javascript/hotspot/css/hotspot.css | 36 ++++++++----- 2 files changed, 52 insertions(+), 35 deletions(-) diff --git a/main/inc/lib/exercise.lib.php b/main/inc/lib/exercise.lib.php index 8fde820476..84089e7ac2 100644 --- a/main/inc/lib/exercise.lib.php +++ b/main/inc/lib/exercise.lib.php @@ -1148,24 +1148,6 @@ HTML; } $questionName = $objQuestionTmp->selectTitle(); $questionDescription = $objQuestionTmp->selectDescription(); - if ($freeze) { - $relPath = api_get_path(WEB_CODE_PATH); - echo " - -
- "; - return; - } // Get the answers, make a list $objAnswerTmp = new Answer($questionId); @@ -1188,22 +1170,20 @@ HTML; $answerList = '
-
'; + + if ($freeze) { + $relPath = api_get_path(WEB_CODE_PATH); + + echo " +
+
+
+
+
+ $answerList +
+
+ + "; + return; + } } if (!$only_questions) { diff --git a/main/inc/lib/javascript/hotspot/css/hotspot.css b/main/inc/lib/javascript/hotspot/css/hotspot.css index d42b67a800..e6c9ed6619 100644 --- a/main/inc/lib/javascript/hotspot/css/hotspot.css +++ b/main/inc/lib/javascript/hotspot/css/hotspot.css @@ -8,40 +8,52 @@ position: absolute; } -.input-group.hotspot-0 .fa-square { +.input-group.hotspot-0 .fa-square, +.hotspot-color-0.fa.fa-square { color: rgb(66, 113, 181); } -.input-group.hotspot-1 .fa-square { +.input-group.hotspot-1 .fa-square, +.hotspot-color-1.fa.fa-square { color: rgb(254, 142, 22); } -.input-group.hotspot-2 .fa-square { +.input-group.hotspot-2 .fa-square, +.hotspot-color-2.fa.fa-square { color: rgb(69, 199, 240); } -.input-group.hotspot-3 .fa-square { +.input-group.hotspot-3 .fa-square, +.hotspot-color-3.fa.fa-square { color: rgb(188, 214, 49); } -.input-group.hotspot-4 .fa-square { +.input-group.hotspot-4 .fa-square, +.hotspot-color-4.fa.fa-square { color: rgb(214, 49, 115); } -.input-group.hotspot-5 .fa-square { +.input-group.hotspot-5 .fa-square, +.hotspot-color-5.fa.fa-square { color: rgb(215, 215, 215); } -.input-group.hotspot-6 .fa-square { +.input-group.hotspot-6 .fa-square, +.hotspot-color-6.fa.fa-square { color: rgb(144, 175, 221); } -.input-group.hotspot-7 .fa-square { +.input-group.hotspot-7 .fa-square, +.hotspot-color-7.fa.fa-square { color: rgb(175, 134, 64); } -.input-group.hotspot-8 .fa-square { +.input-group.hotspot-8 .fa-square, +.hotspot-color-8.fa.fa-square { color: rgb(79, 146, 66); } -.input-group.hotspot-9 .fa-square { +.input-group.hotspot-9 .fa-square, +.hotspot-color-9.fa.fa-square { color: rgb(244, 235, 36); } -.input-group.hotspot-10 .fa-square { +.input-group.hotspot-10 .fa-square, +.hotspot-color-10.fa.fa-square { color: rgb(237, 32, 36); } -.input-group.hotspot-11 .fa-square { +.input-group.hotspot-11 .fa-square, +.hotspot-color-11.fa.fa-square { color: rgb(59, 59, 59); }