diff --git a/admin/survey/SurveyAdmin.php b/admin/survey/SurveyAdmin.php
index 8eb1a5f6e..1950d9363 100644
--- a/admin/survey/SurveyAdmin.php
+++ b/admin/survey/SurveyAdmin.php
@@ -461,6 +461,9 @@ class SurveyAdmin
echo '
';
+ // Generičen popup
+ echo '';
+
// urejanje calculation-ov
echo '';
diff --git a/admin/survey/classes/surveyEmails/class.SurveyInvitationsNew.php b/admin/survey/classes/surveyEmails/class.SurveyInvitationsNew.php
index b1448de45..0cb5adb23 100644
--- a/admin/survey/classes/surveyEmails/class.SurveyInvitationsNew.php
+++ b/admin/survey/classes/surveyEmails/class.SurveyInvitationsNew.php
@@ -315,6 +315,8 @@ class SurveyInvitationsNew {
$this->setNoEmailing();
} else if ($action == 'set_noEmailing_type') {
$this->setNoEmailingType();
+ } else if ($action == 'showAAISmtpPopup') {
+ $this->showAAISmtpPopup();
} else {
$sql = sisplet_query("SELECT EXISTS (SELECT 1 FROM srv_invitations_archive WHERE ank_id='".$this->sid."')");
$row = mysqli_fetch_array($sql);
@@ -9864,10 +9866,12 @@ class SurveyInvitationsNew {
function viewServerSettings(){
global $lang;
global $site_url;
+ global $site_url;
global $site_path;
global $admin_type;
global $global_user_id;
global $mysql_database_name;
+ global $aai_instalacija;
$row = SurveyInfo::getInstance()->getSurveyRow();
@@ -9879,24 +9883,39 @@ class SurveyInvitationsNew {
$MA = new MailAdapter($this->sid, $type='invitation');
// Dostop za posiljanje mailov preko 1ka serverja
- $enabled1ka = ( $MA->is1KA() || (($admin_type == 0) && ($mysql_database_name == 'www1kasi' || $mysql_database_name == 'test1kasi' || $mysql_database_name == 'real1kasi' || $mysql_database_name == '1kaarnessi')) ) ? true : false;
+ $enabled1ka = $MA->is1KA() ? true : false;
+
+ // Admini na testu, www in virtualkah imajo 1ka smtp
+ if(($admin_type == 0) && ($mysql_database_name == 'www1kasi' || $mysql_database_name == 'test1kasi' || $mysql_database_name == 'real1kasi'))
+ $enabled1ka = true;
// Opozorilo, ce imamo vklopljena vabila, da gre za iste nastavitve
echo ''.$lang['srv_email_server_settings_warning'].'
';
+ // Izbira SMTP streznika
echo ''.$lang['srv_email_setting_select_server'].' ';
- echo '';
+
+ // AAI ima Arnesov smtp
+ if($aai_instalacija){
+ echo '';
+ }
+ else{
+ echo '';
+ }
+
// Google smtp je viden samo starim, kjer je ze vklopljen
if($MA->isGoogle()){
echo '';
}
- echo '';
- echo Help :: display('srv_mail_mode');
-
+ // Lastni smtp
+ echo '';
+
+ echo Help :: display('srv_mail_mode');
#1KA
$enkaSettings = $MA->get1KASettings($raziskave=true);
@@ -10053,4 +10072,26 @@ class SurveyInvitationsNew {
SurveySession::set('inv_noEmailing_type', (int)$_POST['value']);
}
}
+
+ // Prikazemo popup za vklop arnes smtp-ja na aai
+ private function showAAISmtpPopup(){
+ global $lang;
+
+
+ echo '';
+
+ echo ''.$lang['srv_email_setting_adapter0_aai_title'].'
';
+
+ echo '';
+
+ echo '';
+ }
}
diff --git a/admin/survey/script/invitations.js b/admin/survey/script/invitations.js
index 19d795325..289b330d8 100644
--- a/admin/survey/script/invitations.js
+++ b/admin/survey/script/invitations.js
@@ -1708,4 +1708,40 @@ function noEmailingToggle(value){
function noEmailingType(value){
$.post('ajax.php?t=invitations&a=set_noEmailing_type', {anketa:srv_meta_anketa_id, value:value});
-}
\ No newline at end of file
+}
+
+
+// AAI - popup pri vklopu ARNES smtp streznika pri vabilih
+function smtpAAIPopupShow(){
+
+ $('#fade').fadeTo('slow', 1);
+ $('#popup_note').html('').fadeIn('slow');
+ $("#popup_note").load('ajax.php?t=invitations&a=showAAISmtpPopup', {anketa: srv_meta_anketa_id, noNavi:'true'});
+}
+function smtpAAIPopupClose(){
+
+ // Ni sprejel - vrnemo radio
+ $('input[name=SMTPMailMode][value=2]').prop('checked', true);
+
+ $('#popup_note').fadeOut('slow').html('');
+ $('#fade').fadeOut('slow');
+}
+function smtpAAISet(){
+
+ // Shranimo formo
+ $("form[name='settingsanketa_"+srv_meta_anketa_id+"']").submit();
+
+ // Prikazemo nastavitve za Arnes smtp
+ /*$('#send_mail_mode1, #send_mail_mode2').hide();
+ $('#send_mail_mode0').show();
+
+ // Zapremo popup
+ smtpAAIPopupClose();*/
+}
+function smtpAAIAccept(){
+
+ if($('#aai_smtp_checkbox').is(':checked'))
+ $('#aai_smtp_button').show();
+ else
+ $('#aai_smtp_button').hide();
+}
diff --git a/lang/1.php b/lang/1.php
index 93e70c902..62033dd08 100644
--- a/lang/1.php
+++ b/lang/1.php
@@ -6398,6 +6398,10 @@ $lang = array (
'srv_aapor' => 'AAPOR kalkulacije',
'srv_languages_statistics' => 'Statistika jezikov',
'srv_email_setting_adapter0' => '1KA privzeto',
+ 'srv_email_setting_adapter0_aai' => '1KA ARNES',
+ 'srv_email_setting_adapter0_aai_title' => 'Soglasje za uporabo Arnes SMTP',
+ 'srv_email_setting_adapter0_aai_popup' => 'V primeru uporabe 1KA sistema vabil in pošiljanja vabil iz elektronskega naslova 1ka@guest.arnes.si, prosimo, da upoštevate pogoje uporabe orodja 1KA glede pošiljanja email vabil in označite, ali se strinjate s spodnjo izjavo.',
+ 'srv_email_setting_adapter0_aai_popup2' => 'Izjavljam, da imam eksplicitno soglasje prejemnikov ali pravno podlago za pošiljanje e-mail vabil (podpora uporabnikom, zadovoljstvo zaposlenih ali študentov ipd.).',
'srv_email_setting_adapter1' => 'Google',
'srv_email_setting_adapter2' => 'Lasten strežnik',
'srv_email_setting_adapter1_note' => 'Uporabniško geslo pridobite v nastavitvah zasebnosti v vašem Gmail računu pod
\'Prijava in varnost\' – \'Gesla za aplikacije\'. Več >>',
diff --git a/lang/2.php b/lang/2.php
index 1f5805edf..a9381b0fa 100644
--- a/lang/2.php
+++ b/lang/2.php
@@ -6281,6 +6281,10 @@ $lang = array (
'srv_aapor' => 'AAPOR calculations',
'srv_languages_statistics' => 'Languages statistics',
'srv_email_setting_adapter0' => '1KA default',
+ 'srv_email_setting_adapter0_aai' => '1KA ARNES',
+ 'srv_email_setting_adapter0_aai_title' => 'Arnes SMTP agreement',
+ 'srv_email_setting_adapter0_aai_popup' => 'In case of using the 1KA email invitations and sending invitations from the e-mail address 1ka@guest.arnes.si, please follow the conditions of using the 1KA tool regarding sending email invitations and indicate whether you agree with the statement below.',
+ 'srv_email_setting_adapter0_aai_popup2' => 'I declare that I have the explicit consent of the recipients or the legal basis for sending e-mail invitations (customer support, employee or student satisfaction, etc.).',
'srv_email_setting_adapter1' => 'Google - GMail',
'srv_email_setting_adapter1_note' => 'Uporabniško geslo pridobite v nastavitvah zasebnosti v vašem Gmail računu pod
\'Prijava in varnost\' – \'Gesla za aplikacije\'. Več >>',
'srv_email_setting_adapter2' => 'Own SMTP settings',
diff --git a/public/css/admin.css b/public/css/admin.css
index a079c4436..4d00018a4 100644
--- a/public/css/admin.css
+++ b/public/css/admin.css
@@ -8271,6 +8271,16 @@ span.faicon.inv_unsubscribed_1::before {
margin-bottom: 0;
}
+/* Generic popup */
+#popup_note {
+ display: none;
+ max-width: 600px !important;
+}
+#popup_note .popup_content {
+ margin-bottom: 40px;
+ line-height: 24px;
+}
+
#clipboard {
position: fixed;
top: 10px;
@@ -28165,21 +28175,6 @@ and open the template in the editor.
#branching ul.first {
margin: 0px 40px 40px -30px;
}
-
- /*#branching.branching_glasovanje {
- max-width: 810px;
- }
-
- #toolbox_library {
- right: 30px;
- }
-
- #quick_settings_holder {
- right: 30px;
- }
- #quick_settings_holder.glas_quick_settings {
- right: 30px;
- }*/
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
.tabnavigation1 {
@@ -28195,56 +28190,6 @@ and open the template in the editor.
left: 1162px;
}
}
-/*
-@media all and (min-width: 1500px) {
- #branching.branching_glasovanje {
- max-width: 800px;
- }
- #toolbox_library {
- right: 30px;
- }
-
- #quick_settings_holder {
- right: 30px;
- }
- #quick_settings_holder.glas_quick_settings {
- right: 30px;
- }
-}
-
-@media all and (min-width: 1580px) {
- #toolbox_library {
- right: 30px;
- }
-
- #quick_settings_holder {
- right: auto;
- left: 1180px;
- }
- #quick_settings_holder.glas_quick_settings {
- right: 30px;
- }
-}
-
-@media all and (min-width: 1618px) {
- #branching.branching_glasovanje {
- max-width: 815px;
- }
-
- #toolbox_library {
- right: auto;
- left: 1180px;
- }
-
- #quick_settings_holder {
- right: auto;
- left: 1182px;
- }
- #quick_settings_holder.glas_quick_settings {
- right: auto;
- left: 1182px;
- }
-}*/
@media print {
.no-print {
display: none !important;
diff --git a/resources/sass/admin/popup/basic.scss b/resources/sass/admin/popup/basic.scss
index 1729dc36d..350f8233e 100644
--- a/resources/sass/admin/popup/basic.scss
+++ b/resources/sass/admin/popup/basic.scss
@@ -194,6 +194,16 @@
}
}
+/* Generic popup */
+#popup_note {
+ display: none;
+ max-width: 600px !important;
+
+ .popup_content{
+ margin-bottom: 40px;
+ line-height: 24px;
+ }
+}
#clipboard {
position: fixed;