[Redizajn 1KA] - Urejanje --> Nastavitve --> Kviz - v1

This commit is contained in:
tejagerjovic 2022-01-20 13:13:05 +01:00
parent 41ef5b27db
commit 7cb614d7d4
5 changed files with 1445 additions and 1433 deletions

View File

@ -9444,13 +9444,15 @@ class SurveyAdminSettings {
elseif ($_GET['a'] == 'kviz'){
echo '<fieldset><legend>'.$lang['srv_kviz'].'</legend>';
echo '<label class="strong'.$css_disabled.'"><input type="checkbox" id="advanced_module_quiz" name="quiz" value="1" '. (isset($modules['quiz']) ? ' checked="checked"' : '').$disabled.' onChange="toggleAdvancedModule(\'quiz\');" />';
echo $lang['srv_vrsta_survey_type_6'] . '</label>';
echo '<br/><i class="'.$css_disabled.'">'.$lang['srv_vrsta_survey_note_6_4'].'</i>';
echo '<p class="bottom16">'.$lang['srv_vrsta_survey_note_6_4'].'</p>';
echo '<div class="setting_holder">';
echo '<input type="checkbox" id="advanced_module_quiz" name="quiz" value="1" '. (isset($modules['quiz']) ? ' checked="checked"' : '').$disabled.' onChange="toggleAdvancedModule(\'quiz\');" />';
echo '<label for="advanced_module_quiz">'.$lang['srv_vrsta_survey_note_6_4a'].'</label>';
echo '</div>';
echo '</fieldset>';
echo '<br />';
echo '<div id="globalSettingsInner">';
if(isset($modules['quiz'])){
$sq = new SurveyQuiz($this->anketa);

View File

@ -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>';
}

View File

@ -3099,7 +3099,7 @@ $lang = array (
"srv_vrsta_survey_note_0_4" => "Glasovanje",
"srv_vrsta_survey_note_0_1" => "Vklju&#269;iti &#382;elite: <strong>Glasovanja</strong><br/><br/>",
"srv_vrsta_survey_note_0_2" => "Glasovanje je anketa z enim vpra&#353;anjem, mo&#382;nost vklju&#269;itve v poljubno stran, mo&#382;nost sprotne analize rezultov za respondente, mo&#382;nost registriranega glasovanja, volitev, peticij...<br/>",
"srv_vrsta_survey_note_0_2" => "Glasovanje je anketa z enim vpra&#353;anjem, mo&#382;nost vklju&#269;itve v poljubno stran, mo&#382;nost sprotne analize rezultatov za respondente, mo&#382;nost registriranega glasovanja, volitev, peticij...<br/>",
"srv_vrsta_survey_note_1_1" => "Vklju&#269;iti &#382;elite: <strong>Formo</strong><br/><br/>",
"srv_vrsta_survey_note_1_2" => "Forma je enostavna anketa na eni strani in brez pogojev.<br/>",
@ -3116,10 +3116,9 @@ $lang = array (
"srv_vrsta_survey_note_5_1" => "Vklju&#269;iti &#382;elite: <strong>Vnos vpra&#353;alnikov</strong><br/>",
"srv_vrsta_survey_note_5_2" => "<br/>Možnost hitrega vnosa <b>pisemskih</b> vprašalnikov. <br/> Opcija pride v upoštev pri vnašanju že pridobljenih podatkov preko pisemskih vprašalnikov. Z vklopom tega modula se vam v vprašalniku pojavijo prazna polja za vnos vrednosti odgovorov, zato ta modul <b>ni primeren za spletno anketiranje </b>.",
"srv_vrsta_survey_note_5_3" => "Možnost hitrega vnosa <b>pisemskih</b> vprašalnikov. <br/>Opcija pride v upoštev pri vnašanju že pridobljenih podatkov preko pisemskih vprašalnikov. Z vklopom tega modula se vam v vprašalniku pojavijo prazna polja za vnos vrednosti odgovorov, zato ta modul <b>ni primeren za spletno anketiranje </b>.",
"srv_vrsta_survey_note_6_1" => "Vklju&#269;iti &#382;elite: <strong>Kviz</strong><br/>",
"srv_vrsta_survey_note_6_2" => "<br/>Mo&#382;nost preverjanja rezultatov se&#353;tevanja to&#269;k in obve&#353;&#269;anja o dose&#382;enih rezultatih",
"srv_vrsta_survey_note_6_3" => "Mo&#382;nost preverjanja rezultatov se&#353;tevanja to&#269;k in obve&#353;&#269;anja o dose&#382;enih rezultatih",
"srv_vrsta_survey_note_6_4" => "Mo&#382;nost preverjanja pravilnih odgovorov pri vprašanjih",
"srv_vrsta_survey_note_6_4" => "Modul kviz je namenjen preverjanju pravilnih odgovorov na vprašanja. Avtomatsko preverjanje pravilnih odgovorov je mogoče samo pri vprašanjih tipa 'Kategorije - En odgovor', 'Kategorije - En odgovor - Roleta' in 'Kategorije - Več odgovorov'.",
"srv_vrsta_survey_note_6_4a" => "Vklopi modul 'Kviz'",
"srv_vrsta_survey_note_6_4b" => "V zaključku kviza se respondentu prikažejo rezultati:",
"srv_vrsta_survey_note_7_1" => "Vklju&#269;iti &#382;elite: <strong>Telefonska anketa</strong><br/>",
"srv_vrsta_survey_note_7_2" => "<br/>Podpora izvedbi, nadzoru in opravljanju telefonskega anketiranja",
"srv_vrsta_survey_note_7_3" => "Podpora izvedbi, nadzoru in opravljanju telefonskega anketiranja",
@ -3201,8 +3200,8 @@ $lang = array (
"srv_chat_type_2" => "Aktivacija na vrhu, v glavi ankete",
"srv_chat_turn_on" => "Vklopi klepet",
"srv_chat_question_text" => "Aktivirajte klepet s klikom na gumb",
"srv_quiz_results" => "Prikaz rezultov kviza v zaključku",
"srv_quiz_results_chart" => "Prikaz grafa rezultov kviza v zaključku",
"srv_quiz_results" => "Prikaz rezultatov kviza v zaključku",
"srv_quiz_results_chart" => "Prikaz grafa rezultatov kviza v zaključku",
"srv_quiz_results_chart_correct" => "Pravilni odgovori",
"srv_quiz_results_chart_incorrect" => "Napačni odgovori",
"srv_panel_user_id_name" => "Ime parametra za ID respondenta",

View File

@ -3089,9 +3089,9 @@ $lang = array (
"srv_vrsta_survey_note_5_1" => "You are about to enable: <strong>VnaEntering the questionnaires</strong><br/>",
"srv_vrsta_survey_note_5_2" => "<br/>Entering the questionnaires allows additional options to identify respondents.",
"srv_vrsta_survey_note_5_3" => "<br/>Entering the questionnaires allows additional options to identify respondents.",
"srv_vrsta_survey_note_6_1" => "You are about to enable: <strong>Quiz</strong><br/>",
"srv_vrsta_survey_note_6_2" => "<br/>Test, quiz, exam allows the possibility of verifying the results of aggregation points and notification of results.",
"srv_vrsta_survey_note_6_3" => "<br/>Test, quiz, exam allows the possibility of verifying the results of aggregation points and notification of results.",
"srv_vrsta_survey_note_6_4" => "The quiz module is designed to check the correct answers to the questions. Automatic checking of correct answers is only possible for questions of the type 'Categories - Single answer', 'Categories - Single answer - Dropdown' and 'Categories - Multiple answers'.",
"srv_vrsta_survey_note_6_4a" => "Activate the 'Quiz' module",
"srv_vrsta_survey_note_6_4b" => "At the end of the quiz, the respondent is shown:",
"srv_vrsta_survey_note_7_1" => "You are about to enable: <strong>Telephone survey</strong><br/>",
"srv_vrsta_survey_note_7_2" => "<br/>The 'Telephone survey' option offers support for the implementation and supervision of telephone surveys (CATI).",
"srv_vrsta_survey_note_7_3" => "<br/>The 'Telephone survey' option offers support for the implementation and supervision of telephone surveys (CATI).",

File diff suppressed because it is too large Load Diff