This commit is contained in:
pero1203 2022-01-20 07:45:31 +01:00
commit bdb2fa8249
9 changed files with 1513 additions and 1459 deletions

View File

@ -9601,13 +9601,15 @@ class SurveyAdminSettings {
global $site_path;
echo '<fieldset><legend>'.$lang['srv_vrsta_survey_type_14'].'</legend>';
echo '<label class="strong'.$css_disabled.'"><input type="checkbox" id="advanced_module_chat" name="chat" value="1" '. (isset($modules['chat']) ? ' checked="checked"' : '').$disabled.' onChange="toggleAdvancedModule(\'chat\');" />';
echo $lang['srv_vrsta_survey_type_14'] . '</label>';
echo '<br/><i class="'.$css_disabled.'">'.$lang['srv_vrsta_survey_note_14_1'].'</i>';
echo '<p class="bottom16">'.$lang['srv_vrsta_survey_note_14_1'].'</p>';
echo '<div class="setting_holder">';
echo '<input type="checkbox" id="advanced_module_chat" name="chat" value="1" '. (isset($modules['chat']) ? ' checked="checked"' : '').$disabled.' onChange="toggleAdvancedModule(\'chat\');" />';
echo '<label for="advanced_module_chat">'.$lang['srv_vrsta_survey_note_14_1b'].'</label>';
echo '</div>';
echo '</fieldset>';
echo '<br />';
echo '<div id="globalSettingsInner">';
if(isset($modules['chat'])){
$sc = new SurveyChat($this->anketa);
@ -9619,13 +9621,15 @@ class SurveyAdminSettings {
global $site_path;
echo '<fieldset><legend>'.$lang['srv_vrsta_survey_type_15'].'</legend>';
echo '<label class="strong'.$css_disabled.'"><input type="checkbox" id="advanced_module_panel" name="panel" value="1" '. (isset($modules['panel']) ? ' checked="checked"' : '').$disabled.' onChange="toggleAdvancedModule(\'panel\');" />';
echo $lang['srv_vrsta_survey_type_15'] . '</label>';
echo '<br/><i class="'.$css_disabled.'">'.$lang['srv_vrsta_survey_note_15_1'].'</i>';
echo '<p>'.$lang['srv_vrsta_survey_note_15_1'].'</p>';
echo '<p class="top16 bottom16">'.$lang['srv_vrsta_survey_note_15_1a'].'</p>';
echo '<div class="setting_holder">';
echo '<input type="checkbox" id="advanced_module_panel" name="panel" value="1" '. (isset($modules['panel']) ? ' checked="checked"' : '').$disabled.' onChange="toggleAdvancedModule(\'panel\');" />';
echo '<label for="advanced_module_panel">'.$lang['srv_vrsta_survey_note_15_1b'].'</label>';
echo '</div>';
echo '</fieldset>';
echo '<br />';
echo '<div id="globalSettingsInner">';
if(isset($modules['panel'])){
$sp = new SurveyPanel($this->anketa);

View File

@ -26,6 +26,10 @@ class SurveyChat{
// Nastavitve chat-a (na kateri strani se prikaze...)
public function displaySettings(){
global $lang;
global $site_url;
$preklici_url = ltrim(str_replace("&s=1","",$_SERVER['REQUEST_URI']),"/");
$preklici_url = "'". $site_url . $preklici_url . "'";
$row = SurveyInfo::getInstance()->getSurveyRow();
@ -40,27 +44,44 @@ class SurveyChat{
$row = mysqli_fetch_array($sql);
$code = $row['code'];
}
echo '<span class="nastavitveSpan2" style="vertical-align:top;">'.$lang['srv_chat_code'].':</span>';
echo '<textarea id="chat_code" name="chat_code" rows="5" cold="20">'.$code.'</textarea>';
echo '<br /><br />';
echo '<p class="bottom16">'.$lang['srv_vrsta_survey_note_14_1a'].':</p>';
echo '<div class="setting_holder">';
echo '<p class="bold">'.$lang['srv_chat_code'].':</p>';
echo '<textarea class="wauto" id="chat_code" name="chat_code">'.$code.'</textarea>';
echo '</div>';
// Prikaz vklopa chata
echo '<span class="nastavitveSpan2" >'.$lang['srv_chat_type'].':</span>';
echo '<input type="radio" name="chat_type" id="chat_type_0" value="0" '.(($row['chat_type'] == 0) ? ' checked="checked" ' : '').' /><label for="chat_type_0">'.$lang['srv_chat_type_0'].'</label>';
echo '<input type="radio" name="chat_type" id="chat_type_1" value="1" '.(($row['chat_type'] == 1) ? ' checked="checked" ' : '').' /><label for="chat_type_1">'.$lang['srv_chat_type_1'].'</label>';
echo '<input type="radio" name="chat_type" id="chat_type_2" value="2" '.(($row['chat_type'] == 2) ? ' checked="checked" ' : '').' /><label for="chat_type_2">'.$lang['srv_chat_type_2'].'</label>';
echo '<br /><br />';
echo '<p class="top16 bottom16">'.$lang['srv_vrsta_survey_note_14_1c'].'</p>';
echo '<div class="setting_holder">';
echo '<span class="bold setting_title">'.$lang['srv_chat_type'].':</span>';
echo '<div class="setting_item">';
echo '<input type="radio" name="chat_type" id="chat_type_0" value="0" '.(($row['chat_type'] == 0) ? ' checked="checked" ' : '').' />';
echo '<label for="chat_type_0">'.$lang['srv_chat_type_0'].'</label>';
echo '</div>';
echo '<div class="setting_item">';
echo '<input type="radio" name="chat_type" id="chat_type_1" value="1" '.(($row['chat_type'] == 1) ? ' checked="checked" ' : '').' />';
echo '<label for="chat_type_1">'.$lang['srv_chat_type_1'].'</label>';
echo '</div>';
echo '<div class="setting_item">';
echo '<input type="radio" name="chat_type" id="chat_type_2" value="2" '.(($row['chat_type'] == 2) ? ' checked="checked" ' : '').' />';
echo '<label for="chat_type_2">'.$lang['srv_chat_type_2'].'</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="chat_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="chat_save_settings(); return false;">'.$lang['edit1337'].'</button>';
echo '</div>';
echo '<div id="success_save"></div>';
}

View File

@ -27,7 +27,11 @@ class SurveyPanel{
// Prikazemo nastavitve pri vklopu naprednega modula
public function displaySettings(){
global $lang;
global $lang;
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>';
@ -35,49 +39,51 @@ class SurveyPanel{
$row = $this->getPanelSettings();
// Url za preusmeritev
echo '<span class="nastavitveSpan1" >'.$lang['srv_panel_url'].':</span>';
echo '<input type="text" size="40" name="url" id="url" value="'.$rowA['url'].'" />';
echo '<br /><br />';
echo '<div class="setting_holder">';
echo '<p>'.$lang['srv_panel_url'].':</p>';
echo '<input type="text" class="large w300" name="url" id value="'.$rowA['url'].'" />';
echo '</div>';
// Ime parametra za id respondenta
echo '<span class="nastavitveSpan1" >'.$lang['srv_panel_user_id_name'].':</span>';
echo '<input type="text" name="user_id_name" id="user_id_name" value="'.$row['user_id_name'].'" />';
echo '<br /><br />';
echo '<div class="setting_holder">';
echo '<p>'.$lang['srv_panel_user_id_name'].':</p>';
echo '<input type="text" class="large w300" name="user_id_name" id="user_id_name" value="'.$row['user_id_name'].'" />';
echo '</div>';
// Ime parametra za status
echo '<span class="nastavitveSpan1" >'.$lang['srv_panel_status_name'].':</span>';
echo '<input type="text" name="status_name" id="status_name" value="'.$row['status_name'].'" />';
echo '<br />';
echo '<div class="setting_holder">';
echo '<p" >'.$lang['srv_panel_status_name'].':</p>';
echo '<input type="text" class="large w300" name="status_name" id="status_name" value="'.$row['status_name'].'" />';
echo '</div>';
// Privzeta vrednost status parametra
echo '<span class="nastavitveSpan1" >'.$lang['srv_panel_status_default'].':</span>';
echo '<input type="text" name="status_default" id="status_default" value="'.$row['status_default'].'" />';
echo '<br /><br />';
echo '<div class="setting_holder">';
echo '<p>'.$lang['srv_panel_status_default'].':</p>';
echo '<input type="text" class="large w300" name="status_default" id="status_default" value="'.$row['status_default'].'" />';
echo '</div>';
// Primer zacetnega url-ja
$link = SurveyInfo::getSurveyLink();
echo '<span class="nastavitveSpan1" >'.$lang['srv_panel_url1_example'].':</span>';
echo $link.'?'.$row['user_id_name'].'=RESPONDENT_PANEL_ID';
echo '<br /><br />';
echo '<div class="setting_holder">';
echo '<p>'.$lang['srv_panel_url1_example'].':</p>';
echo '<p class="gray">'.$link.'?'.$row['user_id_name'].'=RESPONDENT_PANEL_ID</p>';
echo '</div>';
// Primer končnega url-ja
echo '<span class="nastavitveSpan1" >'.$lang['srv_panel_url2_example'].':</span>';
echo $rowA['url'].'?'.$row['user_id_name'].'=RESPONDENT_PANEL_ID&'.$row['status_name'].'=PANEL_STATUS';
echo '<div class="setting_holder">';
echo '<p>'.$lang['srv_panel_url2_example'].':</p>';
echo '<p class="gray">'.$rowA['url'].'?'.$row['user_id_name'].'=RESPONDENT_PANEL_ID&'.$row['status_name'].'=PANEL_STATUS</p>';
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="panel_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="panel_save_settings(); return false;">'.$lang['edit1337'].'</button>';
echo '</div>';
echo '<div id="success_save"></div>';
}

View File

@ -3131,8 +3131,13 @@ $lang = array (
"srv_vrsta_survey_note_9_3" => "Prezentacija (slideshow) je namenjena prikazovanju posameznih strani kot predstavitev. Strani se prikazujejo oz. zamenjujejo avtomatično, zaradi tega tudi ni gumbov \"Naprej\", \"Prejšnja stran\", \"Naslednja stran\"... Odgovori respondentov se ne beležijo.",
"srv_vrsta_survey_note_11_1" => "<br/>Modul 360 stopinj omogoča posebno analizo ankete.",
"srv_vrsta_survey_note_12_1" => "<br/>Modul omogoča izpis poročila z analizo 360°, kjer se ocenjuje posameznika znotraj organizacije. Zaposleni (nadrejeni, podrejeni, sodelavci in samoocenjevalec) izpolnijo vprašalnik na osnovi katerega se avtomatsko generira poročilo.<br /><br />Za prilagajanje izpisa poročila ali spremembe vprašalnika kontaktirajte Center za pomoč uporabnikom 1KA na tel. št. 030/702-788.",
"srv_vrsta_survey_note_14_1" => "<br/>Modul omogoča pogovarjanje med respondenti in urednikom ankete preko storitve TAWK. <br /><br />Najprej je potrebno ustvariti uporabniški račun na <a href= \"http:\\www.tawk.to\" target=\"_blank\">www.tawk.to</a>. Po prijavi morate najprej vpisati informacije za ime spletnega mesta: 1KA, nato pa še URL www.1ka.si. Povabite lahko vse anketarje, ki bodo odgovarjali na klepet, nato pa v zadnjem koraku prejmete kodo <b>Widget Code</b>, ki jo morate kopirati in prilepiti na 1KA v spodnje okno <b>TAWK koda</b>.<br /><br />S spodnjimi nastavitvami izberete na kakšen način se prikaže okno za klepet.<br /><br />",
"srv_vrsta_survey_note_15_1" => "<br/>Modul omogoča povezovanje ankete s spletnim panelom (npr. Valicon, GFK...). <a href=\"https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/panel\" target=\"_blank\">Več >></a>",
"srv_vrsta_survey_note_14_1" => "Modul omogoča pogovarjanje med respondenti in urednikom ankete preko storitve TAWK.",
"srv_vrsta_survey_note_14_1b" => "Vklopi modul 'Klepet'",
"srv_vrsta_survey_note_14_1a" => "Najprej je potrebno ustvariti uporabniški račun na <a href= \"http:\\www.tawk.to\" target=\"_blank\">www.tawk.to</a>. Po prijavi morate najprej vpisati informacije za ime spletnega mesta: 1KA, nato pa še URL: www.1ka.si. Povabite lahko vse anketarje, ki bodo odgovarjali na klepet, nato pa v zadnjem koraku prejmete kodo <span class='bold'>Widget Code</span>, ki jo morate kopirati in prilepiti na 1KA v spodnje okno <span class='bold'>Widget koda</span>.",
"srv_vrsta_survey_note_14_1c" => "S spodnjimi nastavitvami izberete, na kakšen način se prikaže okno za klepet v anketi.",
"srv_vrsta_survey_note_15_1" => "Modul omogoča povezovanje ankete s spletnim panelom (npr. Valicon, GFK, ipd.).",
"srv_vrsta_survey_note_15_1a" => "<a href=\"https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/panel\" target=\"_blank\">Več informacij o modulu 'Panel'</a>",
"srv_vrsta_survey_note_15_1b" => "Vklopi modul 'Panel'",
"srv_vrsta_survey_note_16_1" => "<br/>Prikaz grafa (excelleration matrix) po koncu reševanja ankete.",
"srv_vrsta_survey_create" => "Naprej",
"srv_vrsta_survey_with_pages_error" => "Ankete vsebuje pogoje, zato je ne morete spremeniti v preprosto anketo!<br><span class=\"red\">Najprej odstranite vse pogoje.</span>",
@ -3189,20 +3194,20 @@ $lang = array (
"srv_slideshow_sett_pause_button_lbl" => "Prikaz gumba 'Pavza'",
"srv_slideshow_sett_button_opt_0" => "Ne prikaži gumba",
"srv_slideshow_sett_button_opt_1" => "Prikaži gumb",
"srv_chat_code" => "TAWK koda",
"srv_chat_type" => "Prikaz klepet okna",
"srv_chat_code" => "Widget koda",
"srv_chat_type" => "Prikaz okna za klepet",
"srv_chat_type_0" => "Vedno na dnu",
"srv_chat_type_1" => "Aktivacija znotraj besedila vprašanja",
"srv_chat_type_2" => "Aktivacija vedno na vrhu",
"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_chart_correct" => "Pravilni odgovori",
"srv_quiz_results_chart_incorrect" => "Napačni odgovori",
"srv_panel_user_id_name" => "Ime parametra za id respondenta",
"srv_panel_user_id_name" => "Ime parametra za ID respondenta",
"srv_panel_status_name" => "Ime parametra za status",
"srv_panel_status_default" => "Privzeta vrednost status parametra",
"srv_panel_status_default" => "Privzeta vrednost za parameter status",
"srv_panel_url" => "URL po koncu ankete",
"srv_panel_url1_example" => "Primer URL-ja za prihod na anketo",
"srv_panel_url2_example" => "Primer URL-ja za preusmeritev po koncu ankete",

View File

@ -3103,8 +3103,13 @@ $lang = array (
"srv_vrsta_survey_note_9_3" => "The Slideshow function is designed to display each page as a presentation, by which the reposndent's individual responses are not registered.",
"srv_vrsta_survey_note_11_1" => "<br/>Modul 360 degrees allows specific survey analysis.",
"srv_vrsta_survey_note_12_1" => "<br/>Modul omogoča izpis poročila z analizo 360°, kjer se ocenjuje posameznika znotraj organizacije. Zaposleni (nadrejeni, podrejeni, sodelavci in samoocenjevalec) izpolnijo vprašalnik na osnovi katerega se avtomatsko generira poročilo.<br /><br />Za prilagajanje izpisa poročila ali spremembe vprašalnika kontaktirajte Center za pomoč uporabnikom 1KA na tel. št. 030/702-788.",
"srv_vrsta_survey_note_14_1" => "<br/>The module allows conversation between respondents and editor of the survey through the TAWK service.<br /><br />First, you need to create an user account at <a href= \"http:\\www.tawk.to\" target=\"_blank\">www.tawk.to</a>. After signing in, you must first enter the information for the site's name: 1KA, and then the www.1ka.si URL. You can invite all interviewers who will answer to the chat. In the last step you will receive the Widget Code, which you need to copy and paste in the 1KA website, in the text box <b>TAWK widget code</b> below.<br /><br />Use the settings below to select how the chat window appears.<br /><br />",
"srv_vrsta_survey_note_15_1" => "<br/>The module allows connection between survey and web panel (Valicon, GFK...). <a href=\"https://www.1ka.si/d/en/help/user-guide/advanced-modules/panel\" target=\"_blank\">More >></a>",
"srv_vrsta_survey_note_14_1" => "The module allows conversation between respondents and editor of the survey through the TAWK service.",
"srv_vrsta_survey_note_14_1a" => "First, you need to create an user account at <a href= \"http:\\www.tawk.to\" target=\"_blank\">www.tawk.to</a>. After signing in, you must first enter the information for the site's name: 1KA, and then the www.1ka.si URL. You can invite all interviewers who will answer to the chat. In the last step you will receive the <span class='bold'>Widget Code</span>, which you need to copy and paste in the 1KA website, in the text box <span class='bold'>Widget code</span>.",
"srv_vrsta_survey_note_14_1b" => "Activate the 'Chat' module",
"srv_vrsta_survey_note_14_1c" => "Use the settings below to select how the chat window appears.",
"srv_vrsta_survey_note_15_1" => "The module allows connection between survey and web panel (Valicon, GFK, etc.).",
"srv_vrsta_survey_note_15_1a" => "<a href=\"https://www.1ka.si/d/en/help/user-guide/advanced-modules/panel\" target=\"_blank\">More information about the 'Panel' module</a>",
"srv_vrsta_survey_note_15_1b" => "Activate the 'Panel' module",
"srv_vrsta_survey_note_16_1" => "<br/>Show chart (excelleration matrix) at the end of survey.",
"srv_vrsta_survey_create" => "Create",
"srv_vrsta_survey_with_pages_error" => "Survey contains conditions and therefore cannot be changed to survey!<br><span class=\"red\">First, remove all the conditions.</span>",
@ -3161,20 +3166,20 @@ $lang = array (
"srv_slideshow_sett_pause_button_lbl" => "Display 'Pause' opiton",
"srv_slideshow_sett_button_opt_0" => "Don't show button",
"srv_slideshow_sett_button_opt_1" => "Show button",
"srv_chat_code" => "TAWK widget code",
"srv_chat_type" => "Display chat",
"srv_chat_type_0" => "Allways at the bottom",
"srv_chat_code" => "Widget code",
"srv_chat_type" => "Display chat window",
"srv_chat_type_0" => "Always at the bottom",
"srv_chat_type_1" => "Show activation button inside question text",
"srv_chat_type_2" => "Show activation button on top",
"srv_chat_type_2" => "Show activation button on top, in survey header",
"srv_chat_turn_on" => "Start chat",
"srv_chat_question_text" => "Activate chat by clicking a button",
"srv_quiz_results" => "Show quiz results in conclusion",
"srv_quiz_results_chart" => "Show quiz result chart in conclusion",
"srv_quiz_results_chart_correct" => "Incorrect answers",
"srv_quiz_results_chart_incorrect" => "Correct answers",
"srv_panel_user_id_name" => "User id parameter name",
"srv_panel_user_id_name" => "User ID parameter name",
"srv_panel_status_name" => "Status parameter name",
"srv_panel_status_default" => "Status default value",
"srv_panel_status_default" => "Default value for the status parameter",
"srv_panel_url" => "URL after finished survey",
"srv_panel_url1_example" => "URL example for survey start",
"srv_panel_url2_example" => "URL example for redirect after survey is finished",

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@ p,span {
}
.gray {
color: $dark-gray;
color: $very-dark-gray;
}
.italic {

View File

@ -30,6 +30,9 @@ input {
&.w200 {
width: 200px;
}
&.w300 {
width: 300px;
}
&.w400 {
width: 400px;
}

View File

@ -2,6 +2,10 @@ textarea {
width: 307px;
height: 140px;
&.wauto {
width: auto;
}
border: 1px solid $dark-gray;
box-sizing: border-box;
border-radius: 2px;