summaryrefslogtreecommitdiffstats
path: root/admin/survey/modules/mod_quiz/class.SurveyQuiz.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/survey/modules/mod_quiz/class.SurveyQuiz.php')
-rw-r--r--admin/survey/modules/mod_quiz/class.SurveyQuiz.php67
1 files changed, 39 insertions, 28 deletions
diff --git a/admin/survey/modules/mod_quiz/class.SurveyQuiz.php b/admin/survey/modules/mod_quiz/class.SurveyQuiz.php
index bb28d76..12e014d 100644
--- a/admin/survey/modules/mod_quiz/class.SurveyQuiz.php
+++ b/admin/survey/modules/mod_quiz/class.SurveyQuiz.php
@@ -25,45 +25,56 @@ class SurveyQuiz{
// Nastavitve kviza (prikaz rezultatov, grafa...)
public function displaySettings(){
global $lang;
-
-
- // Posebne opcije in navodile za anketo kviz
- /*echo '<fieldset><legend>'.$lang['srv_kviz_navodila_1'].'</legend>';
- echo '<p>'.$lang['srv_kviz_navodila_2'].'</p>';
- echo '<p>'.$lang['srv_kviz_navodila_3'].'</p>';
- echo '<p>'.$lang['srv_kviz_navodila_4'].'</p>';
- echo '<p>'.$lang['srv_kviz_navodila_6'].' '.Help::display('DataPiping').'</p>';
- echo '<p>'.$lang['srv_kviz_navodila_7'].'</p>';
- echo '</fieldset>';*/
+ global $site_url;
+
+ $preklici_url = ltrim(str_replace("&s=1","",$_SERVER['REQUEST_URI']),"/");
+ $preklici_url = "'". $site_url . $preklici_url . "'";
-
+
echo '<fieldset><legend>'.$lang['settings'].'</legend>';
// Pridobimo trenutne nastavitve
- $settings = $this->getSettings();
-
+ $settings = $this->getSettings();
+
// Prikaz rezultatov v zakljucku
- echo '<span class="nastavitveSpan1" >'.$lang['srv_quiz_results'].':</span>';
- echo '<label for="quiz_results_0"><input type="radio" name="quiz_results" id="quiz_results_0" value="0" '.(($settings['results'] == 0) ? ' checked="checked" ' : '').' />'.$lang['no1'].'</label>';
- echo '<label for="quiz_results_1"><input type="radio" name="quiz_results" id="quiz_results_1" value="1" '.(($settings['results'] == 1) ? ' checked="checked" ' : '').' />'.$lang['yes'].'</label>';
-
- echo '<br />';
+
+ echo '<div class="setting_holder">';
+ echo '<span class="setting_title">'.$lang['srv_quiz_results'].':</span>';
+
+ echo '<div class="setting_item">';
+ echo '<input type="radio" name="quiz_results" id="quiz_results_0" value="0" '.(($settings['results'] == 0) ? ' checked="checked" ' : '').' />';
+ echo '<label for="quiz_results_0">'.$lang['no1'].'</label>';
+ echo '</div>';
+ echo '<div class="setting_item">';
+ echo '<input type="radio" name="quiz_results" id="quiz_results_1" value="1" '.(($settings['results'] == 1) ? ' checked="checked" ' : '').' />';
+ echo '<label for="quiz_results_1">'.$lang['yes'].'</label>';
+ echo '</div>';
+
+ echo '</div>';
// Prikaz grafa rezultatov v zakljucku
- echo '<span class="nastavitveSpan1" >'.$lang['srv_quiz_results_chart'].':</span>';
- echo '<label for="quiz_results_chart_0"><input type="radio" name="quiz_results_chart" id="quiz_results_chart_0" value="0" '.(($settings['results_chart'] == 0) ? ' checked="checked" ' : '').' />'.$lang['no1'].'</label>';
- echo '<label for="quiz_results_chart_1"><input type="radio" name="quiz_results_chart" id="quiz_results_chart_1" value="1" '.(($settings['results_chart'] == 1) ? ' checked="checked" ' : '').' />'.$lang['yes'].'</label>';
-
- echo '<br /><br />';
+ echo '<div class="setting_holder">';
+ echo '<span class="setting_title">'.$lang['srv_quiz_results_chart'].':</span>';
+
+ echo '<div class="setting_item">';
+ echo '<input type="radio" name="quiz_results_chart" id="quiz_results_chart_0" value="0" '.(($settings['results_chart'] == 0) ? ' checked="checked" ' : '').' />';
+ echo '<label for="quiz_results_chart_0">'.$lang['no1'].'</label>';
+ echo '</div>';
+ echo '<div class="setting_item">';
+ echo '<input type="radio" name="quiz_results_chart" id="quiz_results_chart_1" value="1" '.(($settings['results_chart'] == 1) ? ' checked="checked" ' : '').' />';
+ echo '<label for="quiz_results_chart_1">'.$lang['yes'].'</label>';
+ echo '</div>';
+
+ echo '</div>';
echo '</fieldset>';
-
// Gumb shrani
- echo '<br class="clr" />';
- echo '<span class="floatLeft spaceRight"><div class="buttonwrapper"><a class="ovalbutton ovalbutton_orange btn_savesettings" href="#" onclick="quiz_save_settings(); return false;"><span>';
- echo $lang['edit1337'] . '</span></a></div></span>';
- echo '<div class="clr"></div>';
+ echo '<div class="button_holder">';
+ echo '<button class="medium white-blue" onClick="window.location='.$preklici_url.'; return false;">'.$lang['edit1338'].'</button>';
+ echo '<button class="medium blue" onclick="quiz_save_settings(); return false;">'.$lang['edit1337'].'</button>';
+ echo '</div>';
+
echo '<div id="success_save"></div>';
}