|
|
|
@ -508,13 +508,14 @@ class SurveyInvitationsNew {
|
|
|
|
|
function addRecipientsView( $fields = array(), $recipients_list=null) {
|
|
|
|
|
global $lang;
|
|
|
|
|
global $site_url;
|
|
|
|
|
|
|
|
|
|
//echo '<h2>'.$lang['srv_inv_add_recipients_heading'].'</h2>';
|
|
|
|
|
|
|
|
|
|
$noEmailing = SurveySession::get('inv_noEmailing');
|
|
|
|
|
|
|
|
|
|
$row = $this->surveySettings;
|
|
|
|
|
|
|
|
|
|
echo '<h2 style="margin-left: 15px; color:#333 !important;">';
|
|
|
|
|
|
|
|
|
|
echo '<div class="invitations_top_settings">';
|
|
|
|
|
|
|
|
|
|
// Text s podatki o nastavitvah posiljanja
|
|
|
|
|
$settings_text = '<span class="bold spaceRight">'.$lang['srv_inv_message_type'].':</span>';
|
|
|
|
|
|
|
|
|
@ -555,14 +556,15 @@ class SurveyInvitationsNew {
|
|
|
|
|
$settings_text .= '<span class="spaceLeft"> <a href="'.$site_url . 'admin/survey/index.php?anketa='.$this->sid.'&a=invitations&m=inv_settings">'.$lang['edit4'].'</a></span>';
|
|
|
|
|
|
|
|
|
|
echo $settings_text;
|
|
|
|
|
echo '</h2>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div id="srv_invitation_note">';
|
|
|
|
|
echo '<div id="srv_invitation_note">';
|
|
|
|
|
echo $lang['srv_invitation_num_respondents'].(int)$this->count_all;
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
echo '<div id="inv_import">';
|
|
|
|
|
|
|
|
|
|
echo '<div id="inv_import" class="invitations_holder left-menu">';
|
|
|
|
|
$this->displayAddRecipientsView($fields, $recipients_list);
|
|
|
|
|
echo '</div>'; # id="inv_import"
|
|
|
|
|
}
|
|
|
|
@ -625,17 +627,29 @@ class SurveyInvitationsNew {
|
|
|
|
|
session_start();
|
|
|
|
|
$checked = (isset($_SESSION['inv_rec_only_this_survey']) && (int)$_SESSION['inv_rec_only_this_survey'] == 1) ? '1' : '0';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# profili respondentov
|
|
|
|
|
echo '<div id="inv_recipients_profiles_holder">';
|
|
|
|
|
echo '<label><input name="inv_show_list_type" id="inv_show_list_type1" type="radio" value="0" onclick="recipientsProfileOnlyThisSurvey();"'.($checked == '0' ? ' checked="checked"':'').' autocomplete="off">'.$lang['srv_inv_list_edit_from_this_survey'].'</label><br/>';
|
|
|
|
|
echo '<label><input name="inv_show_list_type" id="inv_show_list_type2" type="radio" value="1" onclick="recipientsProfileOnlyThisSurvey();"'.($checked == '1' ? ' checked="checked"':'').' autocomplete="off">'.$lang['srv_inv_list_edit_from_all_surveys'].'</label><br/>';
|
|
|
|
|
|
|
|
|
|
echo '<span>'.$lang['srv_inv_recipient_select_list'].'</span><br/>';
|
|
|
|
|
echo '<fieldset id="inv_recipients_profiles_holder" class="left_holder">';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input name="inv_show_list_type" id="inv_show_list_type1" type="radio" value="0" onclick="recipientsProfileOnlyThisSurvey();"'.($checked == '0' ? ' checked="checked"':'').' autocomplete="off"><label for="inv_show_list_type1">'.$lang['srv_inv_list_edit_from_this_survey'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input name="inv_show_list_type" id="inv_show_list_type2" type="radio" value="1" onclick="recipientsProfileOnlyThisSurvey();"'.($checked == '1' ? ' checked="checked"':'').' autocomplete="off"><label for="inv_show_list_type2">'.$lang['srv_inv_list_edit_from_all_surveys'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
echo '<span>'.$lang['srv_inv_recipient_select_list'].'</span>';
|
|
|
|
|
|
|
|
|
|
$this->listRecipientsProfiles();
|
|
|
|
|
echo '</div>'; # id=inv_recipients_profiles_holder
|
|
|
|
|
|
|
|
|
|
echo '<div id="inv_import_list_container">';
|
|
|
|
|
echo '</fieldset>'; # id=inv_recipients_profiles_holder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<fieldset id="inv_import_list_container" class="right_holder">';
|
|
|
|
|
|
|
|
|
|
$sqlSysMapping = sisplet_query("SELECT * FROM srv_invitations_mapping WHERE sid = '$this->sid'");
|
|
|
|
|
if (mysqli_num_rows($sqlSysMapping) > 0) {
|
|
|
|
@ -649,16 +663,13 @@ class SurveyInvitationsNew {
|
|
|
|
|
.($sysUserToAdd > 0 ? ' ('.$sysUserToAdd.')' : '').'</label></span>';
|
|
|
|
|
|
|
|
|
|
echo Help::display('inv_recipiens_from_system');
|
|
|
|
|
|
|
|
|
|
echo '<br class="clr"/>';
|
|
|
|
|
echo '<br class="clr"/>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($import_type == 3) {
|
|
|
|
|
$this->createSystemVariablesMapping();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sporočilo za personalizirana e-vabila in respondente iz baze
|
|
|
|
|
echo '<span class="inv_note">'.$lang['srv_inv_recipiens_field_note'].'</span>';
|
|
|
|
|
|
|
|
|
@ -774,10 +785,6 @@ class SurveyInvitationsNew {
|
|
|
|
|
|
|
|
|
|
echo '<div>';
|
|
|
|
|
echo '<label class="spaceRight"><input type="checkbox" id="inv_recipients_add" value="1" checked="checked">'.$lang['srv_invitation_recipients_add_type4'].'</label>';
|
|
|
|
|
/*echo '<label class="spaceRight"><input type="checkbox" id="inv_recipients_rename_profile" onchange="invRenameRecipientsChange();">'.$lang['srv_inv_recipients_rename_list'].'</label>';
|
|
|
|
|
echo Help::display('srv_invitation_rename_profile');*/
|
|
|
|
|
#echo ' ';
|
|
|
|
|
#echo '<label class="spaceLeft"><input type="checkbox" id="inv_recipients_add_type2" value="2" >'.$lang['srv_invitation_recipients_add_type5'].'</label>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
echo '<div id="div_inv_recipients_rename_list_type" class="displayNone">';
|
|
|
|
@ -829,9 +836,8 @@ class SurveyInvitationsNew {
|
|
|
|
|
echo '<span id="inv_upload_recipients" class="buttonwrapper floatLeft spaceLeft" ><a class="ovalbutton ovalbutton_orange" ><span>'.$lang['srv_inv_btn_add_recipients_add'].'</span></a></span>';
|
|
|
|
|
echo '</div>'; # id=inv_import_file
|
|
|
|
|
}
|
|
|
|
|
echo '</div>'; # id=inv_import_list_container
|
|
|
|
|
|
|
|
|
|
echo '<br class="clr"/>';
|
|
|
|
|
echo '</fieldset>'; # id=inv_import_list_container
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1944,7 +1950,7 @@ class SurveyInvitationsNew {
|
|
|
|
|
$preview_message = $array_messages[$mid];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div id="inv_messages_profiles_holder" class="left">';
|
|
|
|
|
echo '<div id="inv_messages_profiles_holder" class="left_holder">';
|
|
|
|
|
echo '<span>'.$lang['srv_invitation_message_choose'].':</span><br/>';
|
|
|
|
|
echo '<div id="invitation_messages" >';
|
|
|
|
|
echo '<ol>';
|
|
|
|
@ -2074,7 +2080,7 @@ class SurveyInvitationsNew {
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div id="invitation_profile_notes" class="right"><p>';
|
|
|
|
|
echo '<div id="invitation_profile_notes" class="right_holder"><p>';
|
|
|
|
|
|
|
|
|
|
$_indicators = $this->getAvailableIndicators();
|
|
|
|
|
|
|
|
|
@ -2140,7 +2146,7 @@ class SurveyInvitationsNew {
|
|
|
|
|
}
|
|
|
|
|
$preview_message = $array_messages[$mid];
|
|
|
|
|
|
|
|
|
|
echo '<div id="inv_messages_profiles_holder" class="left">';
|
|
|
|
|
echo '<div id="inv_messages_profiles_holder" class="left_holder">';
|
|
|
|
|
echo '<span>'.$lang['srv_invitation_message_choose'].':</span><br/>';
|
|
|
|
|
echo '<div id="invitation_messages" >';
|
|
|
|
|
echo '<ol>';
|
|
|
|
@ -2204,7 +2210,7 @@ class SurveyInvitationsNew {
|
|
|
|
|
$MA = new MailAdapter($this->sid, $type='invitation');
|
|
|
|
|
# zlistamo seznam vseh sporočil
|
|
|
|
|
# izpišemo primer besedila
|
|
|
|
|
echo '<div id="inv_msg_preview_hld" class="right">';
|
|
|
|
|
echo '<div id="inv_msg_preview_hld" class="right_holder">';
|
|
|
|
|
|
|
|
|
|
echo '<span class="h2 spaceRight floatLeft">'.$lang['srv_inv_message_draft_content_heading'].'</span> '.Help::display('srv_inv_message_title_noEmail');
|
|
|
|
|
|
|
|
|
@ -7638,11 +7644,15 @@ class SurveyInvitationsNew {
|
|
|
|
|
echo $text3;
|
|
|
|
|
echo '</p>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Gumb OMOGOCI VABILA
|
|
|
|
|
echo '<div class="button_holder below">';
|
|
|
|
|
|
|
|
|
|
$text_button = (Common::checkModule('gorenje')) ? str_replace('1KA', 'ESurvey', $lang['srv_invitation_nonActivated_button_activate']) : $lang['srv_invitation_nonActivated_button_activate'];
|
|
|
|
|
echo '<span class="buttonwrapper floatLeft spaceRight"><a class="ovalbutton ovalbutton_orange" href="#" onclick="enableEmailInvitation(\'1\');">'.$text_button.'</a></span>';
|
|
|
|
|
//echo '<span class="spaceLeft bold" style="line-height:25px;"><a href="https://www.1ka.si/c/804/Email_vabila/?preid=793&from1ka=1">'.$lang['srv_invitation_nonActivated_more'].'</a></span>';
|
|
|
|
|
echo '<br />';
|
|
|
|
|
echo '<button class="blue medium" onclick="enableEmailInvitation(\'1\');">'.$text_button.'</button>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
echo '</fieldset>';
|
|
|
|
@ -7661,7 +7671,7 @@ class SurveyInvitationsNew {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Leva stran - navadne nastavitve
|
|
|
|
|
echo '<div class="left">';
|
|
|
|
|
echo '<div class="left_holder">';
|
|
|
|
|
|
|
|
|
|
echo '<fieldset class="inv_fieldset"><legend>'.$lang['srv_inv_nav_invitations_settings_general'].' '.Help::display('srv_inv_general_settings').'</legend>';
|
|
|
|
|
echo '<div class="inv_filedset_inline_div">';
|
|
|
|
@ -7674,106 +7684,200 @@ class SurveyInvitationsNew {
|
|
|
|
|
$voting_disabled = ' disabled';
|
|
|
|
|
|
|
|
|
|
// Warning za volitve
|
|
|
|
|
echo '<p class="red bold">'.$lang['srv_voting_warning'].'</p>';
|
|
|
|
|
echo '<div class="setting_holder red bold">'.$lang['srv_voting_warning'].'</div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$individual = (int)$this->surveySettings['individual_invitation'];
|
|
|
|
|
|
|
|
|
|
// Individualizirana vabila - GLAVNA NASTAVITEV
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['srv_user_base_individual_invitaition'];
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_user_base_individual_invitaition'];
|
|
|
|
|
if($individual == 0)
|
|
|
|
|
echo ' '.Help::display('srv_user_base_individual_invitaition_note2').' </label>';
|
|
|
|
|
else
|
|
|
|
|
echo ' '.Help::display('srv_user_base_individual_invitaition_note').' </label>';
|
|
|
|
|
echo '<label><input type="radio" name="individual_invitation" value="0" id="individual_invitation_0"'.($individual == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'individual_invitation\',true);"/>'.$lang['no1'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="individual_invitation" value="1" id="individual_invitation_1"'.($individual == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'individual_invitation\',true);"/>'.$lang['yes'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="individual_invitation" value="0" id="individual_invitation_0"'.($individual == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'individual_invitation\',true);"/>';
|
|
|
|
|
echo ' <label for="individual_invitation_0">'.$lang['no1'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="individual_invitation" value="1" id="individual_invitation_1"'.($individual == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'individual_invitation\',true);"/>';
|
|
|
|
|
echo ' <label for="individual_invitation_1">'.$lang['yes'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Ce niso indvidualizirana imamo samo nacin posiljanja
|
|
|
|
|
if ($individual == 0) {
|
|
|
|
|
|
|
|
|
|
// Nacin posiljanja (email, posta, sms...)
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['srv_inv_message_type'].': '.Help::display('srv_inv_sending_type').'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="inv_messages_noEmailing" value="0" id="inv_messages_noEmailing_1"'.($noEmailing == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'0\');"/>'.$lang['srv_inv_message_noemailing_0'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="inv_messages_noEmailing" value="1" id="inv_messages_noEmailing_1"'.($noEmailing == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'1\');"/>'.$lang['srv_inv_message_noemailing_1'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_inv_message_type'].': '.Help::display('srv_inv_sending_type').'</div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="inv_messages_noEmailing" value="0" id="inv_messages_noEmailing_0" '.($noEmailing == 0 ? 'checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'0\');">';
|
|
|
|
|
echo ' <label for="inv_messages_noEmailing_0">'.$lang['srv_inv_message_noemailing_0'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="inv_messages_noEmailing" value="1" id="inv_messages_noEmailing_1" '.($noEmailing == 1 ? 'checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'1\');">';
|
|
|
|
|
echo ' <label for="inv_messages_noEmailing_1">'.$lang['srv_inv_message_noemailing_1'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Nacin dokumentiranja (posta, sms, drugo)
|
|
|
|
|
if($noEmailing == 1){
|
|
|
|
|
$noEmailingType = SurveySession::get('inv_noEmailing_type');
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['srv_inv_message_type_external'].':</label>';
|
|
|
|
|
echo '<label><input type="radio" name="noMailType" value="0" id="noMailType1"'.($noEmailingType == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'0\');" />'.$lang['srv_inv_message_noemailing_type1'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="noMailType" value="1" id="noMailType2"'.($noEmailingType == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'1\');" />'.$lang['srv_inv_message_noemailing_type2'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="noMailType" value="2" id="noMailType3"'.($noEmailingType == 2 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'2\');" />'.$lang['srv_inv_message_noemailing_type3'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_inv_message_type_external'].':</div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="noMailType" value="0" id="noMailType1" '.($noEmailingType == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'0\');" />';
|
|
|
|
|
echo ' <label for="noMailType1">'.$lang['srv_inv_message_noemailing_type1'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="noMailType" value="1" id="noMailType2" '.($noEmailingType == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'1\');" />';
|
|
|
|
|
echo ' <label for="noMailType2">'.$lang['srv_inv_message_noemailing_type2'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="noMailType" value="2" id="noMailType3" '.($noEmailingType == 2 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'2\');" />';
|
|
|
|
|
echo ' <label for="noMailType3">'.$lang['srv_inv_message_noemailing_type3'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
# Normalna vabila z unikatinim URL
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
// Nacin posiljanja (email, posta, sms...)
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['srv_inv_message_type'].': '.Help::display('srv_inv_sending_type').'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="inv_messages_noEmailing" value="0" id="inv_messages_noEmailing_1"'.($noEmailing == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'0\');"/>'.$lang['srv_inv_message_noemailing_0'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="inv_messages_noEmailing" value="1" id="inv_messages_noEmailing_1"'.($noEmailing == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'1\');"/>'.$lang['srv_inv_message_noemailing_1'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_inv_message_type'].': '.Help::display('srv_inv_sending_type').'</div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="inv_messages_noEmailing" value="0" id="inv_messages_noEmailing_0"'.($noEmailing == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'0\');">';
|
|
|
|
|
echo ' <label for="inv_messages_noEmailing_0">'.$lang['srv_inv_message_noemailing_0'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="inv_messages_noEmailing" value="1" id="inv_messages_noEmailing_1"'.($noEmailing == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="noEmailingToggle(\'1\');">';
|
|
|
|
|
echo ' <label for="inv_messages_noEmailing_1">'.$lang['srv_inv_message_noemailing_1'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Nacin dokumentiranja (posta, sms, drugo)
|
|
|
|
|
if($noEmailing == 1){
|
|
|
|
|
$noEmailingType = SurveySession::get('inv_noEmailing_type');
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['srv_inv_message_type_external'].':</label>';
|
|
|
|
|
echo '<label><input type="radio" name="noMailType" value="0" id="noMailType1"'.($noEmailingType == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'0\');" />'.$lang['srv_inv_message_noemailing_type1'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="noMailType" value="1" id="noMailType2"'.($noEmailingType == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'1\');" />'.$lang['srv_inv_message_noemailing_type2'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="noMailType" value="2" id="noMailType3"'.($noEmailingType == 2 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'2\');" />'.$lang['srv_inv_message_noemailing_type3'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_inv_message_type_external'].':</div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="noMailType" value="0" id="noMailType1" '.($noEmailingType == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'0\');" />';
|
|
|
|
|
echo ' <label for="noMailType1">'.$lang['srv_inv_message_noemailing_type1'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="noMailType" value="1" id="noMailType2" '.($noEmailingType == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'1\');" />';
|
|
|
|
|
echo ' <label for="noMailType2">'.$lang['srv_inv_message_noemailing_type2'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="noMailType" value="2" id="noMailType3" '.($noEmailingType == 2 ? ' checked="checked"' : '').' '.$voting_disabled.' onClick="noEmailingType(\'2\');" />';
|
|
|
|
|
echo ' <label for="noMailType3">'.$lang['srv_inv_message_noemailing_type3'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Vnos kode - samo ce je email (drugace itak vedno rocni vnos)
|
|
|
|
|
if($noEmailing != 1){
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['usercode_required1'].':'.Help::display('usercode_required').'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="usercode_required" value="0" id="usercode_required_0"'.($row['usercode_required'] == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'usercode_required\',true);"/>'.$lang['usercode_required2'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="usercode_required" value="1" id="usercode_required_1"'.($row['usercode_required'] == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'usercode_required\',true);"/>'.$lang['usercode_required3'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['usercode_required1'].':'.Help::display('usercode_required').'</div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="usercode_required" value="0" id="usercode_required_0"'.($row['usercode_required'] == 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'usercode_required\',true);">';
|
|
|
|
|
echo ' <label for="usercode_required_0">'.$lang['usercode_required2'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="usercode_required" value="1" id="usercode_required_1"'.($row['usercode_required'] == 1 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'usercode_required\',true);">';
|
|
|
|
|
echo ' <label for="usercode_required_1">'.$lang['usercode_required3'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($row['usercode_required'] != 0) {
|
|
|
|
|
echo '<p>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
if($noEmailing == 1)
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['usercode_text2'].': </label><br />';
|
|
|
|
|
echo '<label>'.$lang['usercode_text2'].':</label>';
|
|
|
|
|
else
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['usercode_text'].': </label><br />';
|
|
|
|
|
echo '<label>'.$lang['usercode_text'].':</label>';
|
|
|
|
|
|
|
|
|
|
$nagovorText = ($row['usercode_text'] && $row['usercode_text'] != null && $row['usercode_text'] != "") ? $row['usercode_text'] : $lang['srv_basecode'];
|
|
|
|
|
echo '<textarea style="width:430px; margin-left:15px; margin-top:5px;" name="usercode_text" onblur="surveyBaseSettingText(\'usercode_text\',false);return false;">'.$nagovorText.'</textarea>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
echo ' <textarea style="width:100%; height:65px;" name="usercode_text" onblur="surveyBaseSettingText(\'usercode_text\',false);return false;">'.$nagovorText.'</textarea>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dostop brez kode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<p><label for="usercode_skip_0" class="lbl_email_setting">';
|
|
|
|
|
echo $lang['srv_user_base_access_check'].' '.Help::display('srv_inv_no_code');
|
|
|
|
|
echo '<input type="checkbox" name="usercode_skip_checkbox" value="0" id="usercode_skip_0"'.($row['usercode_skip'] != 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'usercode_skip\',true);" />';
|
|
|
|
|
echo '</label></p>';
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="checkbox" name="usercode_skip_checkbox" value="0" id="usercode_skip_0"'.($row['usercode_skip'] != 0 ? ' checked="checked"' : '').' '.$voting_disabled.' onChange="surveyBaseSettingRadio(\'usercode_skip\',true);" />';
|
|
|
|
|
echo ' <label for="usercode_skip_0" class="lbl_email_setting">'.$lang['srv_user_base_access_check'].' '.Help::display('srv_inv_no_code');
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
if($row['usercode_skip'] > 0){
|
|
|
|
|
echo '<div style="float: left; margin: -10px 0 0 15px;">';
|
|
|
|
|
echo '<label class="lbl_email_setting">'.$lang['srv_user_base_access'].Help::display('usercode_skip').' </label>';
|
|
|
|
|
echo '<label><input type="radio" name="usercode_skip" value="1" id="usercode_skip_1"'.($row['usercode_skip'] == 1 ? ' checked="checked"' : '').' onChange="surveyBaseSettingRadio(\'usercode_skip\',true);"/>'.$lang['srv_vsi'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="usercode_skip" value="2" id="usercode_skip_2"'.($row['usercode_skip'] == 2 ? ' checked="checked"' : '').' onChange="surveyBaseSettingRadio(\'usercode_skip\',true);"/>'.$lang['srv_setting_onlyAuthor'].'</label>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_user_base_access'].Help::display('usercode_skip').' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="usercode_skip" value="1" id="usercode_skip_1"'.($row['usercode_skip'] == 1 ? ' checked="checked"' : '').' onChange="surveyBaseSettingRadio(\'usercode_skip\',true);">';
|
|
|
|
|
echo ' <label for="usercode_skip_1">'.$lang['srv_vsi'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="usercode_skip" value="2" id="usercode_skip_2"'.($row['usercode_skip'] == 2 ? ' checked="checked"' : '').' onChange="surveyBaseSettingRadio(\'usercode_skip\',true);">';
|
|
|
|
|
echo ' <label for="usercode_skip_2">'.$lang['srv_setting_onlyAuthor'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo '<br />';
|
|
|
|
|
|
|
|
|
|
// Gumb shrani - samo provizorično
|
|
|
|
|
echo '<div class="buttonwrapper"><a class="ovalbutton floatRight" href="#" title="'.$lang['save'].'">'.$lang['save'].'</a></div>';
|
|
|
|
|
echo '<div class="buttonwrapper"><a class="ovalbutton floatRight spaceRight" href="'.$site_url.'admin/survey/index.php?anketa='.$this->sid.'&a='.A_INVITATIONS.'&m=add_recipients_view">'.$lang['srv_adding_email_respondents'].'</a></div>';
|
|
|
|
|
echo '<div class="button_holder below float-right">';
|
|
|
|
|
echo ' <button class="white-black medium" title="'.$lang['save'].'">'.$lang['save'].'</button>';
|
|
|
|
|
echo ' <a href="'.$site_url.'admin/survey/index.php?anketa='.$this->sid.'&a='.A_INVITATIONS.'&m=add_recipients_view"><button class="blue medium">'.$lang['next1'].'</button></a>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
@ -7791,7 +7895,7 @@ class SurveyInvitationsNew {
|
|
|
|
|
// Gorenje tega nima
|
|
|
|
|
if (!Common::checkModule('gorenje')){
|
|
|
|
|
|
|
|
|
|
echo '<div class="right">';
|
|
|
|
|
echo '<div class="right_holder">';
|
|
|
|
|
|
|
|
|
|
echo '<fieldset class="inv_fieldset"><legend>'.$lang['srv_email_setting_title'].'</legend>';
|
|
|
|
|
echo '<div class="inv_filedset_inline_div">';
|
|
|
|
@ -7835,10 +7939,14 @@ class SurveyInvitationsNew {
|
|
|
|
|
echo $lang['srv_invitation_nonActivated_text3'];
|
|
|
|
|
echo '</p>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Gumb ZAPROSI ZA DOSTOP DO VABIL
|
|
|
|
|
echo '<span class="buttonwrapper floatLeft spaceRight"><a class="ovalbutton ovalbutton_orange" href="https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1">'.$lang['srv_invitation_nonActivated_button_details'].'</a></span>';
|
|
|
|
|
//echo '<span class="spaceLeft bold" style="line-height:25px;"><a href="https://www.1ka.si/c/804/Email_vabila/?preid=793&from1ka=1">'.$lang['srv_invitation_nonActivated_more'].'</a></span>';
|
|
|
|
|
echo '<br />';
|
|
|
|
|
echo '<div class="button_holder below">';
|
|
|
|
|
echo ' <a href="https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1" target="_blank">';
|
|
|
|
|
echo ' <button class="blue medium">'.$lang['srv_invitation_nonActivated_button_details'].'</button>';
|
|
|
|
|
echo ' </a>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
echo '</fieldset>';
|
|
|
|
@ -9817,7 +9925,7 @@ class SurveyInvitationsNew {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function viewServerSettings(){
|
|
|
|
|
private function viewServerSettings(){
|
|
|
|
|
global $lang;
|
|
|
|
|
global $site_url;
|
|
|
|
|
global $site_url;
|
|
|
|
@ -9849,15 +9957,17 @@ class SurveyInvitationsNew {
|
|
|
|
|
if($squalo->getSqualoEnabled()){
|
|
|
|
|
|
|
|
|
|
// Vklop squalo
|
|
|
|
|
echo '<div class="squalo_switch"><p>';
|
|
|
|
|
echo '<div class="setting_holder squalo_switch">';
|
|
|
|
|
|
|
|
|
|
echo '<span class="bold">'.$lang['srv_squalo'].':</span> ';
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_squalo'].':</div>';
|
|
|
|
|
|
|
|
|
|
echo '<input type="hidden" name="squalo_mode" value="0">';
|
|
|
|
|
echo '<label><input type="checkbox" name="squalo_mode" id="squalo_mode" value="1" '.($squalo->getSqualoActive() ? 'checked ="checked" ' : '').' style="vertical-align:-2px;" onclick="squaloSwitch();">';
|
|
|
|
|
echo $lang['srv_squalo_sending'].' </label>';
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="hidden" name="squalo_mode" value="0">';
|
|
|
|
|
echo ' <input type="checkbox" name="squalo_mode" id="squalo_mode" value="1" '.($squalo->getSqualoActive() ? 'checked ="checked" ' : '').' onclick="squaloSwitch();">';
|
|
|
|
|
echo ' <label for="squalo_mode">'.$lang['srv_squalo_sending'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</p></div>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Squalo nastavitve...
|
|
|
|
@ -9873,55 +9983,78 @@ class SurveyInvitationsNew {
|
|
|
|
|
echo '<div class="mail_mode_switch '.($squalo->getSqualoActive() ? ' displayNone' : '').'">';
|
|
|
|
|
|
|
|
|
|
// Opozorilo, ce imamo vklopljena vabila, da gre za iste nastavitve
|
|
|
|
|
echo '<p class="red bold">'.$lang['srv_email_server_settings_warning'].'</p>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder red">'.$lang['srv_email_server_settings_warning'].'</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Izbira SMTP streznika
|
|
|
|
|
echo '<span class="bold">'.$lang['srv_email_setting_select_server'].'</span> ';
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_title">'.$lang['srv_email_setting_select_server'].'</div>';
|
|
|
|
|
|
|
|
|
|
// AAI ima Arnesov smtp
|
|
|
|
|
if(isAAI()){
|
|
|
|
|
echo '<label><input type="radio" name="SMTPMailMode" value="0" '.($MA->is1KA() ? 'checked ="checked" ' : '').' onclick="smtpAAIPopupShow();">';
|
|
|
|
|
echo $lang['srv_email_setting_adapter0_aai']. ' </label>';
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="SMTPMailMode" id="SMTPMailMode_0" value="0" '.($MA->is1KA() ? 'checked ="checked" ' : '').' onclick="smtpAAIPopupShow();">';
|
|
|
|
|
echo ' <label for="SMTPMailMode_0">'.$lang['srv_email_setting_adapter0_aai'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
echo '<label><input type="radio" name="SMTPMailMode" value="0" '.($MA->is1KA() ? 'checked ="checked" ' : '').' '.($enabled1ka ? '' : ' disabled="disabled"').' onclick="$(\'#send_mail_mode1, #send_mail_mode2\').hide();$(\'#send_mail_mode0\').show();">';
|
|
|
|
|
echo $lang['srv_email_setting_adapter0']. ' </label>';
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="SMTPMailMode" id="SMTPMailMode_0" value="0" '.($MA->is1KA() ? 'checked ="checked" ' : '').' '.($enabled1ka ? '' : ' disabled="disabled"').' onclick="$(\'#send_mail_mode1, #send_mail_mode2\').hide();$(\'#send_mail_mode0\').show();">';
|
|
|
|
|
echo ' <label for="SMTPMailMode_0">'.$lang['srv_email_setting_adapter0'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Google smtp je viden samo starim, kjer je ze vklopljen
|
|
|
|
|
if($MA->isGoogle()){
|
|
|
|
|
echo '<label><input type="radio" name="SMTPMailMode" value="1" '.($MA->isGoogle() ? 'checked ="checked" ' : '').' onclick="$(\'#send_mail_mode0, #send_mail_mode2\').hide(); $(\'#send_mail_mode1\').show();">';
|
|
|
|
|
echo $lang['srv_email_setting_adapter1'].' </label>';
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="SMTPMailMode" id="SMTPMailMode_1" value="1" '.($MA->isGoogle() ? 'checked ="checked" ' : '').' onclick="$(\'#send_mail_mode0, #send_mail_mode2\').hide(); $(\'#send_mail_mode1\').show();">';
|
|
|
|
|
echo ' <label for="SMTPMailMode_1">'.$lang['srv_email_setting_adapter1'].'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Lastni smtp
|
|
|
|
|
echo '<label><input type="radio" name="SMTPMailMode" value="2" '.($MA->isSMTP() ? 'checked ="checked" ' : '').' onclick="$(\'#send_mail_mode0, #send_mail_mode1\').hide(); $(\'#send_mail_mode2\').show();">';
|
|
|
|
|
echo $lang['srv_email_setting_adapter2'].' </label>';
|
|
|
|
|
|
|
|
|
|
echo Help :: display('srv_mail_mode');
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <input type="radio" name="SMTPMailMode" id="SMTPMailMode_2" value="2" '.($MA->isSMTP() ? 'checked ="checked" ' : '').' onclick="$(\'#send_mail_mode0, #send_mail_mode1\').hide(); $(\'#send_mail_mode2\').show();">';
|
|
|
|
|
echo ' <label for="SMTPMailMode_2">'.$lang['srv_email_setting_adapter2'].' '.Help::display('srv_mail_mode').'</label>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#1KA
|
|
|
|
|
$enkaSettings = $MA->get1KASettings($raziskave=true);
|
|
|
|
|
|
|
|
|
|
echo '<div id="send_mail_mode0" '.(!$MA->is1KA() || $squalo->getSqualoActive() ? ' class="displayNone"' : '').'>';
|
|
|
|
|
echo '<br /><span class="bold">'.$lang['srv_email_setting_settings'].'</span>';
|
|
|
|
|
echo '<br />';
|
|
|
|
|
|
|
|
|
|
echo ' <div class="setting_holder semi-bold">'.$lang['srv_email_setting_settings'].'</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
# from
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_from'].'<span>'.$enkaSettings['SMTPFrom'].'</span><input type="hidden" name="SMTPFrom0" value="'.$enkaSettings['SMTPFrom'].'"></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_from'].'</label>';
|
|
|
|
|
echo ' <input type="text" class="medium" disabled="disabled" value="'.$enkaSettings['SMTPFrom'].'"><input type="hidden" name="SMTPFrom0" value="'.$enkaSettings['SMTPFrom'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
# replyTo
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_reply'].'<input type="text" name="SMTPReplyTo0" value="'.$enkaSettings['SMTPReplyTo'].'" ></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_reply'].'</label>';
|
|
|
|
|
echo ' <input type="text" class="medium" name="SMTPReplyTo0" value="'.$enkaSettings['SMTPReplyTo'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
#delay
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').': <select name="SMTPDelay0">'
|
|
|
|
|
/*. '<option value="0" '.($enkaSettings['SMTPDelay']=="0"?'selected="selected"':'') .'>0 </option>'
|
|
|
|
|
. '<option value="10000" '.($enkaSettings['SMTPDelay']=="10000"?'selected="selected"':'') .'>0.01 sec (max 100 / sec)</option>'
|
|
|
|
|
. '<option value="20000" '.($enkaSettings['SMTPDelay']=="20000"?'selected="selected"':'') .'>0.02 sec (max 50 / sec)</option>'
|
|
|
|
|
. '<option value="50000" '.($enkaSettings['SMTPDelay']=="50000"?'selected="selected"':'') .'>0.05 sec (max 20 / sec)</option>'
|
|
|
|
|
. '<option value="100000" '.($enkaSettings['SMTPDelay']=="100000"?'selected="selected"':'') .'>0.1 sec (max 10 / sec)</option>'
|
|
|
|
|
. '<option value="200000" '.($enkaSettings['SMTPDelay']=="200000"?'selected="selected"':'') .'>0.2 sec (max 5 / sec)</option>'*/
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').':</label>';
|
|
|
|
|
echo ' <select class="dropdown medium" name="SMTPDelay0">'
|
|
|
|
|
. '<option value="500000" '.($enkaSettings['SMTPDelay']=="500000"?'selected="selected"':'') .'>0.5 sec (max 2 / sec)</option>'
|
|
|
|
|
. '<option value="1000000" '.($enkaSettings['SMTPDelay']=="1000000"?'selected="selected"':'') .'>1 sec (max 1 / sec)</option>'
|
|
|
|
|
. '<option value="2000000" '.($enkaSettings['SMTPDelay']=="2000000"?'selected="selected"':'') .'>2 sec (max 30 / min)</option>'
|
|
|
|
@ -9930,80 +10063,165 @@ class SurveyInvitationsNew {
|
|
|
|
|
. '<option value="10000000" '.($enkaSettings['SMTPDelay']=="10000000"?'selected="selected"':'') .'>10 sec (max 6 / min)</option>'
|
|
|
|
|
. '<option value="20000000" '.($enkaSettings['SMTPDelay']=="20000000"?'selected="selected"':'') .'>20 sec (max 3 / min)</option>'
|
|
|
|
|
. '<option value="30000000" '.($enkaSettings['SMTPDelay']=="30000000"?'selected="selected"':'') .'>30 sec (max 2 / min)</option>'
|
|
|
|
|
. '</select></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
. '</select>';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#GMAIL - Google
|
|
|
|
|
$enkaSettings = $MA->getGoogleSettings();
|
|
|
|
|
|
|
|
|
|
echo '<div id="send_mail_mode1" '.(!$MA->isGoogle() || $squalo->getSqualoActive() ? ' class="displayNone"' : '').'>';
|
|
|
|
|
echo '<br /><span class="italic">'.$lang['srv_email_setting_adapter1_note'].'</span><br />';
|
|
|
|
|
echo '<br /><span class="bold">'.$lang['srv_email_setting_settings'].'</span><br />';
|
|
|
|
|
# from
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_from'].'<input type="text" name="SMTPFrom1" value="'.$enkaSettings['SMTPFrom'].'"></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
# replyTo
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_reply'].'<input type="text" name="SMTPReplyTo1" value="'.$enkaSettings['SMTPReplyTo'].'" ></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
#Password
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_password'].'<input type="password" name="SMTPPassword1" placeholder="'.$lang['srv_email_setting_password_placeholder'].'"></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
echo ' <div class="setting_item italic">'.$lang['srv_email_setting_adapter1_note'].'</div>';
|
|
|
|
|
echo ' <div class="setting_item semi-bold">'.$lang['srv_email_setting_settings'].'</div>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
# from
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_from'].'</label>';
|
|
|
|
|
echo ' <input type="text" name="SMTPFrom1" value="'.$enkaSettings['SMTPFrom'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
# replyTo
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_reply'].'</label>';
|
|
|
|
|
echo ' <input type="text" name="SMTPReplyTo1" value="'.$enkaSettings['SMTPReplyTo'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
#Password
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_password'].'</label>';
|
|
|
|
|
echo ' <input type="password" name="SMTPPassword1" placeholder="'.$lang['srv_email_setting_password_placeholder'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#SMTP
|
|
|
|
|
$enkaSettings = $MA->getSMTPSettings();
|
|
|
|
|
|
|
|
|
|
echo '<div id="send_mail_mode2" '.(!$MA->isSMTP() || $squalo->getSqualoActive() ? ' class="displayNone"' : '').'>';
|
|
|
|
|
echo '<br /><span class="italic">'.$lang['srv_email_setting_adapter2_note'].'</span><br />';
|
|
|
|
|
echo '<br /><span class="bold">'.$lang['srv_email_setting_settings'].'</span><br />';
|
|
|
|
|
# from - NICE
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_from_nice'].'<input type="text" name="SMTPFromNice2" value="'.$enkaSettings['SMTPFromNice'].'"></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
# from
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_from'].'<input type="text" name="SMTPFrom2" value="'.$enkaSettings['SMTPFrom'].'"></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
# replyTo
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_reply'].'<input type="text" name="SMTPReplyTo2" value="'.$enkaSettings['SMTPReplyTo'].'" ></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
#Username
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_username'].'<input type="text" name="SMTPUsername2" value="'.$enkaSettings['SMTPUsername'].'" ></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
#Password
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_password'].'<input type="password" name="SMTPPassword2" placeholder="'.$lang['srv_email_setting_password_placeholder'].'"></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
#autentikacija
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo $lang['srv_email_setting_autentication'];
|
|
|
|
|
echo '<label><input type="radio" name="SMTPAuth2" value="0" '.((int)$enkaSettings['SMTPAuth'] != 1 ? 'checked ="checked" ' : '').'>';
|
|
|
|
|
echo $lang['srv_email_setting_no'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="SMTPAuth2" value="1" '.((int)$enkaSettings['SMTPAuth'] == 1 ? 'checked ="checked" ' : '').'>';
|
|
|
|
|
echo $lang['srv_email_setting_yes'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
#Varnost SMTPSecure
|
|
|
|
|
echo '<p>';
|
|
|
|
|
echo $lang['srv_email_setting_encryption'];
|
|
|
|
|
echo '<label><input type="radio" name="SMTPSecure2" value="0" '.((int)$enkaSettings['SMTPSecure'] == 0 ? 'checked ="checked" ' : '').'>';
|
|
|
|
|
echo $lang['srv_email_setting_encryption_none'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="SMTPSecure2" value="ssl" '.($enkaSettings['SMTPSecure'] == 'ssl' ? 'checked ="checked" ' : '').'>';
|
|
|
|
|
echo $lang['srv_email_setting_encryption_ssl'].'</label>';
|
|
|
|
|
echo '<label><input type="radio" name="SMTPSecure2" value="tls" '.($enkaSettings['SMTPSecure'] == 'tls' ? 'checked ="checked" ' : '').'>';
|
|
|
|
|
echo $lang['srv_email_setting_encryption_tls'].'</label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
#port
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_port'].'<input type="number" min="0" max="65535" name="SMTPPort2" value="'.(int)$enkaSettings['SMTPPort'].'" style="width:80px;"></label>';
|
|
|
|
|
echo ' '.$lang['srv_email_setting_port_note'];
|
|
|
|
|
echo '</p>';
|
|
|
|
|
#host
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_host'].'<input type="text" name="SMTPHost2" value="'.$enkaSettings['SMTPHost'].'" ></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder">';
|
|
|
|
|
echo ' <div class="setting_item italic">'.$lang['srv_email_setting_adapter2_note'].'</div>';
|
|
|
|
|
echo ' <div class="setting_item semi-bold">'.$lang['srv_email_setting_settings'].'</div>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
# from - NICE
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_from_nice'].'</label>';
|
|
|
|
|
echo ' <input type="text" class="medium" name="SMTPFromNice2" value="'.$enkaSettings['SMTPFromNice'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
# from
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_from'].'</label>';
|
|
|
|
|
echo ' <input type="text" class="medium" name="SMTPFrom2" value="'.$enkaSettings['SMTPFrom'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
# replyTo
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_reply'].'</label>';
|
|
|
|
|
echo ' <input type="text" class="medium" name="SMTPReplyTo2" value="'.$enkaSettings['SMTPReplyTo'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
#Username
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_username'].'</label>';
|
|
|
|
|
echo ' <input type="text" class="medium" name="SMTPUsername2" value="'.$enkaSettings['SMTPUsername'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
#Password
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_password'].'</label>';
|
|
|
|
|
echo ' <input type="password" class="medium" name="SMTPPassword2" placeholder="'.$lang['srv_email_setting_password_placeholder'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
#autentikacija
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_autentication'].':</label>';
|
|
|
|
|
echo ' <select class="dropdown medium" name="SMTPAuth2">'
|
|
|
|
|
. '<option value="0" '.((int)$enkaSettings['SMTPAuth']!="1" ? 'selected="selected"' : '') .'>'.$lang['srv_email_setting_no'].'</option>'
|
|
|
|
|
. '<option value="1" '.((int)$enkaSettings['SMTPAuth']=="1" ? 'selected="selected"' : '') .'>'.$lang['srv_email_setting_yes'].'</option>'
|
|
|
|
|
. '</select>';
|
|
|
|
|
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
#Varnost SMTPSecure
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_encryption'].':</label>';
|
|
|
|
|
echo ' <select class="dropdown medium" name="SMTPSecure2">'
|
|
|
|
|
. '<option value="0" '.($enkaSettings['SMTPSecure']=="0" ? 'selected="selected"' : '') .'>'.$lang['srv_email_setting_encryption_none'].'</option>'
|
|
|
|
|
. '<option value="ssl" '.($enkaSettings['SMTPSecure']=="ssl" ? 'selected="selected"' : '') .'>'.$lang['srv_email_setting_encryption_ssl'].'</option>'
|
|
|
|
|
. '<option value="tls" '.($enkaSettings['SMTPSecure']=="tls" ? 'selected="selected"' : '') .'>'.$lang['srv_email_setting_encryption_tls'].'</option>'
|
|
|
|
|
. '</select>';
|
|
|
|
|
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
#port
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_port'].$lang['srv_email_setting_port_note'].'</label>';
|
|
|
|
|
echo ' <input type="number" class="medium" min="0" max="65535" name="SMTPPort2" value="'.(int)$enkaSettings['SMTPPort'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
#host
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_host'].'</label>';
|
|
|
|
|
echo ' <input type="text" class="medium" name="SMTPHost2" value="'.$enkaSettings['SMTPHost'].'">';
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="setting_holder half-half">';
|
|
|
|
|
|
|
|
|
|
#delay
|
|
|
|
|
echo '<p><label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').': <select name="SMTPDelay2">'
|
|
|
|
|
/*. '<option value="0" '.($enkaSettings['SMTPDelay']=="0"?'selected="selected"':'') .'>0 </option>'
|
|
|
|
|
. '<option value="10000" '.($enkaSettings['SMTPDelay']=="10000"?'selected="selected"':'') .'>0.01 sec (max 100 / sec)</option>'
|
|
|
|
|
. '<option value="20000" '.($enkaSettings['SMTPDelay']=="20000"?'selected="selected"':'') .'>0.02 sec (max 50 / sec)</option>'
|
|
|
|
|
. '<option value="50000" '.($enkaSettings['SMTPDelay']=="50000"?'selected="selected"':'') .'>0.05 sec (max 20 / sec)</option>'
|
|
|
|
|
. '<option value="100000" '.($enkaSettings['SMTPDelay']=="100000"?'selected="selected"':'') .'>0.1 sec (max 10 / sec)</option>'
|
|
|
|
|
. '<option value="200000" '.($enkaSettings['SMTPDelay']=="200000"?'selected="selected"':'') .'>0.2 sec (max 5 / sec)</option>'*/
|
|
|
|
|
echo ' <div class="setting_item">';
|
|
|
|
|
|
|
|
|
|
echo ' <label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').':</label>';
|
|
|
|
|
echo ' <select class="dropdown medium" name="SMTPDelay2">'
|
|
|
|
|
. '<option value="500000" '.($enkaSettings['SMTPDelay']=="500000"?'selected="selected"':'') .'>0.5 sec (max 2 / sec)</option>'
|
|
|
|
|
. '<option value="1000000" '.($enkaSettings['SMTPDelay']=="1000000"?'selected="selected"':'') .'>1 sec (max 1 / sec)</option>'
|
|
|
|
|
. '<option value="2000000" '.($enkaSettings['SMTPDelay']=="2000000"?'selected="selected"':'') .'>2 sec (max 30 / min)</option>'
|
|
|
|
@ -10012,22 +10230,27 @@ class SurveyInvitationsNew {
|
|
|
|
|
. '<option value="10000000" '.($enkaSettings['SMTPDelay']=="10000000"?'selected="selected"':'') .'>10 sec (max 6 / min)</option>'
|
|
|
|
|
. '<option value="20000000" '.($enkaSettings['SMTPDelay']=="20000000"?'selected="selected"':'') .'>20 sec (max 3 / min)</option>'
|
|
|
|
|
. '<option value="30000000" '.($enkaSettings['SMTPDelay']=="30000000"?'selected="selected"':'') .'>30 sec (max 2 / min)</option>'
|
|
|
|
|
. '</select></label>';
|
|
|
|
|
echo '</p>';
|
|
|
|
|
. '</select>';
|
|
|
|
|
|
|
|
|
|
echo ' </div>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
echo '</form>';
|
|
|
|
|
|
|
|
|
|
echo '<br class="clr" />';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="button_holder below float-right">';
|
|
|
|
|
|
|
|
|
|
// Gumb shrani
|
|
|
|
|
echo '<span class="floatRight" ><div class="buttonwrapper"><a class="ovalbutton ovalbutton_orange btn_savesettings" href="#" onclick="document.settingsanketa_' . $row['id'] . '.submit(); return false;">';
|
|
|
|
|
echo $lang['srv_email_setting_btn_save'] . '</a></div></span>';
|
|
|
|
|
echo '<button class="white-black medium" onclick="document.settingsanketa_'.$row['id'].'.submit(); return false;">'.$lang['srv_email_setting_btn_save'].'</button>';
|
|
|
|
|
|
|
|
|
|
// Gumb preveri nastavitve
|
|
|
|
|
echo '<span id="send_mail_mode_test" class="floatRight spaceRight '.($squalo->getSqualoActive() ? ' displayNone' : '').'"><div class="buttonwrapper"><a class="ovalbutton ovalbutton_green" href="#" onclick="showTestSurveySMTP(); return false;">';
|
|
|
|
|
echo $lang['srv_email_setting_btn_test'].'</a></div></span>';
|
|
|
|
|
echo '<button id="send_mail_mode_test" class="white-blue medium '.($squalo->getSqualoActive() ? ' displayNone' : '').'" onclick="showTestSurveySMTP(); return false;">'.$lang['srv_email_setting_btn_test'].'</button>';
|
|
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($_GET['s'] == '1') {
|
|
|
|
|