[Redizajn 1KA] - Urejanje --> Nastavitve --> Klepet - v1
This commit is contained in:
parent
116c6bd3f3
commit
1f569eb92a
@ -9601,13 +9601,15 @@ class SurveyAdminSettings {
|
|||||||
global $site_path;
|
global $site_path;
|
||||||
|
|
||||||
echo '<fieldset><legend>'.$lang['srv_vrsta_survey_type_14'].'</legend>';
|
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 '<p class="bottom16">'.$lang['srv_vrsta_survey_note_14_1'].'</p>';
|
||||||
echo '<br/><i class="'.$css_disabled.'">'.$lang['srv_vrsta_survey_note_14_1'].'</i>';
|
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 '</fieldset>';
|
||||||
|
|
||||||
echo '<br />';
|
|
||||||
|
|
||||||
echo '<div id="globalSettingsInner">';
|
echo '<div id="globalSettingsInner">';
|
||||||
if(isset($modules['chat'])){
|
if(isset($modules['chat'])){
|
||||||
$sc = new SurveyChat($this->anketa);
|
$sc = new SurveyChat($this->anketa);
|
||||||
|
@ -26,6 +26,10 @@ class SurveyChat{
|
|||||||
// Nastavitve chat-a (na kateri strani se prikaze...)
|
// Nastavitve chat-a (na kateri strani se prikaze...)
|
||||||
public function displaySettings(){
|
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 . "'";
|
||||||
|
|
||||||
$row = SurveyInfo::getInstance()->getSurveyRow();
|
$row = SurveyInfo::getInstance()->getSurveyRow();
|
||||||
|
|
||||||
@ -40,27 +44,44 @@ class SurveyChat{
|
|||||||
$row = mysqli_fetch_array($sql);
|
$row = mysqli_fetch_array($sql);
|
||||||
$code = $row['code'];
|
$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 '<p class="bottom16">'.$lang['srv_vrsta_survey_note_14_1a'].':</p>';
|
||||||
|
|
||||||
echo '<br /><br />';
|
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
|
// Prikaz vklopa chata
|
||||||
echo '<span class="nastavitveSpan2" >'.$lang['srv_chat_type'].':</span>';
|
echo '<p class="top16 bottom16">'.$lang['srv_vrsta_survey_note_14_1c'].'</p>';
|
||||||
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 '<div class="setting_holder">';
|
||||||
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 '<span class="bold setting_title">'.$lang['srv_chat_type'].':</span>';
|
||||||
|
|
||||||
echo '<br /><br />';
|
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>';
|
echo '</fieldset>';
|
||||||
|
|
||||||
|
|
||||||
// Gumb shrani
|
// Gumb shrani
|
||||||
echo '<br class="clr" />';
|
echo '<div class="button_holder">';
|
||||||
echo '<span class="floatLeft spaceRight"><div class="buttonwrapper"><a class="ovalbutton ovalbutton_orange btn_savesettings" href="#" onclick="chat_save_settings(); return false;"><span>';
|
echo '<button class="medium white-blue" onClick="window.location='.$preklici_url.'; return false;">'.$lang['edit1338'].'</button>';
|
||||||
echo $lang['edit1337'] . '</span></a></div></span>';
|
echo '<button class="medium blue" onclick="chat_save_settings(); return false;">'.$lang['edit1337'].'</button>';
|
||||||
echo '<div class="clr"></div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div id="success_save"></div>';
|
echo '<div id="success_save"></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
11
lang/1.php
11
lang/1.php
@ -3131,7 +3131,10 @@ $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_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_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_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_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_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_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_15_1b" => "Vklopi modul 'Panel'",
|
||||||
@ -3191,11 +3194,11 @@ $lang = array (
|
|||||||
"srv_slideshow_sett_pause_button_lbl" => "Prikaz gumba 'Pavza'",
|
"srv_slideshow_sett_pause_button_lbl" => "Prikaz gumba 'Pavza'",
|
||||||
"srv_slideshow_sett_button_opt_0" => "Ne prikaži gumba",
|
"srv_slideshow_sett_button_opt_0" => "Ne prikaži gumba",
|
||||||
"srv_slideshow_sett_button_opt_1" => "Prikaži gumb",
|
"srv_slideshow_sett_button_opt_1" => "Prikaži gumb",
|
||||||
"srv_chat_code" => "TAWK koda",
|
"srv_chat_code" => "Widget koda",
|
||||||
"srv_chat_type" => "Prikaz klepet okna",
|
"srv_chat_type" => "Prikaz okna za klepet",
|
||||||
"srv_chat_type_0" => "Vedno na dnu",
|
"srv_chat_type_0" => "Vedno na dnu",
|
||||||
"srv_chat_type_1" => "Aktivacija znotraj besedila vprašanja",
|
"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_turn_on" => "Vklopi klepet",
|
||||||
"srv_chat_question_text" => "Aktivirajte klepet s klikom na gumb",
|
"srv_chat_question_text" => "Aktivirajte klepet s klikom na gumb",
|
||||||
"srv_quiz_results" => "Prikaz rezultov kviza v zaključku",
|
"srv_quiz_results" => "Prikaz rezultov kviza v zaključku",
|
||||||
|
13
lang/2.php
13
lang/2.php
@ -3103,7 +3103,10 @@ $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_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_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_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_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_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_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_15_1b" => "Activate the 'Panel' module",
|
||||||
@ -3163,11 +3166,11 @@ $lang = array (
|
|||||||
"srv_slideshow_sett_pause_button_lbl" => "Display 'Pause' opiton",
|
"srv_slideshow_sett_pause_button_lbl" => "Display 'Pause' opiton",
|
||||||
"srv_slideshow_sett_button_opt_0" => "Don't show button",
|
"srv_slideshow_sett_button_opt_0" => "Don't show button",
|
||||||
"srv_slideshow_sett_button_opt_1" => "Show button",
|
"srv_slideshow_sett_button_opt_1" => "Show button",
|
||||||
"srv_chat_code" => "TAWK widget code",
|
"srv_chat_code" => "Widget code",
|
||||||
"srv_chat_type" => "Display chat",
|
"srv_chat_type" => "Display chat window",
|
||||||
"srv_chat_type_0" => "Allways at the bottom",
|
"srv_chat_type_0" => "Always at the bottom",
|
||||||
"srv_chat_type_1" => "Show activation button inside question text",
|
"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_turn_on" => "Start chat",
|
||||||
"srv_chat_question_text" => "Activate chat by clicking a button",
|
"srv_chat_question_text" => "Activate chat by clicking a button",
|
||||||
"srv_quiz_results" => "Show quiz results in conclusion",
|
"srv_quiz_results" => "Show quiz results in conclusion",
|
||||||
|
@ -10814,6 +10814,9 @@ textarea {
|
|||||||
font-family: Source Sans Pro, sans-serif;
|
font-family: Source Sans Pro, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
textarea.wauto {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
textarea.disabled {
|
textarea.disabled {
|
||||||
border-color: #C4C4C4;
|
border-color: #C4C4C4;
|
||||||
background-color: #E5E5E5;
|
background-color: #E5E5E5;
|
||||||
|
@ -2,6 +2,10 @@ textarea {
|
|||||||
width: 307px;
|
width: 307px;
|
||||||
height: 140px;
|
height: 140px;
|
||||||
|
|
||||||
|
&.wauto {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
border: 1px solid $dark-gray;
|
border: 1px solid $dark-gray;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user