diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
commit | 75160b12821f7f4299cce7f0b69c83c1502ae071 (patch) | |
tree | 27e25e4ccaef45f0c58b22831164050d1af1d4db /admin/survey/modules/mod_chat/class.SurveyChat.php | |
parent | prvi-commit (diff) | |
download | 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip |
Diffstat (limited to 'admin/survey/modules/mod_chat/class.SurveyChat.php')
-rw-r--r-- | admin/survey/modules/mod_chat/class.SurveyChat.php | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/admin/survey/modules/mod_chat/class.SurveyChat.php b/admin/survey/modules/mod_chat/class.SurveyChat.php index 4f65b13..6afa624 100644 --- a/admin/survey/modules/mod_chat/class.SurveyChat.php +++ b/admin/survey/modules/mod_chat/class.SurveyChat.php @@ -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>';
}
|