Redesign - popravki napak - vabila
This commit is contained in:
parent
92de6a8c7e
commit
8c4a546aca
@ -774,9 +774,9 @@ class SurveyInvitationsNew {
|
||||
echo '<div class="setting_line">';
|
||||
echo ' <label>'.$lang['srv_inv_recipient_list_delimiter'].'</label>';
|
||||
echo ' <input id="recipientsDelimiter1" type="radio" ' .(!isset ($_POST['recipientsDelimiter']) || $_POST['recipientsDelimiter']==","?'checked="checked"':'') .' value="," name="recipientsDelimiter"><label for="recipientsDelimiter1">' .$lang['srv_inv_recipient_delimiter_comma'] .' (,)</label>';
|
||||
echo ' <input id="recipientsDelimiter4" type="radio" ' .(isset ($_POST['recipientsDelimiter']) && $_POST['recipientsDelimiter']=="|~|"?'checked="checked"':'') .' value="|~|" name="recipientsDelimiter"><label for="recipientsDelimiter4">' .$lang['srv_inv_recipient_delimiter_1KA'] .' (|~|)</label>';
|
||||
echo ' <input id="recipientsDelimiter2" type="radio" ' .(isset ($_POST['recipientsDelimiter']) && $_POST['recipientsDelimiter']==";"?'checked="checked"':'') .' value=";" name="recipientsDelimiter"><label for="recipientsDelimiter2">' .$lang['srv_inv_recipient_delimiter_semicolon'] .' (;) </label>';
|
||||
echo ' <input id="recipientsDelimiter3" type="radio" ' .(isset ($_POST['recipientsDelimiter']) && $_POST['recipientsDelimiter']=="|"?'checked="checked"':'') .' value="|" name="recipientsDelimiter"><label for="recipientsDelimiter3">' .$lang['srv_inv_recipient_delimiter_pipe'] .' (|)</label>';
|
||||
echo ' <input id="recipientsDelimiter4" type="radio" ' .(isset ($_POST['recipientsDelimiter']) && $_POST['recipientsDelimiter']=="|~|"?'checked="checked"':'') .' value="|~|" name="recipientsDelimiter"><label for="recipientsDelimiter4">' .$lang['srv_inv_recipient_delimiter_1KA'] .' (|~|)</label>';
|
||||
echo '</div>';
|
||||
|
||||
// Vnosno polje
|
||||
@ -838,10 +838,10 @@ class SurveyInvitationsNew {
|
||||
|
||||
echo '<div class="setting_line">';
|
||||
echo ' <label>'.$lang['srv_inv_recipient_import_file_delimiter'].'</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter1" value="," checked><label for="recipientsDelimiter1">'.$lang['srv_inv_recipient_delimiter_comma'].' (,)</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter2" value=";"><label for="recipientsDelimiter2">'.$lang['srv_inv_recipient_delimiter_semicolon'].' (;)</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter3" value="|"><label for="recipientsDelimiter3">'.$lang['srv_inv_recipient_delimiter_pipe'].' (|)</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter4" value="|~|"><label for="recipientsDelimiter4">'.$lang['srv_inv_recipient_delimiter_1KA'].' (|~|)</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter1_import" value="," '.(!isset ($_POST['recipientsDelimiter']) || $_POST['recipientsDelimiter']==","?'checked="checked"':'').'><label for="recipientsDelimiter1_import">'.$lang['srv_inv_recipient_delimiter_comma'].' (,)</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter2_import" value=";" '.(!isset ($_POST['recipientsDelimiter']) && $_POST['recipientsDelimiter']==";"?'checked="checked"':'').'><label for="recipientsDelimiter2_import">'.$lang['srv_inv_recipient_delimiter_semicolon'].' (;)</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter3_import" value="|" '.(!isset ($_POST['recipientsDelimiter']) && $_POST['recipientsDelimiter']=="|"?'checked="checked"':'').'><label for="recipientsDelimiter3_import">'.$lang['srv_inv_recipient_delimiter_pipe'].' (|)</label>';
|
||||
echo ' <input type="radio" name="recipientsDelimiter" id="recipientsDelimiter4_import" value="|~|" '.(!isset ($_POST['recipientsDelimiter']) && $_POST['recipientsDelimiter']=="|~|"?'checked="checked"':'').'><label for="recipientsDelimiter4_import">'.$lang['srv_inv_recipient_delimiter_1KA'].' (|~|)</label>';
|
||||
echo '</div>';
|
||||
|
||||
echo '</form>';
|
||||
@ -2231,117 +2231,143 @@ class SurveyInvitationsNew {
|
||||
|
||||
echo '<span>'.$lang['srv_invitation_message_choose'].':</span><br/>';
|
||||
|
||||
echo '<div id="invitation_messages" >';
|
||||
|
||||
echo '<div id="invitation_messages">';
|
||||
|
||||
echo '<ol>';
|
||||
foreach ($array_messages AS $_m => $message) {
|
||||
echo '<li mid="'.$message['id'].'" class="'
|
||||
.($message['id'] == $mid ? ' active' : '')
|
||||
.'" onclick="invChangeMessage(\''.$message['id'].'\')">';
|
||||
|
||||
echo '<li mid="'.$message['id'].'" class="'.($message['id'] == $mid ? ' active' : '').'" onclick="invChangeMessage(\''.$message['id'].'\')">';
|
||||
|
||||
echo $message['naslov'];
|
||||
|
||||
if($message['id'] == $mid){
|
||||
|
||||
echo '<div class="icons">';
|
||||
|
||||
if (count($array_messages) > 1)
|
||||
echo '<span class="faicon delete_circle" id="inv_del_msg_profile" onclick="invMessageDelete();" title="'.$lang['srv_inv_message_delete_profile'].'"></span>';
|
||||
|
||||
echo '<span class="faicon edit" id="inv_ren_msg_profile" onclick="invShowMessageRename();" title="'.$lang['srv_inv_message_rename_profile'].'"></span>';
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</li>';
|
||||
}
|
||||
echo '</ol>';
|
||||
|
||||
echo '</div>'; #invitation_messages
|
||||
|
||||
if (count($array_messages) > 1) {
|
||||
echo '<span class="as_link" id="inv_del_msg_profile" onclick="invMessageDelete();" title="'.$lang['srv_inv_message_delete_profile'].'">'.$lang['srv_inv_message_delete_profile'].'</span><br/>';
|
||||
}
|
||||
echo '<span class="as_link" id="inv_ren_msg_profile" onclick="invShowMessageRename();" title="'.$lang['srv_inv_message_rename_profile'].'">'.$lang['srv_inv_message_rename_profile'].'</span>';
|
||||
{
|
||||
# polovimo podatke profila
|
||||
$sql_string = "SELECT sim.*, u.name, u.surname, e.name as ename, e.surname as esurname FROM srv_invitations_messages AS sim LEFT JOIN users AS u ON sim.uid = u.id LEFT JOIN users AS e ON sim.edit_uid = e.id WHERE sim.id = '".(int)$mid."'";
|
||||
$sql_query = sisplet_query($sql_string);
|
||||
$sql_row = mysqli_fetch_assoc($sql_query);
|
||||
|
||||
$avtor = array();
|
||||
$edit = array();
|
||||
if (trim($sql_row['name'])) {
|
||||
$avtor[] = trim ($sql_row['name']);
|
||||
}
|
||||
if (trim($sql_row['surname'])) {
|
||||
$avtor[] = trim ($sql_row['surname']);
|
||||
}
|
||||
# polovimo podatke profila
|
||||
$sql_string = "SELECT sim.*, u.name, u.surname, e.name as ename, e.surname as esurname FROM srv_invitations_messages AS sim LEFT JOIN users AS u ON sim.uid = u.id LEFT JOIN users AS e ON sim.edit_uid = e.id WHERE sim.id = '".(int)$mid."'";
|
||||
$sql_query = sisplet_query($sql_string);
|
||||
$sql_row = mysqli_fetch_assoc($sql_query);
|
||||
|
||||
if ( count($avtor) > 0 ) {
|
||||
echo '<div class="gray">'.$lang['srv_invitation_author'].' '.implode(' ',$avtor).'</div>';
|
||||
}
|
||||
if ( count($avtor) > 0 ) {
|
||||
echo '<div class="gray" title="'.date("d.m.Y H:i:s",strtotime($sql_row['insert_time'])).'">'.$lang['srv_invitation_author_day'].' '.date("d.m.Y",strtotime($sql_row['insert_time'])).'</div>';
|
||||
}
|
||||
if (trim($sql_row['ename'])) {
|
||||
$edit[] = trim ($sql_row['ename']);
|
||||
}
|
||||
if (trim($sql_row['esurname'])) {
|
||||
$edit[] = trim ($sql_row['esurname']);
|
||||
}
|
||||
$avtor = array();
|
||||
$edit = array();
|
||||
if (trim($sql_row['name'])) {
|
||||
$avtor[] = trim ($sql_row['name']);
|
||||
}
|
||||
if (trim($sql_row['surname'])) {
|
||||
$avtor[] = trim ($sql_row['surname']);
|
||||
}
|
||||
|
||||
|
||||
echo '<div class="info">';
|
||||
|
||||
if ( count($avtor) > 0 ) {
|
||||
echo '<div>'.$lang['srv_invitation_author'].' '.implode(' ',$avtor).'</div>';
|
||||
}
|
||||
if ( count($avtor) > 0 ) {
|
||||
echo '<div title="'.date("d.m.Y H:i:s",strtotime($sql_row['insert_time'])).'">'.$lang['srv_invitation_author_day'].' '.date("d.m.Y",strtotime($sql_row['insert_time'])).'</div>';
|
||||
}
|
||||
if (trim($sql_row['ename'])) {
|
||||
$edit[] = trim ($sql_row['ename']);
|
||||
}
|
||||
if (trim($sql_row['esurname'])) {
|
||||
$edit[] = trim ($sql_row['esurname']);
|
||||
}
|
||||
|
||||
if ( count($edit) > 0 && $edit != $avtor) {
|
||||
echo '<div>'.$lang['srv_invitation_changed'].' '.implode(' ',$edit).'</div>';
|
||||
}
|
||||
if ($sql_row['insert_time'] != $sql_row['edit_time']) {
|
||||
echo '<div title="'.date("d.m.Y H:i:s",strtotime($sql_row['edit_time'])).'">'.$lang['srv_invitation_changed_day'].' '.date("d.m.Y",strtotime($sql_row['insert_time'])).'</div>';
|
||||
}
|
||||
|
||||
echo '<div style="max-width:202px">'.$lang['srv_invitation_comment'].' '. trim ($sql_row['comment']).'</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
if ( count($edit) > 0 && $edit != $avtor) {
|
||||
echo '<div class="gray">'.$lang['srv_invitation_changed'].' '.implode(' ',$edit).'</div>';
|
||||
}
|
||||
if ($sql_row['insert_time'] != $sql_row['edit_time']) {
|
||||
echo '<div class="gray" title="'.date("d.m.Y H:i:s",strtotime($sql_row['edit_time'])).'">'.$lang['srv_invitation_changed_day'].' '.date("d.m.Y",strtotime($sql_row['insert_time'])).'</div>';
|
||||
}
|
||||
|
||||
echo '<div class="gray" style="max-width:202px">'.$lang['srv_invitation_comment'].' '. trim ($sql_row['comment']).'</div>';
|
||||
}
|
||||
|
||||
echo '</fieldset>'; #inv_messages_profiles_holder
|
||||
|
||||
|
||||
$MA = new MailAdapter($this->sid, $type='invitation');
|
||||
|
||||
# zlistamo seznam vseh sporočil
|
||||
# izpišemo primer besedila
|
||||
echo '<fieldset 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 '<legend>'.$lang['message'].' '.Help::display('srv_inv_message_title_noEmail').'</legend>';
|
||||
|
||||
//echo '<span class="spaceRight floatRight"><a href="'.$site_url . 'admin/survey/index.php?anketa='.$this->sid.'&a=invitations&m=inv_server&show_back=true">'.$lang['srv_inv_message_draft_settings'].'</a></span>';
|
||||
echo '<br class="clr"/>';
|
||||
echo '<div id="inv_error_note" class="displayNone"></div>';
|
||||
|
||||
|
||||
echo '<div id="inv_msg_preview">';
|
||||
echo '<table>';
|
||||
echo '<tr><th>'.$lang['srv_inv_message_draft_content_subject'].':</th>';
|
||||
echo '<td class="inv_bt">';
|
||||
echo '<input type="text" id="inv_message_subject" value="'.$preview_message['subject_text'].'" autocomplete="off">';
|
||||
echo '</td></tr>';
|
||||
echo '<tr><th>'.$lang['srv_inv_message_draft_content_body'].':</th>';
|
||||
echo '<td ><div class="msgBody">';
|
||||
echo '<textarea id="inv_message_body" name="inv_message_body" autocomplete="off">'.($preview_message['body_text']).'</textarea>';
|
||||
echo '</div>';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
create_inv_editor('inv_message_body', false);
|
||||
</script><?php
|
||||
echo '</td></tr>';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo ' <label>'.$lang['srv_inv_message_draft_content_subject'].':</label>';
|
||||
echo ' <input type="text" id="inv_message_subject" class="medium" value="'.$preview_message['subject_text'].'" autocomplete="off">';
|
||||
echo '</div>';
|
||||
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
echo ' <label>'.$lang['srv_inv_message_draft_content_body'].':</label>';
|
||||
echo ' <textarea id="inv_message_body" name="inv_message_body" autocomplete="off">'.($preview_message['body_text']).'</textarea>';
|
||||
echo '</div>';
|
||||
|
||||
|
||||
?>
|
||||
<script type="text/javascript"> create_inv_editor('inv_message_body', false); </script>
|
||||
<?php
|
||||
|
||||
$urls = $this->getUrlLists();
|
||||
if (count($urls) > 0) {
|
||||
echo '<tr><th>'.$lang['srv_inv_message_draft_url'].'</th>';
|
||||
echo '<td>';
|
||||
echo '<select id="inv_message_url">';
|
||||
|
||||
echo '<div class="setting_item">';
|
||||
|
||||
echo '<label>'.$lang['srv_inv_message_draft_url'].'</label>';
|
||||
|
||||
echo '<select id="inv_message_url" class="dropdown medium">';
|
||||
foreach ($urls AS $url) {
|
||||
$selected = '';
|
||||
$selected = '';
|
||||
if ($preview_message['url'] == '') {
|
||||
if ($preview_message['dc'] == true) {
|
||||
$selected = ' selected="selected"';
|
||||
if ($preview_message['dc'] == true) {
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
} else if ($preview_message['url'] == $url['url']) {
|
||||
$selected = ' selected="selected"';
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
echo '<option value="'.$url['url'].'"'.$selected.'>'.$url['name'].'</option>';
|
||||
}
|
||||
echo '</select>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<br class="clr"/>';
|
||||
|
||||
echo '<span class="buttonwrapper floatRight spaceRight" title="'.$lang['srv_invitation_forward'].'"><a class="ovalbutton" href="#" onclick="inv_message_save_forward_noEmail(\''.$mid.'\'); return false;"><span>'.$lang['srv_invitation_forward'].'</span></a></span>';
|
||||
echo '<span class="buttonwrapper floatRight spaceRight" title="'.$lang['srv_invitation_forward'].'"><a class="ovalbutton ovalbutton_gray" href="#" onclick="if(inv_message_save_simple_noEmail(\''.$mid.'\')) { window.location.reload() }; return false;"><span>'.$lang['srv_inv_message_save'].'</span></a></span>';
|
||||
echo '<span class="buttonwrapper floatRight spaceRight" title="'.$lang['srv_invitation_message_saveNew'].'"><a class="ovalbutton ovalbutton_gray" href="#" onclick="inv_message_save_advanced(\''.$mid.'\'); return false;"><span>'.$lang['srv_invitation_message_saveNew'].'</span></a></span>';
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
||||
echo '<div class="button_holder below float-right">';
|
||||
echo ' <button class="white-black medium" title="'.$lang['srv_invitation_message_saveNew'].'" onclick="inv_message_save_advanced(\''.$mid.'\'); return false;">'.$lang['srv_invitation_message_saveNew'].'</button>';
|
||||
echo ' <button class="white-blue medium" title="'.$lang['srv_invitation_forward'].'" onclick="if(inv_message_save_simple_noEmail(\''.$mid.'\')) { window.location.reload() }; return false;">'.$lang['srv_inv_message_save'].'</button>';
|
||||
echo ' <button class="blue medium" title="'.$lang['srv_invitation_forward'].'" onclick="inv_message_save_forward_noEmail(\''.$mid.'\'); return false;">'.$lang['srv_invitation_forward'].'</button>';
|
||||
echo '</div>';
|
||||
|
||||
|
||||
echo '</fieldset>';
|
||||
}
|
||||
|
||||
@ -3480,8 +3506,6 @@ class SurveyInvitationsNew {
|
||||
|
||||
$lists['-1'] = $lang['srv_invitation_new_templist'];
|
||||
$lists['0'] = $lang['srv_invitation_new_templist_author'];
|
||||
|
||||
//echo '<div id="inv_send_note">Pošiljam . . . Prosimo počakajte.</div>';
|
||||
|
||||
|
||||
echo '<table id="tbl_recipients_send_list">';
|
||||
@ -3580,54 +3604,64 @@ class SurveyInvitationsNew {
|
||||
|
||||
// Način pošiljanja
|
||||
$noEmailingType = SurveySession::get('inv_noEmailing_type');
|
||||
echo '<span class="bold">';
|
||||
echo $lang['srv_inv_message_type_external'].': </span>';
|
||||
echo '<div class="setting_item ver">';
|
||||
echo ' <span class="semi-bold">'.$lang['srv_inv_message_type_external'].': ';
|
||||
if($noEmailingType == 1)
|
||||
echo $lang['srv_inv_message_noemailing_type2'];
|
||||
echo $lang['srv_inv_message_noemailing_type2'];
|
||||
elseif($noEmailingType == 2)
|
||||
echo $lang['srv_inv_message_noemailing_type3'];
|
||||
echo $lang['srv_inv_message_noemailing_type3'];
|
||||
else
|
||||
echo $lang['srv_inv_message_noemailing_type1'];
|
||||
echo '<br /><br />';
|
||||
echo $lang['srv_inv_message_noemailing_type1'];
|
||||
echo ' </span>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
||||
echo '<form id="frm_do_send" action="'.$site_url.'admin/survey/index.php?anketa='.$this->sid.'&a='.A_INVITATIONS.'&m=send_mail&noemailing=1" method="post">';
|
||||
|
||||
// Komentar pri posiljanju
|
||||
echo '<label>'.$lang['srv_inv_send_comment'].' '.Help::display('srv_inv_sending_comment').': ';
|
||||
echo '<input type="text" name="comment" id="msg_comment" value="'.$comment.'">';
|
||||
echo '</label>';
|
||||
// Komentar pri posiljanju
|
||||
echo '<div class="setting_item ver">';
|
||||
echo ' <label>'.$lang['srv_inv_send_comment'].' '.Help::display('srv_inv_sending_comment').':</label>';
|
||||
echo ' <input type="text" class="medium" name="comment" id="msg_comment" value="'.$comment.'">';
|
||||
echo '</div>';
|
||||
|
||||
// Pobrisi podvojene maile
|
||||
echo '<label><input type="checkbox" id="dont_send_duplicated" name="dont_send_duplicated" checked="checked">'.$lang['srv_inv_send_remove_duplicates'].'</label></span> '.Help::display('srv_inv_sending_double').'<br />';
|
||||
|
||||
// Gumb poslji
|
||||
echo '<br /><div id="inv_send_mail_btn"><span class="buttonwrapper floatLeft"><a href="#" onclick="$(\'#fade\').fadeTo(\'slow\', 1); $(\'#inv_send_note\').fadeTo(\'slow\',1); $(\'#frm_do_send\').submit();" class="ovalbutton ovalbutton_orange" ><span>'.$lang['srv_inv_nav_send_noEmailing'].'</span></a></span>';
|
||||
echo '<br class="clr"/><br /></div>';
|
||||
|
||||
echo '<div class="setting_item ver">';
|
||||
echo ' <input type="checkbox" id="dont_send_duplicated" name="dont_send_duplicated" checked="checked">';
|
||||
echo ' <label for="dont_send_duplicated">'.$lang['srv_inv_send_remove_duplicates'].' '.Help::display('srv_inv_sending_double').'</label>';
|
||||
echo '</div>';
|
||||
|
||||
// Gumb Poslji
|
||||
echo '<div id="inv_send_mail_btn" class="setting_item hor">';
|
||||
echo ' <button class="blue medium" style="width:auto;" onclick="$(\'#fade\').fadeTo(\'slow\', 1); $(\'#inv_send_note\').fadeTo(\'slow\',1); $(\'#frm_do_send\').submit();">'.$lang['srv_inv_nav_send_noEmailing'].'</button>';
|
||||
echo '</div>';
|
||||
|
||||
|
||||
// Seznam mailov na katere bomo poslali
|
||||
if ((int)$this->invitationAdvancedConditionId > 0)
|
||||
{
|
||||
#if (is_array($this->user_inv_ids) && count($this->user_inv_ids) > 0)
|
||||
{
|
||||
echo '<span class="floatLeft">';
|
||||
$scp = new SurveyCondition($this->sid);
|
||||
$note = $scp -> getConditionString($this->invitationAdvancedConditionId );
|
||||
echo $note;
|
||||
#$scp -> displayConditionNote($this->invitationAdvancedConditionId );
|
||||
echo '</span>';
|
||||
echo '<br/>';
|
||||
}
|
||||
if ((int)$this->invitationAdvancedConditionId > 0){
|
||||
|
||||
echo '<div class="setting_item ver">';
|
||||
|
||||
$scp = new SurveyCondition($this->sid);
|
||||
$note = $scp -> getConditionString($this->invitationAdvancedConditionId );
|
||||
echo $note;
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
# izpišemo seznam e-mailov in dodamo checkboxe
|
||||
echo '<div class="strong">'.$lang['srv_inv_potencial_respondents'].' <span id="inv_num_recipients">'.count($respondents).'</span></div>';
|
||||
echo '<div class="setting_item ver">';
|
||||
echo '<span>'.$lang['srv_inv_potencial_respondents'].' <span id="inv_num_recipients">'.count($respondents).'</span></span>';
|
||||
echo '</div>';
|
||||
|
||||
# izpišemo opozorilo kadar pošiljamo na več kakor 5000 naslovov
|
||||
$text = (Common::checkModule('gorenje')) ? $lang['srv_inv_potencial_respondents_limit_gorenje'] : $lang['srv_inv_potencial_respondents_limit'];
|
||||
echo '<div id="inv_send_mail_limit" class="red strong'.(count($respondents) > 4999?'':' hidden').'">'.$text.'</div>';
|
||||
$text = (Common::checkModule('gorenje')) ? $lang['srv_inv_potencial_respondents_limit_gorenje'] : $lang['srv_inv_potencial_respondents_limit'];
|
||||
echo '<div id="inv_send_mail_limit" class="setting_item ver red semi-bold '.(count($respondents) > 4999?'':' displayNone').'">';
|
||||
echo $text;
|
||||
echo '</div>';
|
||||
|
||||
echo '<input type="hidden" name="anketa" id="anketa" value="'.$this->sid.'">';
|
||||
|
||||
# da preprečimo večkratno pošiljanje
|
||||
session_start();
|
||||
list($short,$long) = $this->generateCode();
|
||||
@ -3650,9 +3684,8 @@ class SurveyInvitationsNew {
|
||||
$lists['-1'] = $lang['srv_invitation_new_templist'];
|
||||
$lists['0'] = $lang['srv_invitation_new_templist_author'];
|
||||
|
||||
echo '<div id="inv_send_note">Pošiljam . . . Prosimo počakajte.</div>';
|
||||
|
||||
echo '<br/><table id="tbl_recipients_send_list">';
|
||||
echo '<table id="tbl_recipients_send_list">';
|
||||
echo '<tr>';
|
||||
echo '<th class="tbl_icon"><input type="checkbox" checked="checked" onclick="invTogleSend(this);">'.'</th>';
|
||||
echo '<th title="'.$lang['srv_inv_recipients_email'].'">'.$lang['srv_inv_recipients_email'].'</th>';
|
||||
@ -3662,20 +3695,34 @@ class SurveyInvitationsNew {
|
||||
echo '</tr>';
|
||||
$cnt=1;
|
||||
foreach ($respondents as $pass => $respondent) {
|
||||
echo '<tr'.($cnt > $this->rec_send_page_limit ? ' class="displayNone"' : '').'>';
|
||||
echo '<td><input type="checkbox" name="rids[]" value="'.$respondent['id'].'" checked="checekd"></td>';
|
||||
echo '<td>'.$respondent['email'].'</td>';
|
||||
echo '<td>'.$respondent['firstname'].'</td>';
|
||||
echo '<td>'.$lang['srv_userstatus_'.$respondent['status']].' ('.$respondent['status'].')'.'</td>';
|
||||
if ($lists[$respondent['list_id']] != '') {
|
||||
echo '<td>'.$lists[$respondent['list_id']].'</td>';
|
||||
} else {
|
||||
echo '<td>'.$lang['srv_inv_send_who_table_list_deleted'].'</td>';
|
||||
|
||||
echo '<tr'.($cnt > $this->rec_send_page_limit ? ' class="displayNone"' : '').'>';
|
||||
|
||||
echo ' <td>';
|
||||
echo ' <input type="checkbox" name="rids[]" id="rids_'.$respondent['id'].'" value="'.$respondent['id'].'" checked="checekd">';
|
||||
echo ' <label for="rids_'.$respondent['id'].'"></label>';
|
||||
echo ' </td>';
|
||||
|
||||
echo ' <td>'.$respondent['email'].'</td>';
|
||||
|
||||
echo ' <td>'.$respondent['firstname'].'</td>';
|
||||
|
||||
echo ' <td>'.$lang['srv_userstatus_'.$respondent['status']].' ('.$respondent['status'].')'.'</td>';
|
||||
|
||||
if ($lists[$respondent['list_id']] != '') {
|
||||
echo ' <td>'.$lists[$respondent['list_id']].'</td>';
|
||||
}
|
||||
else {
|
||||
echo ' <td>'.$lang['srv_inv_send_who_table_list_deleted'].'</td>';
|
||||
}
|
||||
|
||||
echo '</tr>';
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
echo '</table>';
|
||||
|
||||
echo '</form>';
|
||||
}
|
||||
}
|
||||
@ -4740,19 +4787,16 @@ class SurveyInvitationsNew {
|
||||
|
||||
# če so napake jih prikažemo če ne obdelamo datoteko
|
||||
if (count($errors) > 0) {
|
||||
|
||||
echo '<br class="clr" />';
|
||||
|
||||
echo '<span class="inv_message_errors">'.$lang['srv_inv_recipiens_upload_error'].'</span>';
|
||||
|
||||
echo '<br class="clr" />';
|
||||
echo '<br class="clr" />';
|
||||
|
||||
echo '<span class="inv_error_note">';
|
||||
echo '<div id="inv_message_errors">';
|
||||
|
||||
echo '<span>'.$lang['srv_inv_recipiens_upload_error'].'</span>';
|
||||
|
||||
foreach($errors as $error) {
|
||||
echo '* '.$error.'<br />';
|
||||
echo '<span class="inv_error_note">* '.$error.'</span>';
|
||||
}
|
||||
echo '</span>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
$this->addRecipientsView($fields, $invalid_recipiens_array);
|
||||
}
|
||||
@ -9251,17 +9295,19 @@ class SurveyInvitationsNew {
|
||||
# če so napake jih prikažemo če ne obdelamo datoteko
|
||||
if (count($errors) > 0) {
|
||||
|
||||
echo '<br class="clr" />';
|
||||
echo '<span class="inv_message_errors">'.$lang['srv_inv_recipiens_upload_error'].'</span>';
|
||||
echo '<br class="clr" />';
|
||||
echo '<br class="clr" />';
|
||||
echo '<span class="inv_error_note">';
|
||||
echo '<div id="inv_message_errors">';
|
||||
|
||||
echo '<span>'.$lang['srv_inv_recipiens_upload_error'].'</span>';
|
||||
|
||||
foreach($errors as $error) {
|
||||
echo '* '.$error.'<br />';
|
||||
echo '<span class="inv_error_note">* '.$error.'</span>';
|
||||
}
|
||||
echo '</span>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
#$this->addRecipientsView($fields, $invalid_recipiens_array);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
|
||||
$fh = @fopen($file_tmp, "rb");
|
||||
if ($fh) {
|
||||
@ -10209,7 +10255,7 @@ class SurveyInvitationsNew {
|
||||
}
|
||||
else{
|
||||
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 ' <input type="radio" name="SMTPMailMode" id="SMTPMailMode_0" value="0" '.($MA->is1KA() ? 'checked ="checked" ' : '').' '.($enabled1ka ? '' : ' disabled="disabled"').' onclick="$(\'#send_mail_mode1, #send_mail_mode2\').addClass(\'displayNone\'); $(\'#send_mail_mode0\').removeClass(\'displayNone\');">';
|
||||
echo ' <label for="SMTPMailMode_0">'.$lang['srv_email_setting_adapter0'].'</label>';
|
||||
echo ' </div>';
|
||||
}
|
||||
@ -10217,14 +10263,14 @@ class SurveyInvitationsNew {
|
||||
// Google smtp je viden samo starim, kjer je ze vklopljen
|
||||
if($MA->isGoogle()){
|
||||
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 ' <input type="radio" name="SMTPMailMode" id="SMTPMailMode_1" value="1" '.($MA->isGoogle() ? 'checked ="checked" ' : '').' onclick="$(\'#send_mail_mode0, #send_mail_mode2\').addClass(\'displayNone\'); $(\'#send_mail_mode1\').removeClass(\'displayNone\');">';
|
||||
echo ' <label for="SMTPMailMode_1">'.$lang['srv_email_setting_adapter1'].'</label>';
|
||||
echo ' </div>';
|
||||
}
|
||||
|
||||
// Lastni smtp
|
||||
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 ' <input type="radio" name="SMTPMailMode" id="SMTPMailMode_2" value="2" '.($MA->isSMTP() ? 'checked ="checked" ' : '').' onclick="$(\'#send_mail_mode0, #send_mail_mode1\').addClass(\'displayNone\'); $(\'#send_mail_mode2\').removeClass(\'displayNone\');">';
|
||||
echo ' <label for="SMTPMailMode_2">'.$lang['srv_email_setting_adapter2'].' '.Help::display('srv_mail_mode').'</label>';
|
||||
echo ' </div>';
|
||||
|
||||
@ -10447,7 +10493,9 @@ class SurveyInvitationsNew {
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '</form>';
|
||||
@ -10465,7 +10513,6 @@ class SurveyInvitationsNew {
|
||||
|
||||
|
||||
if ($_GET['s'] == '1') {
|
||||
echo '<div id="success_save" style="float:left; display:inline; margin: -2px 0 0 0;"></div>';
|
||||
echo '<script type="text/javascript">$(document).ready(function() {actionNotePopup(\'success_save\', \'success\');});</script>';
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ class SurveyUnsubscribe {
|
||||
return array(substr($cookie,0,6), $cookie);
|
||||
}
|
||||
|
||||
function doUnsubscribe() {
|
||||
public function doUnsubscribe() {
|
||||
global $lang;
|
||||
|
||||
$anketa = self::$sid;
|
||||
|
@ -1656,12 +1656,12 @@ function smtpAAIAccept(){
|
||||
function squaloSwitch(){
|
||||
|
||||
if($('#squalo_mode').prop('checked')){
|
||||
$('#send_mail_mode0, #send_mail_mode1, #send_mail_mode2, .mail_mode_switch, #send_mail_mode_test').hide();
|
||||
$('#send_mail_mode0, #send_mail_mode1, #send_mail_mode2, .mail_mode_switch, #send_mail_mode_test').addClass('displayNone');
|
||||
$('#success_save').hide();
|
||||
}
|
||||
else{
|
||||
$('.squalo_settings').hide();
|
||||
$('#send_mail_mode2, .mail_mode_switch, #send_mail_mode_test').show();
|
||||
$('.squalo_settings').addClass('displayNone');
|
||||
$('#send_mail_mode2, .mail_mode_switch, #send_mail_mode_test').removeClass('displayNone');
|
||||
$('#success_save').hide();
|
||||
}
|
||||
}
|
||||
|
@ -29,9 +29,10 @@
|
||||
$anketa = $_GET['anketa'];
|
||||
if ((int)$anketa > 0) {
|
||||
$su = new SurveyUnsubscribe($anketa);
|
||||
$su::doUnsubscribe();
|
||||
$su->doUnsubscribe();
|
||||
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
echo $lang['user_bye_missing_id'];
|
||||
exit;
|
||||
}
|
||||
|
@ -4982,7 +4982,7 @@ $lang = array (
|
||||
'srv_inv_recipiens_add_invalid_note' => "Preverite naslove in njihov položaj v spodnjem oknu!",
|
||||
'srv_inv_recipiens_add_invalid_note2' => "Enote z neveljavnim emailom ali geslom se ne dodajo v seznam",
|
||||
'srv_inv_recipiens_add_invalid_upload_note' => "Preverite naslove v datoteki!",
|
||||
'srv_inv_recipiens_upload_error' => "Uporabnikov ne morem dodati, prosim odpravite spodnje napake!",
|
||||
'srv_inv_recipiens_upload_error' => "Uporabnikov ni mogoče dodati, prosim odpravite spodnje napake!",
|
||||
'srv_inv_recipiens_upload_error_no_fields' => "Nobeno polje ni izbrano!",
|
||||
'srv_inv_recipiens_onlyThisSurvey' => "Samo ta anketa",
|
||||
'srv_inv_recipiens_from' => "Vnos prejemnikov",
|
||||
@ -5091,7 +5091,7 @@ $lang = array (
|
||||
'srv_inv_potencial_respondents' => "Sporočilo bo poslano na spodnje naslove:",
|
||||
'srv_inv_potencial_respondents_limit' => "Vabilo želite poslati več kot 5000 respondentom. Prosimo, če nas pred pošiljanjem o tem obvestite na <a href=\"mailto:info@1ka.si\">info@1ka.si</a>!",
|
||||
'srv_inv_btn_add_recipients_add' => "Dodaj",
|
||||
'srv_inv_recipiens_file_note_1' => "<span class=\"semi-bold\">Izberite datoteko z e-poštnimi naslovi prejemnikov. Vsak prejemnik mora biti v svoji vrstici.</span> Če uvažate tudi dodatna personalizacijska polja, jih ločite z vejicami. Polja v datoteki morajo biti v enakem vrstnem redu kot ste označili zgoraj. Podvojeni zapisi se ne bodo dodajali.",
|
||||
'srv_inv_recipiens_file_note_1' => "<span class=\"semi-bold\">Izberite datoteko z e-poštnimi naslovi prejemnikov. Vsak prejemnik mora biti v svoji vrstici.</span> Če uvažate tudi dodatna personalizacijska polja, jih ločite z vejicami. Polja v datoteki morajo biti v enakem vrstnem redu, kot ste označili zgoraj. Podvojeni zapisi se ne bodo dodajali.",
|
||||
'srv_inv_archive_heading' => "Arhivi pošiljanja",
|
||||
'srv_inv_archive_date_send' => "Datum pošiljanja",
|
||||
'srv_inv_archive_hour_send' => "Ura pošiljanja",
|
||||
|
@ -22963,6 +22963,19 @@ body #main_holder #main .page_invitations .invitations_top_settings #srv_invitat
|
||||
margin-top: 8px;
|
||||
font-weight: 400;
|
||||
}
|
||||
body #main_holder #main .page_invitations #inv_messages_holder_noEmailing {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
body #main_holder #main .page_invitations #inv_message_errors {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
body #main_holder #main .page_invitations #inv_message_errors span {
|
||||
padding-bottom: 8px;
|
||||
color: red;
|
||||
font-weight: 500;
|
||||
}
|
||||
body #main_holder #main .page_invitations #inv_recipients_profiles_holder {
|
||||
min-height: 355px;
|
||||
padding: 16px;
|
||||
|
@ -41,6 +41,25 @@ body #main_holder #main .page_invitations{
|
||||
}
|
||||
}
|
||||
|
||||
// Zgornja vrstica z textom pri sms, posti
|
||||
#inv_messages_holder_noEmailing{
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
// Zgornja vrstica z napakami
|
||||
#inv_message_errors{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
margin-bottom: 16px;
|
||||
|
||||
span{
|
||||
padding-bottom: 8px;
|
||||
color: red;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Leva stran s profili
|
||||
@mixin inv_left_list(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user