Redesign - vabila - V DELU

This commit is contained in:
pero1203 2022-04-07 12:48:46 +02:00
parent 5856e87945
commit 4c291ea4bf
10 changed files with 731 additions and 401 deletions

View File

@ -508,13 +508,14 @@ class SurveyInvitationsNew {
function addRecipientsView( $fields = array(), $recipients_list=null) { function addRecipientsView( $fields = array(), $recipients_list=null) {
global $lang; global $lang;
global $site_url; global $site_url;
//echo '<h2>'.$lang['srv_inv_add_recipients_heading'].'</h2>';
$noEmailing = SurveySession::get('inv_noEmailing'); $noEmailing = SurveySession::get('inv_noEmailing');
$row = $this->surveySettings; $row = $this->surveySettings;
echo '<h2 style="margin-left: 15px; color:#333 !important;">';
echo '<div class="invitations_top_settings">';
// Text s podatki o nastavitvah posiljanja // Text s podatki o nastavitvah posiljanja
$settings_text = '<span class="bold spaceRight">'.$lang['srv_inv_message_type'].':</span>'; $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>'; $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 $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 $lang['srv_invitation_num_respondents'].(int)$this->count_all;
echo '</div>'; echo '</div>';
echo '</div>';
echo '<div id="inv_import">';
echo '<div id="inv_import" class="invitations_holder left-menu">';
$this->displayAddRecipientsView($fields, $recipients_list); $this->displayAddRecipientsView($fields, $recipients_list);
echo '</div>'; # id="inv_import" echo '</div>'; # id="inv_import"
} }
@ -625,17 +627,29 @@ class SurveyInvitationsNew {
session_start(); session_start();
$checked = (isset($_SESSION['inv_rec_only_this_survey']) && (int)$_SESSION['inv_rec_only_this_survey'] == 1) ? '1' : '0'; $checked = (isset($_SESSION['inv_rec_only_this_survey']) && (int)$_SESSION['inv_rec_only_this_survey'] == 1) ? '1' : '0';
# profili respondentov # profili respondentov
echo '<div id="inv_recipients_profiles_holder">'; echo '<fieldset id="inv_recipients_profiles_holder" class="left_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 '<div class="setting_holder">';
echo '<span>'.$lang['srv_inv_recipient_select_list'].'</span><br/>'; 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(); $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'"); $sqlSysMapping = sisplet_query("SELECT * FROM srv_invitations_mapping WHERE sid = '$this->sid'");
if (mysqli_num_rows($sqlSysMapping) > 0) { if (mysqli_num_rows($sqlSysMapping) > 0) {
@ -649,16 +663,13 @@ class SurveyInvitationsNew {
.($sysUserToAdd > 0 ? ' ('.$sysUserToAdd.')' : '').'</label></span>'; .($sysUserToAdd > 0 ? ' ('.$sysUserToAdd.')' : '').'</label></span>';
echo Help::display('inv_recipiens_from_system'); echo Help::display('inv_recipiens_from_system');
echo '<br class="clr"/>';
echo '<br class="clr"/>';
if ($import_type == 3) { if ($import_type == 3) {
$this->createSystemVariablesMapping(); $this->createSystemVariablesMapping();
} }
else { else {
# sporočilo za personalizirana e-vabila in respondente iz baze # sporočilo za personalizirana e-vabila in respondente iz baze
echo '<span class="inv_note">'.$lang['srv_inv_recipiens_field_note'].'</span>'; echo '<span class="inv_note">'.$lang['srv_inv_recipiens_field_note'].'</span>';
@ -774,10 +785,6 @@ class SurveyInvitationsNew {
echo '<div>'; 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_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 '&nbsp;';
#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>';
echo '<div id="div_inv_recipients_rename_list_type" class="displayNone">'; 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 '<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_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]; $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 '<span>'.$lang['srv_invitation_message_choose'].':</span><br/>';
echo '<div id="invitation_messages" >'; echo '<div id="invitation_messages" >';
echo '<ol>'; echo '<ol>';
@ -2074,7 +2080,7 @@ class SurveyInvitationsNew {
echo '</div>'; echo '</div>';
echo '<div id="invitation_profile_notes" class="right"><p>'; echo '<div id="invitation_profile_notes" class="right_holder"><p>';
$_indicators = $this->getAvailableIndicators(); $_indicators = $this->getAvailableIndicators();
@ -2140,7 +2146,7 @@ class SurveyInvitationsNew {
} }
$preview_message = $array_messages[$mid]; $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 '<span>'.$lang['srv_invitation_message_choose'].':</span><br/>';
echo '<div id="invitation_messages" >'; echo '<div id="invitation_messages" >';
echo '<ol>'; echo '<ol>';
@ -2204,7 +2210,7 @@ class SurveyInvitationsNew {
$MA = new MailAdapter($this->sid, $type='invitation'); $MA = new MailAdapter($this->sid, $type='invitation');
# zlistamo seznam vseh sporočil # zlistamo seznam vseh sporočil
# izpišemo primer besedila # 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'); 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 $text3;
echo '</p>'; echo '</p>';
// Gumb OMOGOCI VABILA // 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']; $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 '<button class="blue medium" onclick="enableEmailInvitation(\'1\');">'.$text_button.'</button>';
//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>';
echo '</div>'; echo '</div>';
echo '</fieldset>'; echo '</fieldset>';
@ -7661,7 +7671,7 @@ class SurveyInvitationsNew {
// Leva stran - navadne nastavitve // 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 '<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">'; echo '<div class="inv_filedset_inline_div">';
@ -7674,106 +7684,200 @@ class SurveyInvitationsNew {
$voting_disabled = ' disabled'; $voting_disabled = ' disabled';
// Warning za volitve // 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']; $individual = (int)$this->surveySettings['individual_invitation'];
// Individualizirana vabila - GLAVNA NASTAVITEV // Individualizirana vabila - GLAVNA NASTAVITEV
echo '<p>'; echo '<div class="setting_holder">';
echo '<label class="lbl_email_setting">'.$lang['srv_user_base_individual_invitaition'];
echo ' <div class="setting_title">'.$lang['srv_user_base_individual_invitaition'];
if($individual == 0) if($individual == 0)
echo ' '.Help::display('srv_user_base_individual_invitaition_note2').' </label>'; echo ' '.Help::display('srv_user_base_individual_invitaition_note2').' </label>';
else else
echo ' '.Help::display('srv_user_base_individual_invitaition_note').' </label>'; 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 ' </div>';
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 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 // Ce niso indvidualizirana imamo samo nacin posiljanja
if ($individual == 0) { if ($individual == 0) {
// Nacin posiljanja (email, posta, sms...) // Nacin posiljanja (email, posta, sms...)
echo '<p>'; echo '<div class="setting_holder">';
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 ' <div class="setting_title">'.$lang['srv_inv_message_type'].': '.Help::display('srv_inv_sending_type').'</div>';
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_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) // Nacin dokumentiranja (posta, sms, drugo)
if($noEmailing == 1){ if($noEmailing == 1){
$noEmailingType = SurveySession::get('inv_noEmailing_type'); $noEmailingType = SurveySession::get('inv_noEmailing_type');
echo '<p>';
echo '<label class="lbl_email_setting">'.$lang['srv_inv_message_type_external'].':</label>'; echo '<div class="setting_holder">';
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 ' <div class="setting_title">'.$lang['srv_inv_message_type_external'].':</div>';
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_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 # Normalna vabila z unikatinim URL
else { else {
// Nacin posiljanja (email, posta, sms...) // Nacin posiljanja (email, posta, sms...)
echo '<p>'; echo '<div class="setting_holder">';
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 ' <div class="setting_title">'.$lang['srv_inv_message_type'].': '.Help::display('srv_inv_sending_type').'</div>';
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_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) // Nacin dokumentiranja (posta, sms, drugo)
if($noEmailing == 1){ if($noEmailing == 1){
$noEmailingType = SurveySession::get('inv_noEmailing_type'); $noEmailingType = SurveySession::get('inv_noEmailing_type');
echo '<p>';
echo '<label class="lbl_email_setting">'.$lang['srv_inv_message_type_external'].':</label>'; echo '<div class="setting_holder">';
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 ' <div class="setting_title">'.$lang['srv_inv_message_type_external'].':</div>';
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_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) // Vnos kode - samo ce je email (drugace itak vedno rocni vnos)
if($noEmailing != 1){ if($noEmailing != 1){
echo '<p>';
echo '<label class="lbl_email_setting">'.$lang['usercode_required1'].':'.Help::display('usercode_required').'</label>'; echo '<div class="setting_holder">';
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 ' <div class="setting_title">'.$lang['usercode_required1'].':'.Help::display('usercode_required').'</div>';
echo '</p>';
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) { if ($row['usercode_required'] != 0) {
echo '<p>';
echo '<div class="setting_holder">';
if($noEmailing == 1) if($noEmailing == 1)
echo '<label class="lbl_email_setting">'.$lang['usercode_text2'].': </label><br />'; echo '<label>'.$lang['usercode_text2'].':</label>';
else 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']; $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 ' <textarea style="width:100%; height:65px;" name="usercode_text" onblur="surveyBaseSettingText(\'usercode_text\',false);return false;">'.$nagovorText.'</textarea>';
echo '</p>';
echo '</div>';
} }
// Dostop brez kode // Dostop brez kode
echo '<div class="setting_holder">';
echo '<p><label for="usercode_skip_0" class="lbl_email_setting">'; echo ' <div class="setting_item">';
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 '<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 '</label></p>'; echo ' </div>';
echo '</div>';
if($row['usercode_skip'] > 0){ 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 '<div class="setting_holder">';
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 class="setting_title">'.$lang['srv_user_base_access'].Help::display('usercode_skip').' </div>';
echo '</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 // Gumb shrani - samo provizorično
echo '<div class="buttonwrapper"><a class="ovalbutton floatRight" href="#" title="'.$lang['save'].'">'.$lang['save'].'</a></div>'; echo '<div class="button_holder below float-right">';
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 ' <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>'; echo '</div>';
@ -7791,7 +7895,7 @@ class SurveyInvitationsNew {
// Gorenje tega nima // Gorenje tega nima
if (!Common::checkModule('gorenje')){ 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 '<fieldset class="inv_fieldset"><legend>'.$lang['srv_email_setting_title'].'</legend>';
echo '<div class="inv_filedset_inline_div">'; echo '<div class="inv_filedset_inline_div">';
@ -7835,10 +7939,14 @@ class SurveyInvitationsNew {
echo $lang['srv_invitation_nonActivated_text3']; echo $lang['srv_invitation_nonActivated_text3'];
echo '</p>'; echo '</p>';
// Gumb ZAPROSI ZA DOSTOP DO VABIL // 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 '<div class="button_holder below">';
//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 ' <a href="https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1" target="_blank">';
echo '<br />'; echo ' <button class="blue medium">'.$lang['srv_invitation_nonActivated_button_details'].'</button>';
echo ' </a>';
echo '</div>';
echo '</div>'; echo '</div>';
echo '</fieldset>'; echo '</fieldset>';
@ -9817,7 +9925,7 @@ class SurveyInvitationsNew {
} }
function viewServerSettings(){ private function viewServerSettings(){
global $lang; global $lang;
global $site_url; global $site_url;
global $site_url; global $site_url;
@ -9849,15 +9957,17 @@ class SurveyInvitationsNew {
if($squalo->getSqualoEnabled()){ if($squalo->getSqualoEnabled()){
// Vklop squalo // Vklop squalo
echo '<div class="squalo_switch"><p>'; echo '<div class="setting_holder squalo_switch">';
echo '<span class="bold">'.$lang['srv_squalo'].':</span>&nbsp;'; echo ' <div class="setting_title">'.$lang['srv_squalo'].':</div>';
echo '<input type="hidden" name="squalo_mode" value="0">'; echo ' <div class="setting_item">';
echo '<label><input type="checkbox" name="squalo_mode" id="squalo_mode" value="1" '.($squalo->getSqualoActive() ? 'checked ="checked" ' : '').' style="vertical-align:-2px;" onclick="squaloSwitch();">'; echo ' <input type="hidden" name="squalo_mode" value="0">';
echo $lang['srv_squalo_sending'].' </label>'; 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... // Squalo nastavitve...
@ -9873,55 +9983,78 @@ class SurveyInvitationsNew {
echo '<div class="mail_mode_switch '.($squalo->getSqualoActive() ? ' displayNone' : '').'">'; echo '<div class="mail_mode_switch '.($squalo->getSqualoActive() ? ' displayNone' : '').'">';
// Opozorilo, ce imamo vklopljena vabila, da gre za iste nastavitve // 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 // Izbira SMTP streznika
echo '<span class="bold">'.$lang['srv_email_setting_select_server'].'</span>&nbsp;'; echo '<div class="setting_holder">';
echo ' <div class="setting_title">'.$lang['srv_email_setting_select_server'].'</div>';
// AAI ima Arnesov smtp // AAI ima Arnesov smtp
if(isAAI()){ if(isAAI()){
echo '<label><input type="radio" name="SMTPMailMode" value="0" '.($MA->is1KA() ? 'checked ="checked" ' : '').' onclick="smtpAAIPopupShow();">'; echo ' <div class="setting_item">';
echo $lang['srv_email_setting_adapter0_aai']. ' </label>'; 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{ 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 ' <div class="setting_item">';
echo $lang['srv_email_setting_adapter0']. ' </label>'; 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 // Google smtp je viden samo starim, kjer je ze vklopljen
if($MA->isGoogle()){ 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 ' <div class="setting_item">';
echo $lang['srv_email_setting_adapter1'].' </label>'; 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 // 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 ' <div class="setting_item">';
echo $lang['srv_email_setting_adapter2'].' </label>'; 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 Help :: display('srv_mail_mode'); echo ' </div>';
echo '</div>'; echo '</div>';
#1KA #1KA
$enkaSettings = $MA->get1KASettings($raziskave=true); $enkaSettings = $MA->get1KASettings($raziskave=true);
echo '<div id="send_mail_mode0" '.(!$MA->is1KA() || $squalo->getSqualoActive() ? ' class="displayNone"' : '').'>'; 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 # from
echo '<p><label>'.$lang['srv_email_setting_from'].'<span>'.$enkaSettings['SMTPFrom'].'</span><input type="hidden" name="SMTPFrom0" value="'.$enkaSettings['SMTPFrom'].'"></label>'; echo ' <div class="setting_item">';
echo '</p>'; 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 # replyTo
echo '<p><label>'.$lang['srv_email_setting_reply'].'<input type="text" name="SMTPReplyTo0" value="'.$enkaSettings['SMTPReplyTo'].'" ></label>'; echo ' <div class="setting_item">';
echo '</p>'; 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 #delay
echo '<p><label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').': <select name="SMTPDelay0">' echo ' <div class="setting_item">';
/*. '<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>' echo ' <label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').':</label>';
. '<option value="20000" '.($enkaSettings['SMTPDelay']=="20000"?'selected="selected"':'') .'>0.02 sec (max 50 / sec)</option>' echo ' <select class="dropdown medium" name="SMTPDelay0">'
. '<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>'*/
. '<option value="500000" '.($enkaSettings['SMTPDelay']=="500000"?'selected="selected"':'') .'>0.5 sec (max 2 / sec)</option>' . '<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="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>' . '<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="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="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>' . '<option value="30000000" '.($enkaSettings['SMTPDelay']=="30000000"?'selected="selected"':'') .'>30 sec (max 2 / min)</option>'
. '</select></label>'; . '</select>';
echo '</p>'; echo ' </div>';
echo '</div>';
echo '</div>'; echo '</div>';
#GMAIL - Google #GMAIL - Google
$enkaSettings = $MA->getGoogleSettings(); $enkaSettings = $MA->getGoogleSettings();
echo '<div id="send_mail_mode1" '.(!$MA->isGoogle() || $squalo->getSqualoActive() ? ' class="displayNone"' : '').'>'; 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 />'; echo '<div class="setting_holder">';
# from echo ' <div class="setting_item italic">'.$lang['srv_email_setting_adapter1_note'].'</div>';
echo '<p><label>'.$lang['srv_email_setting_from'].'<input type="text" name="SMTPFrom1" value="'.$enkaSettings['SMTPFrom'].'"></label>'; echo ' <div class="setting_item semi-bold">'.$lang['srv_email_setting_settings'].'</div>';
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>'; 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 #SMTP
$enkaSettings = $MA->getSMTPSettings(); $enkaSettings = $MA->getSMTPSettings();
echo '<div id="send_mail_mode2" '.(!$MA->isSMTP() || $squalo->getSqualoActive() ? ' class="displayNone"' : '').'>'; 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 />'; echo '<div class="setting_holder">';
# from - NICE echo ' <div class="setting_item italic">'.$lang['srv_email_setting_adapter2_note'].'</div>';
echo '<p><label>'.$lang['srv_email_setting_from_nice'].'<input type="text" name="SMTPFromNice2" value="'.$enkaSettings['SMTPFromNice'].'"></label>'; echo ' <div class="setting_item semi-bold">'.$lang['srv_email_setting_settings'].'</div>';
echo '</p>'; echo '</div>';
# 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 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 #delay
echo '<p><label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').': <select name="SMTPDelay2">' echo ' <div class="setting_item">';
/*. '<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>' echo ' <label>'.$lang['srv_email_setting_smtp_delay'].' '.Help::display('srv_inv_delay').':</label>';
. '<option value="20000" '.($enkaSettings['SMTPDelay']=="20000"?'selected="selected"':'') .'>0.02 sec (max 50 / sec)</option>' echo ' <select class="dropdown medium" name="SMTPDelay2">'
. '<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>'*/
. '<option value="500000" '.($enkaSettings['SMTPDelay']=="500000"?'selected="selected"':'') .'>0.5 sec (max 2 / sec)</option>' . '<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="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>' . '<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="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="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>' . '<option value="30000000" '.($enkaSettings['SMTPDelay']=="30000000"?'selected="selected"':'') .'>30 sec (max 2 / min)</option>'
. '</select></label>'; . '</select>';
echo '</p>';
echo ' </div>';
echo '</div>'; echo '</div>';
echo '</div>';
echo '</form>'; echo '</form>';
echo '<br class="clr" />';
echo '<div class="button_holder below float-right">';
// Gumb shrani // 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 '<button class="white-black medium" onclick="document.settingsanketa_'.$row['id'].'.submit(); return false;">'.$lang['srv_email_setting_btn_save'].'</button>';
echo $lang['srv_email_setting_btn_save'] . '</a></div></span>';
// Gumb preveri nastavitve // 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 '<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 $lang['srv_email_setting_btn_test'].'</a></div></span>';
echo '</div>';
if ($_GET['s'] == '1') { if ($_GET['s'] == '1') {

View File

@ -2315,7 +2315,7 @@ $lang = array (
"srv_user_base_individual_invitaition" => "Individualizirana vabila:", "srv_user_base_individual_invitaition" => "Individualizirana vabila:",
"srv_user_base_individual_invitaition_note" => "Individualizirana vabila omogočajo sledenje respondentom.", "srv_user_base_individual_invitaition_note" => "Individualizirana vabila omogočajo sledenje respondentom.",
"srv_user_base_individual_invitaition_note2" => "Z izbiro \"Ne\" je modul individualiziranih vabil izklopljen. Anketira se lahko vsak, ki vidi ali pozna URL naslov. Respondentov v takem primeru ne moremo slediti; ne vemo kdo je odgovoril in kdo ne. Sistem 1KA lahko kljub temu pošlje (email) oziroma dokumentira (pošta, SMS, drugo) pošiljanje splošnega ne-individualiziranega vabila, kjer vsi respondenti prejmejo enotni URL. To pomeni, da se zabeležilo, komu, kdaj in kako je bilo vabilo poslano, ne bo pa označeno, kdo je odgovoril in kdo ne.", "srv_user_base_individual_invitaition_note2" => "Z izbiro \"Ne\" je modul individualiziranih vabil izklopljen. Anketira se lahko vsak, ki vidi ali pozna URL naslov. Respondentov v takem primeru ne moremo slediti; ne vemo kdo je odgovoril in kdo ne. Sistem 1KA lahko kljub temu pošlje (email) oziroma dokumentira (pošta, SMS, drugo) pošiljanje splošnega ne-individualiziranega vabila, kjer vsi respondenti prejmejo enotni URL. To pomeni, da se zabeležilo, komu, kdaj in kako je bilo vabilo poslano, ne bo pa označeno, kdo je odgovoril in kdo ne.",
"srv_user_base_access_check" => "Omogoči dostop do ankete tudi brez individualiziranega vabila (kode):", "srv_user_base_access_check" => "Omogoči dostop do ankete tudi brez individualiziranega vabila (kode)",
"srv_user_base_access" => "Dostop brez kode:", "srv_user_base_access" => "Dostop brez kode:",
"srv_user_base_access_alert_0" => "Pri privzeti nastavitvi »NE«, respondenti brez kode oziroma vabila ne bodo mogli dostopati do ankete!", "srv_user_base_access_alert_0" => "Pri privzeti nastavitvi »NE«, respondenti brez kode oziroma vabila ne bodo mogli dostopati do ankete!",
"srv_user_base_access_alert_1" => "Pri nastavitvi »DA« bodo v anekto lahko vstopali vsi respondenti!", "srv_user_base_access_alert_1" => "Pri nastavitvi »DA« bodo v anekto lahko vstopali vsi respondenti!",

View File

@ -2300,7 +2300,7 @@ $lang = array (
"srv_user_base_individual_invitaition" => "Personalized invitations:", "srv_user_base_individual_invitaition" => "Personalized invitations:",
"srv_user_base_individual_invitaition_note" => "Personalized invitations allow for respondent tracing.", "srv_user_base_individual_invitaition_note" => "Personalized invitations allow for respondent tracing.",
"srv_user_base_individual_invitaition_note2" => "Z izbiro \"Ne\" je modul individualiziranih vabil izklopljen. Anketira se lahko vsak, ki vidi ali pozna URL naslov. Respondentov v takem primeru ne moremo slediti; ne vemo kdo je odgovoril in kdo ne.<br />Sistem 1KA lahko kljub temu pošlje (email) oziroma dokumentira (pošta, SMS, drugo) pošiljanje splošnega ne-individualiziranega vabila, kjer vsi respondenti prejmejo enotni URL. To pomeni, da se zabeležilo, komu, kdaj in kako je bilo vabilo poslano, ne bo pa označeno, kdo je odgovoril in kdo ne.", "srv_user_base_individual_invitaition_note2" => "Z izbiro \"Ne\" je modul individualiziranih vabil izklopljen. Anketira se lahko vsak, ki vidi ali pozna URL naslov. Respondentov v takem primeru ne moremo slediti; ne vemo kdo je odgovoril in kdo ne.<br />Sistem 1KA lahko kljub temu pošlje (email) oziroma dokumentira (pošta, SMS, drugo) pošiljanje splošnega ne-individualiziranega vabila, kjer vsi respondenti prejmejo enotni URL. To pomeni, da se zabeležilo, komu, kdaj in kako je bilo vabilo poslano, ne bo pa označeno, kdo je odgovoril in kdo ne.",
"srv_user_base_access_check" => "Enable the access to the survey without individualized invitation (code):", "srv_user_base_access_check" => "Enable the access to the survey without individualized invitation (code)",
"srv_user_base_access" => "Access without password:", "srv_user_base_access" => "Access without password:",
"srv_user_base_access_alert_0" => "With default setting »NO«, respondents will not be able to access survey without a code!", "srv_user_base_access_alert_0" => "With default setting »NO«, respondents will not be able to access survey without a code!",
"srv_user_base_access_alert_1" => "With setting »YES«, all respondents will be able to access survey!", "srv_user_base_access_alert_1" => "With setting »YES«, all respondents will be able to access survey!",

View File

@ -9171,6 +9171,13 @@ div.button_holder.below {
div.button_holder.intext { div.button_holder.intext {
margin: 16px 0; margin: 16px 0;
} }
div.button_holder.float-right {
justify-content: end;
}
div.button_holder.float-right button {
margin-left: 16px;
margin-right: 0;
}
label { label {
cursor: pointer; cursor: pointer;
@ -9186,7 +9193,7 @@ label.empty {
font-size: 0; font-size: 0;
} }
input[type=text], input[type=password] { input[type=text], input[type=password], input[type=number] {
border: 1px solid #C4C4C4; border: 1px solid #C4C4C4;
box-sizing: border-box; box-sizing: border-box;
border-radius: 2px; border-radius: 2px;
@ -9194,40 +9201,40 @@ input[type=text], input[type=password] {
margin-top: 4px; margin-top: 4px;
font-family: Source Sans Pro, sans-serif; font-family: Source Sans Pro, sans-serif;
} }
input[type=text].w200, input[type=password].w200 { input[type=text].w200, input[type=password].w200, input[type=number].w200 {
width: 200px; width: 200px;
} }
input[type=text].w300, input[type=password].w300 { input[type=text].w300, input[type=password].w300, input[type=number].w300 {
width: 300px; width: 300px;
} }
input[type=text].w400, input[type=password].w400 { input[type=text].w400, input[type=password].w400, input[type=number].w400 {
width: 400px; width: 400px;
} }
input[type=text].wauto, input[type=password].wauto { input[type=text].wauto, input[type=password].wauto, input[type=number].wauto {
width: auto; width: auto;
} }
input[type=text].large, input[type=password].large { input[type=text].large, input[type=password].large, input[type=number].large {
height: 40px; height: 40px;
font-size: 16px; font-size: 16px;
padding: 9px 7px; padding: 9px 7px;
} }
input[type=text].medium, input[type=password].medium { input[type=text].medium, input[type=password].medium, input[type=number].medium {
height: 32px; height: 32px;
font-size: 14px; font-size: 14px;
padding: 6px 7px; padding: 6px 7px;
} }
input[type=text].small, input[type=password].small { input[type=text].small, input[type=password].small, input[type=number].small {
height: 26px; height: 26px;
font-size: 14px; font-size: 14px;
padding: 3px 7px; padding: 3px 7px;
} }
input[type=text]:focus, input[type=password]:focus { input[type=text]:focus, input[type=password]:focus, input[type=number]:focus {
outline-style: none; outline-style: none;
box-shadow: none; box-shadow: none;
border-color: transparent; border-color: transparent;
border-color: #1E88E5; border-color: #1E88E5;
} }
input[type=text][readonly=true], input[type=password][readonly=true] { input[type=text][readonly=true], input[type=password][readonly=true], input[type=number][readonly=true] {
cursor: pointer; cursor: pointer;
} }
input[type=radio], input[type=checkbox] { input[type=radio], input[type=checkbox] {
@ -9337,6 +9344,24 @@ fieldset .setting_holder span.charalimit {
fieldset .setting_holder.indent { fieldset .setting_holder.indent {
margin-left: 27px; margin-left: 27px;
} }
fieldset .setting_holder.half-half {
flex-direction: row;
}
fieldset .setting_holder.half-half .setting_item {
display: flex;
flex-direction: column;
width: 48%;
margin: 0;
}
fieldset .setting_holder.half-half .setting_item:first-child {
margin-right: 16px;
}
fieldset .setting_holder.half-half .setting_item input,
fieldset .setting_holder.half-half .setting_item select,
fieldset .setting_holder.half-half .setting_item textarea {
box-sizing: border-box;
width: 100%;
}
fieldset ul { fieldset ul {
margin-block-start: 0; margin-block-start: 0;
margin-block-end: 0; margin-block-end: 0;
@ -19997,36 +20022,36 @@ div#general_popup div.popup_content.publish.settings div#publish_settings_more {
.page_invitations .invitations_holder.half-half { .page_invitations .invitations_holder.half-half {
display: flex; display: flex;
} }
.page_invitations .invitations_holder.half-half .left { .page_invitations .invitations_holder.half-half .left_holder {
width: 50%; width: 50%;
margin-right: 32px; margin-right: 32px;
} }
.page_invitations .invitations_holder.half-half .right { .page_invitations .invitations_holder.half-half .right_holder {
width: 50%; width: 50%;
} }
.page_invitations .invitations_holder.left-menu { .page_invitations .invitations_holder.left-menu {
display: flex; display: flex;
} }
.page_invitations .invitations_holder.left-menu .left { .page_invitations .invitations_holder.left-menu .left_holder {
width: 300px; width: 300px;
min-width: 300px; min-width: 300px;
margin-right: 32px; margin-right: 32px;
} }
.page_invitations .invitations_holder.left-menu .right { .page_invitations .invitations_holder.left-menu .right_holder {
flex-grow: 1; flex-grow: 1;
} }
.page_invitations .invitations_holder.three-part { .page_invitations .invitations_holder.three-part {
display: flex; display: flex;
} }
.page_invitations .invitations_holder.three-part .left { .page_invitations .invitations_holder.three-part .left_holder {
width: 300px; width: 300px;
min-width: 300px; min-width: 300px;
margin-right: 32px; margin-right: 32px;
} }
.page_invitations .invitations_holder.three-part .middle { .page_invitations .invitations_holder.three-part .middle_holder {
flex-grow: 1; flex-grow: 1;
} }
.page_invitations .invitations_holder.three-part .right { .page_invitations .invitations_holder.three-part .right_holder {
width: 400px; width: 400px;
min-width: 400px; min-width: 400px;
margin-left: 32px; margin-left: 32px;
@ -20039,7 +20064,7 @@ div#general_popup div.popup_content.publish.settings div#publish_settings_more {
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
margin-bottom: 32px; margin-bottom: 48px;
color: #E5E5E5; color: #E5E5E5;
} }
.page_invitations #inv_top_navi .inv_step a { .page_invitations #inv_top_navi .inv_step a {
@ -20104,6 +20129,105 @@ and open the template in the editor.
Created on : 08-Aug-2018, 12:25:26 Created on : 08-Aug-2018, 12:25:26
Author : podkrizniku Author : podkrizniku
*/ */
body #main_holder #main .page_invitations .invitations_holder.fullwidth {
margin: 0 auto;
padding: 0 32px;
max-width: 1060px;
}
body #main_holder #main .page_invitations .invitations_holder.fullwidth fieldset p {
margin-bottom: 8px;
}
body #main_holder #main .page_invitations .invitations_top_settings {
margin-bottom: 16px;
font-weight: 600;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder {
min-height: 355px;
padding: 16px;
background: #FFFFFF;
border: 1px solid #E5E5E5;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder > span {
line-height: 28px;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder #inv_import_list_profiles {
display: flex;
flex-direction: column;
overflow-y: auto;
width: 100%;
min-width: 200px;
max-height: 400px;
border: 1px solid #E5E5E5;
background-color: white;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder #inv_import_list_profiles ol {
display: flex;
flex-direction: column;
margin: 0px;
padding: 0px;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder #inv_import_list_profiles ol li {
cursor: pointer;
list-style-type: none;
display: flex;
align-items: center;
height: 35px;
padding: 0px 8px;
border-bottom: 1px solid #E5E5E5;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder #inv_import_list_profiles ol li:last-child {
border-bottom: 0;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder #inv_import_list_profiles ol li.active {
color: #1E88E5;
background-color: #F4F9FE;
}
body #main_holder #main .page_invitations #inv_recipients_profiles_holder #inv_import_list_profiles ol li:hover {
background-color: #F4F9FE;
}
body #main_holder #main .page_invitations #inv_import_list_container {
min-height: 355px;
margin-bottom: 0;
}
body #main_holder #main .page_invitations #inv_import_list_container span label {
vertical-align: bottom;
}
body #main_holder #main .page_invitations #invitation_messages {
display: flex;
flex-direction: column;
overflow-y: auto;
width: 100%;
min-width: 200px;
max-height: 400px;
border: 1px solid #E5E5E5;
background-color: white;
}
body #main_holder #main .page_invitations #invitation_messages ol {
display: flex;
flex-direction: column;
margin: 0px;
padding: 0px;
}
body #main_holder #main .page_invitations #invitation_messages ol li {
cursor: pointer;
list-style-type: none;
display: flex;
align-items: center;
height: 35px;
padding: 0px 8px;
border-bottom: 1px solid #E5E5E5;
}
body #main_holder #main .page_invitations #invitation_messages ol li:last-child {
border-bottom: 0;
}
body #main_holder #main .page_invitations #invitation_messages ol li.active {
color: #1E88E5;
background-color: #F4F9FE;
}
body #main_holder #main .page_invitations #invitation_messages ol li:hover {
background-color: #F4F9FE;
}
.lbl_email_setting { .lbl_email_setting {
vertical-align: top; vertical-align: top;
line-height: 16px; line-height: 16px;
@ -20935,39 +21059,6 @@ input#inv_message_comment:focus {
color: #1E88E5; color: #1E88E5;
} }
#inv_import_list_container {
margin-right: 5px;
padding: 8px;
min-height: 355px;
width: 670px;
background: #EAF9FE;
border: 1px solid #1E88E5;
float: left;
display: inline-block;
width: auto;
}
#inv_import_list_container span label {
vertical-align: bottom;
}
#inv_recipients_profiles_holder {
margin-right: 5px;
padding: 8px;
min-height: 355px;
width: 670px;
background: #EAF9FE;
border: 1px solid #1E88E5;
float: left;
margin-left: 10px;
display: inline-block;
width: auto;
overflow: hidden;
}
#inv_recipients_profiles_holder span {
line-height: 24px;
font-size: 13px;
}
#inv_messages_profiles_holder { #inv_messages_profiles_holder {
margin-right: 5px; margin-right: 5px;
padding: 8px; padding: 8px;
@ -21346,76 +21437,6 @@ div.inv_step.active a span.circle {
max-width: 200px; max-width: 200px;
} }
#inv_import_list_profiles {
margin: 0px;
padding: 0px;
min-width: 100px;
max-width: 400px;
min-height: 100px;
max-height: 600px;
overflow: auto !important;
display: inline-block;
border: 1px solid #E5E5E5;
background-color: white;
width: 200px !important;
height: 237px !important;
}
#inv_import_list_profiles ol {
margin: 0px;
padding: 0px;
display: block;
border-bottom: 1px solid #E5E5E5;
}
#inv_import_list_profiles ol li {
display: block;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
line-height: 20px;
border-top: 1px solid #E5E5E5;
padding: 0px 5px;
cursor: pointer;
}
#inv_import_list_profiles ol li.active {
background-color: #1E88E5;
color: white;
}
#invitation_messages {
margin: 0px;
padding: 0px;
min-width: 100px;
max-width: 400px;
min-height: 100px;
max-height: 600px;
overflow: auto !important;
display: inline-block;
border: 1px solid #E5E5E5;
background-color: white;
width: 200px !important;
height: 237px !important;
}
#invitation_messages ol {
margin: 0px;
padding: 0px;
display: block;
border-bottom: 1px solid #E5E5E5;
}
#invitation_messages ol li {
display: block;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
line-height: 20px;
border-top: 1px solid #E5E5E5;
padding: 0px 5px;
cursor: pointer;
}
#invitation_messages ol li.active {
background-color: #1E88E5;
color: white;
}
#inv_recipients_profile_name { #inv_recipients_profile_name {
/*max-height: 90vh; /*max-height: 90vh;
overflow-y: scroll;*/ overflow-y: scroll;*/

View File

@ -221,4 +221,13 @@ div.button_holder {
&.intext{ &.intext{
margin: 16px 0; margin: 16px 0;
} }
&.float-right{
justify-content: end;
button{
margin-left: 16px;
margin-right: 0;
}
}
} }

View File

@ -30,9 +30,9 @@ fieldset{
//Nepovezane nastavitve -16px razmaka //Nepovezane nastavitve -16px razmaka
.setting_holder { .setting_holder {
margin-bottom: 16px; margin-bottom: 16px;
&.bottom8 { &.bottom8 {
margin-bottom: 8px !important; margin-bottom: 8px !important;
} }
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -70,6 +70,30 @@ fieldset{
&.indent { &.indent {
margin-left: 27px; margin-left: 27px;
} }
// Holder z 2 nastavitvami vzporedno (50 - 50)
&.half-half{
flex-direction: row;
.setting_item{
display: flex;
flex-direction: column;
width: 48%;
margin: 0;
&:first-child{
margin-right: 16px;
}
input,
select,
textarea{
box-sizing: border-box;
width: 100%;
}
}
}
} }
ul { ul {

View File

@ -18,7 +18,8 @@ label{
input { input {
&[type="text"], &[type="text"],
&[type="password"] { &[type="password"],
&[type="number"] {
border: 1px solid $dark-gray; border: 1px solid $dark-gray;
box-sizing: border-box; box-sizing: border-box;
border-radius: 2px; border-radius: 2px;

View File

@ -8,13 +8,13 @@
&.half-half{ &.half-half{
display: flex; display: flex;
.left{ .left_holder{
width: 50%; width: 50%;
margin-right: 32px; margin-right: 32px;
} }
.right{ .right_holder{
width: 50%; width: 50%;
} }
} }
@ -23,14 +23,14 @@
&.left-menu{ &.left-menu{
display: flex; display: flex;
.left{ .left_holder{
width: 300px; width: 300px;
min-width: 300px; min-width: 300px;
margin-right: 32px; margin-right: 32px;
} }
.right{ .right_holder{
flex-grow: 1; flex-grow: 1;
} }
} }
@ -38,18 +38,18 @@
&.three-part{ &.three-part{
display: flex; display: flex;
.left{ .left_holder{
width: 300px; width: 300px;
min-width: 300px; min-width: 300px;
margin-right: 32px; margin-right: 32px;
} }
.middle{ .middle_holder{
flex-grow: 1; flex-grow: 1;
} }
.right{ .right_holder{
width: 400px; width: 400px;
min-width: 400px; min-width: 400px;

View File

@ -8,6 +8,129 @@ and open the template in the editor.
Author : podkrizniku Author : podkrizniku
*/ */
body #main_holder #main .page_invitations{
.invitations_holder.fullwidth{
margin: 0 auto;
padding: 0 32px;
max-width: 1060px;
fieldset{
p{
margin-bottom: 8px;
}
}
}
// Zgornja vrstica z nastavitvami
.invitations_top_settings{
margin-bottom: 16px;
font-weight: 600;
}
// Leva stran s profili
@mixin inv_left_list(){
display: flex;
flex-direction: column;
overflow-y: auto;
width: 100%;
min-width: 200px;
max-height: 400px;
border: 1px solid $gray;
background-color: white;
ol {
display: flex;
flex-direction: column;
margin: 0px;
padding: 0px;
li {
cursor: pointer;
list-style-type: none;
display: flex;
align-items: center;
height: 35px;
padding: 0px 8px;
border-bottom: 1px solid $gray;
&:last-child{
border-bottom: 0;
}
&.active {
color: $blue;
background-color: $medium-blue2;
}
&:hover {
background-color: $medium-blue2;
}
}
}
}
// 2 - Dodaj - leva stran
#inv_recipients_profiles_holder {
min-height: 355px;
padding: 16px;
background: $white;
border: 1px solid $gray;
> span {
line-height: 28px;
}
#inv_import_list_profiles {
@include inv_left_list();
}
}
// 2 - Dodaj - desna stran
#inv_import_list_container {
min-height: 355px;
margin-bottom: 0;
span {
label {
vertical-align: bottom;
}
}
}
// 3-
#invitation_messages {
@include inv_left_list();
}
}
.lbl_email_setting { .lbl_email_setting {
vertical-align: top; vertical-align: top;
line-height: 16px; line-height: 16px;
@ -516,39 +639,7 @@ input#inv_message_comment {
@include inv_error_note(); @include inv_error_note();
color: $blue; color: $blue;
} }
#inv_import_list_container {
margin-right: 5px;
padding: 8px;
min-height: 355px;
width: 670px;
background: $light-blue;
border: 1px solid $blue;
float: left;
display: inline-block;
width: auto;
span {
label {
vertical-align: bottom;
}
}
}
#inv_recipients_profiles_holder {
margin-right: 5px;
padding: 8px;
min-height: 355px;
width: 670px;
background: $light-blue;
border: 1px solid $blue;
float: left;
margin-left: 10px;
display: inline-block;
width: auto;
overflow: hidden;
span {
line-height: 24px;
font-size: 13px;
}
}
#inv_messages_profiles_holder { #inv_messages_profiles_holder {
margin-right: 5px; margin-right: 5px;
padding: 8px; padding: 8px;
@ -751,46 +842,7 @@ div.inv_step.active {
.inv_arch_subject { .inv_arch_subject {
max-width: 200px; max-width: 200px;
} }
@mixin inv_left_list(){
margin: 0px;
padding: 0px;
min-width: 100px;
max-width: 400px;
min-height: 100px;
max-height: 600px;
overflow: auto !important;
display: inline-block;
border: 1px solid $gray;
background-color: white;
width: 200px !important;
height: 237px !important;
ol {
margin: 0px;
padding: 0px;
display: block;
border-bottom: 1px solid $gray;
li {
display: block;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
line-height: 20px;
border-top: 1px solid $gray;
padding: 0px 5px;
cursor: pointer;
}
li.active {
background-color: $blue;
color: white;
}
}
}
#inv_import_list_profiles {
@include inv_left_list();
}
#invitation_messages {
@include inv_left_list();
}
#inv_recipients_profile_name { #inv_recipients_profile_name {
@include popup_general(); @include popup_general();

View File

@ -9,7 +9,7 @@
align-items: center; align-items: center;
position: relative; position: relative;
margin-bottom: 32px; margin-bottom: 48px;
color: $gray; color: $gray;