[Redizajn 1KA] - Urejanje --> Nastavitve --> Telefonska anketa - v3

This commit is contained in:
tejagerjovic 2022-04-22 02:59:44 +02:00
parent ad98622e4a
commit 14439337be
5 changed files with 1596 additions and 1509 deletions

View File

@ -262,18 +262,25 @@ class SurveyTelephone {
echo '<div class="inv_filedset_inline_div">';
echo '<p>';
echo '<table class="inv_dashboard_table">';
echo '<tr>';
echo '<th>'.$lang['srv_telephone_dashboard_all_respondents'].'</th>';
echo '<th>'.(int)$statusi_all.'</th>';
echo '<th>-</th>';
echo '<th>100%</th>';
echo '<th>'.$lang['srv_statistic_metric'].'</th>';
echo '<th>'.$lang['srv_statistic_answer_state_frequency'].'</th>';
echo '<th>'.$lang['srv_statistic_answer_state_percent'].'</th>';
echo '</tr>';
echo '<tr class="semi-bold">';
echo '<td>'.$lang['srv_telephone_dashboard_all_respondents'].'</td>';
echo '<td>'.(int)$statusi_all.'</td>';
echo '<td>100%</td>';
echo '</tr>';
# poslano enotam
echo '<tr>';
echo '<th>'.$lang['srv_telephone_dashboard_all_contacted'].'</th>';
echo '<th>'.(int)$contacted .'</th>';
echo '<th>'.((int)$contacted > 0 ? '100%' : '0%').'</th>';
echo '<th>'.Common::formatNumber(( (int)$contacted > 0 ? (int)$contacted*100/(int)$statusi_all : 0),0,'','%').'</th>';
echo '<tr class="semi-bold">';
echo '<td>'.$lang['srv_telephone_dashboard_all_contacted'].'</td>';
echo '<td>'.(int)$contacted .'</td>';
//echo '<td>'.((int)$contacted > 0 ? '100%' : '0%').'</td>';
echo '<td>'.Common::formatNumber(( (int)$contacted > 0 ? (int)$contacted*100/(int)$statusi_all : 0),0,'','%').'</td>';
echo '</tr>';
foreach (array('R','Z','N','T','P','A','U','D') AS $st) {
if ((int)$statusi[$st] > 0) {
@ -285,7 +292,7 @@ class SurveyTelephone {
echo '<tr>';
echo '<td>'.$lang['srv_telephone_status_'.$st].'</td>';
echo '<td'.$css.'>'.(int)$statusi[$st].'</td>';
echo '<td'.$css.'>'.Common::formatNumber(((int)$statusi[$st] > 0 ? (int)$statusi[$st]*100/(int)$contacted : 0),0,'','%').'</td>';
//echo '<td'.$css.'>'.Common::formatNumber(((int)$statusi[$st] > 0 ? (int)$statusi[$st]*100/(int)$contacted : 0),0,'','%').'</td>';
echo '<td'.$css.'>'.Common::formatNumber(((int)$statusi[$st] > 0 ? (int)$statusi[$st]*100/(int)$statusi_all : 0),0,'','%').'</td>';
echo '</tr>';
}
@ -424,15 +431,14 @@ class SurveyTelephone {
// Sumarni pregled po anketarjih
echo '<br/>';
echo '<fieldset class="inv_fieldset"><legend>'.$lang['srv_telephone_dashboard_legend_anketar'].Help::display('srv_telefon_anketarji').':</legend>';
echo '<div class="inv_filedset_inline_div">';
echo '<table class="inv_dashboard_table">';
echo '<tr>';
echo '<th>'.$lang['srv_telephone_dashboard_all_contacted'].'</th>';
echo '<th>'.(int)$contacted .'</th>';
echo '<th>'.((int)$contacted > 0 ? '100%' : '0%').'</th>';
echo '<th>'.$lang['srv_telephone_call_anketar'].'</th>';
echo '<th>'.$lang['srv_statistic_answer_state_frequency'].'</th>';
echo '<th>'.$lang['srv_statistic_answer_state_percent'].'</th>';
echo '</tr>';
# Loop cez vse anketarje
@ -446,6 +452,12 @@ class SurveyTelephone {
echo '</tr>';
}
echo '<tr class="semi-bold">';
echo '<td>'.$lang['srv_telephone_dashboard_all_contacted'].'</td>';
echo '<td>'.(int)$contacted .'</td>';
echo '<td>'.((int)$contacted > 0 ? '100%' : '0%').'</td>';
echo '</tr>';
echo '</table>';
echo '</div>';
echo '</fieldset>';
@ -578,8 +590,8 @@ class SurveyTelephone {
list($sysUserToAdd) = mysqli_fetch_row($sysUserToAddQuery);
}
echo '<span><input name="inv_import_type" id="inv_import_type2" type="radio" value="2" checked="checked" autocomplete="off"><label for="inv_import_type2">'.$lang['srv_inv_recipiens_from_list'].'</label></span>';
/*echo '<span><input name="inv_import_type" id="inv_import_type2" type="radio" value="2" onclick="inv_change_import_type();"'.($import_type == 2 ? ' checked="checked"' : '').' autocomplete="off"><label for="inv_import_type2">'.$lang['srv_inv_recipiens_from_list'].'</label></span>';
/*echo '<span><input name="inv_import_type" id="inv_import_type2" type="radio" value="2" checked="checked" autocomplete="off"><label for="inv_import_type2">'.$lang['srv_inv_recipiens_from_list'].'</label></span>';
echo '<span><input name="inv_import_type" id="inv_import_type2" type="radio" value="2" onclick="inv_change_import_type();"'.($import_type == 2 ? ' checked="checked"' : '').' autocomplete="off"><label for="inv_import_type2">'.$lang['srv_inv_recipiens_from_list'].'</label></span>';
echo '<span><input name="inv_import_type" id="inv_import_type1" type="radio" value="1" onclick="inv_change_import_type();"'.($import_type == 1 ? ' checked="checked"' : '').' autocomplete="off"><label for="inv_import_type1">'.$lang['srv_inv_recipiens_from_file'].'</label></span>';
echo '<span><input name="inv_import_type" id="inv_import_type3" type="radio" value="3" onclick="inv_change_import_type();"'.($import_type == 3 ? ' checked="checked"' : '').' autocomplete="off"><label for="inv_import_type3">'.$lang['srv_inv_recipiens_from_system']
.($sysUserToAdd > 0 ? ' ('.$sysUserToAdd.')' : '').'</label></span>';
@ -591,7 +603,7 @@ class SurveyTelephone {
} else {
# sporočilo za personalizirana e-vabila in respondente iz baze
echo '<p class="bottom16">'.$lang['srv_inv_recipiens_field_note'].'</p>';
echo '<p>'.$lang['srv_inv_recipiens_field_note'].'</p>';
echo '<div id="inv_field_container">';
echo '<ul class="connectedSortable">';
$field_lang = array();
@ -620,11 +632,11 @@ class SurveyTelephone {
# iz seznama
echo '<div id="inv_import_list"'.($import_type != 1 ? '' : ' class="hidden"').'>' ;
echo '<p class="top32 bottom16">'.$lang['srv_inv_recipiens_email_note'].'</p>';
echo '<p>'.$lang['srv_inv_recipiens_email_note'].'</p>';
echo '<p class="top16">'.$lang['srv_inv_recipiens_sample2'].'</p>';
echo '<p class="top16 gray italic">'.$lang['srv_telephone_add_sample'].'</p>';
echo '<p class="top16">'.$lang['srv_inv_recipiens_fields'].' <span id="inv_field_list" class="bold">';
echo '<p class="top16">'.$lang['srv_inv_recipiens_fields'].' <span id="inv_field_list" class="bold inv_type_0">';
echo implode(',',$field_lang);
echo '</span>';
@ -718,7 +730,6 @@ class SurveyTelephone {
}
echo '</ol>';
echo '</div>';
echo '<br class="clr" />';
if ((int)$ppid > 0) {
# polovimo še ostale porfile
$sql_string = "SELECT pid FROM srv_invitations_recipients_profiles WHERE pid='".(int)$ppid."' AND from_survey ='".$this->sid."' ";
@ -728,11 +739,8 @@ class SurveyTelephone {
# če je iz iste ankete, potem lahko urejamo
echo '<a href="#" onclick="phnDeleteProfile();" title="'.$lang['srv_inv_recipients_delete_profile'].'">'.$lang['srv_inv_recipients_delete_profile'].'</a><br/>';
echo '<a href="#" onclick="phnEditProfile();" title="'.$lang['srv_inv_recipients_edit_profile'].'">'.$lang['srv_inv_recipients_edit_profile'].'</a><br/>';
echo '<br class="clr"/>';
}
}
echo '<br class="clr" />';
}
function displayNavigation() {
@ -795,10 +803,16 @@ class SurveyTelephone {
echo '<div class="label">'.$lang['srv_telephone_navi_add'].'</div>';
echo '</div>';
echo '<div class="inv_space"></div>';
echo '<div class="phn_step menu'.$active_step[3].'" '. ($disabled == false ? 'onClick="window.location.href=\''.$this->addUrl('view_recipients').'\';return false;"' : '' ).'>';
echo '<div class="square">2</div>';
echo '<div class="label">'.$lang['srv_telephone_navi_view'].'</div>';
echo '</div>';
echo '<div class="inv_space"></div>';
echo '<div class="phn_step menu'.$css_disabled.$active_step[4].'" onClick="window.location.href=\''.$this->addUrl('start_call').'\';return false;">';
echo '<div class="square">3</div>';
@ -1109,8 +1123,9 @@ class SurveyTelephone {
echo '</div>';
}
else {
echo $lang['srv_telephone_calling_list_empty'].'<br class="clr">';
echo $lang['srv_telephone_calling_list_empty'];
}
echo '</div>';
}
// Seznam stevilk ki so v vrsti za klicanje
@ -1371,8 +1386,9 @@ class SurveyTelephone {
echo '</div>';
}
else {
echo $lang['srv_telephone_waiting_list_empty'].'<br class="clr">';
echo $lang['srv_telephone_waiting_list_empty'];
}
echo '</div>';
}
@ -1557,8 +1573,8 @@ class SurveyTelephone {
// dodamo filtriranje
echo '<div id="inv_rec_filter">';
echo '<input id="tel_rec_filter_value" type="text" class="text large" placeholder="'.$lang['srv_invitation_recipients_filter'].'" value="'.$_SESSION['inv_filter']['value'].'">';
echo '<button class="medium white-black" onclick="tel_filter_recipients(); return false;">'.$lang['srv_invitation_recipients_filter_button'].'</button>';
echo $lang['srv_invitation_recipients_filter'];
echo '<input id="tel_rec_filter_value" type="text" class="text large" value="'.$_SESSION['inv_filter']['value'].'" onChange="tel_filter_recipients(); return false;">';
echo '</div>';
echo '<form id="frm_inv_rec_export" name="resp_uploader" method="post" autocomplete="off">';
@ -1750,6 +1766,11 @@ class SurveyTelephone {
} else {
echo $lang['srv_inv_list_no_recipients'];
}
echo '<div class="button_holder">';
echo '<button class="medium white-blue" onClick="window.location.href=\''.$this->addUrl('recipients_lists').'\';return false;">'.$lang['back'].'</button>';
echo '<button class="medium blue" onClick="window.location.href=\''.$this->addUrl('start_call').'\';return false;">'.$lang['next1'].'</button>';
echo '</div>';
}
@ -2928,10 +2949,8 @@ class SurveyTelephone {
echo '<br/><br/>';
echo $lang['srv_inv_recipient_list_comment'];
echo '<textarea id="rec_profile_comment" tabindex="3" rows="2" ></textarea>';
echo '<br class="clr" /><br class="clr" />';
echo '<span class="buttonwrapper floatLeft spaceRight" title="'.$lang['srv_cancel'].'"><a class="ovalbutton ovalbutton_gray" href="#" onclick="$(\'#fade\').fadeOut(\'slow\');$(\'#fullscreen\').fadeOut(\'slow\').html(\'\');return false;" ><span>'.$lang['srv_cancel'].'</span></a></span>';
echo '<span class="buttonwrapper floatRight spaceRight" title="'.$lang['save'].'"><a class="ovalbutton ovalbutton_orange" href="#" onclick="phnSaveNewProfile(); return false;"><span>'.$lang['save'].'</span></a></span>';
echo '<br class="clr" />';
echo '</div>'; # id="inv_view_arch_recipients"
echo '<script type="text/javascript">';
echo "$('#rec_profile_name').focus();";
@ -3067,10 +3086,8 @@ class SurveyTelephone {
echo '<input type="hidden" id="rec_profile_pid" value="'.$pid.'" >';
echo '<br class="clr" /><br class="clr" />';
echo '<span class="buttonwrapper floatLeft spaceRight" title="'.$lang['srv_cancel'].'"><a class="ovalbutton ovalbutton_gray" href="#" onclick="$(\'#fade\').fadeOut(\'slow\');$(\'#fullscreen\').fadeOut(\'slow\').html(\'\');return false;" ><span>'.$lang['srv_cancel'].'</span></a></span>';
echo '<span class="buttonwrapper floatRight spaceRight" title="'.$lang['save'].'"><a class="ovalbutton ovalbutton_orange" href="#" onclick="phnUpdateProfile(); return false;"><span>'.$lang['save'].'</span></a></span>';
echo '<br class="clr" />';
echo '</div>'; # id="inv_view_arch_recipients"
}
@ -3176,7 +3193,7 @@ class SurveyTelephone {
}
echo '<p class="bottom16 semi-bold caps">'.$lang['srv_telephone_calling_number_info'].'</p>';
if($row1['firstname'] != '')
echo '<p>'.$lang['name'].': '.$row1['firstname'].'<p>';
if($row1['lastname'] != '')
@ -3185,6 +3202,9 @@ class SurveyTelephone {
echo '<p>'.$lang['email'].': '.$row1['email'].'</p>';
if($row1['custom'] != '')
echo '<p>Custom: '.$row1['custom'].'</p>';
if($row1['firstname'] != '' || $row1['lastname'] != '' || $row1['email'] != '' || $row1['custom'] != '')
echo '<p class="bottom16"></p>';
}
else {
# onemogočimo ponovno klicanje uporabnika ker je zaključena ali je zavrnil
@ -3263,11 +3283,11 @@ class SurveyTelephone {
if ($allUsers > 0) {
// Dovolimo izbrati novo stevilko samo v primeru ko imamo nakljucno sortiranje
if($this->call_order == 0)
echo '<p class="top16 bottom8"><a href="'.$this->addUrl('clear_current').'">'.$lang['srv_telephone_call_action_cancel_nextNumber'].' ('.count($toCall).')</a></p>';
echo '<p class="top16 bottom16"><a href="'.$this->addUrl('clear_current').'">'.$lang['srv_telephone_call_action_cancel_nextNumber'].' ('.count($toCall).')</a></p>';
}
# na voljo je samo ta številka, ne moremo ponudit druge
else {
echo '<p class="top16 bottom8"><a href="'.$this->addUrl('start_call').'">'.$lang['srv_telephone_call_action_cancel_preview'].' ('.count($toCall).')</a></p>';
echo '<p class="top16 bottom16"><a href="'.$this->addUrl('start_call').'">'.$lang['srv_telephone_call_action_cancel_preview'].' ('.count($toCall).')</a></p>';
}
// Razveljavimo zadnji status (undo)

View File

@ -4905,7 +4905,7 @@ $lang = array (
'srv_inv_settings_code_1' => "ročni vnos kode",
'srv_inv_settings_code_2' => "brez kode",
'srv_inv_add_recipients_heading' => "Dodaj respondente",
'srv_inv_recipiens_field_note' => "<span class=\"semi-bold\">Izberite polja, ki jih boste vnesli.</span> Dodatne spremenljivke lahko dodate v zavihku 'urejanje'. S premikanjem lahko določite vrstni red spremenljivk:",
'srv_inv_recipiens_field_note' => "<span class=\"semi-bold\">Izberite polja, ki jih boste vnesli.</span> Dodatne spremenljivke lahko dodate v zavihku 'Urejanje'. S premikanjem lahko določite vrstni red spremenljivk:",
'srv_inv_recipiens_email_note' => "<span class=\"semi-bold\">Vpišite ali kopirajte seznam prejemnikov, vsakega prejemnika dodajte v svojo vrstico.</span> Če uvažate tudi dodatna polja, jih ločite z vejico in jih dodajte v enakem vrstnem redu, kot ste označili polja zgoraj. Podvojeni zapisi bodo odstranjeni.",
'srv_inv_recipiens_email_note_append' => "Vpišite ali kopirajte podatke v tekstovni obliki, vsak zapis dodajte v svojo vrstico. Če dodajate več polj, jih ločite s spodaj izbranim ločilnikom in jih dodajte v enakem vrstnem redu kot ste označili polja zgoraj.",
'srv_inv_recipiens_pass_warning' => "Opozorilo! Maksimalna dolžina znakov za polje <i>PASSWORD</i> je 20 znakov.",
@ -5640,7 +5640,7 @@ $lang = array (
"srv_invitation_recipients_add_type3" => 'Shrani v seznam, vendar še ne dodaj v anketo',
"srv_invitation_recipients_add_type4" => 'Dodaj v anketo',
"srv_invitation_recipients_add_type5" => 'Shrani kot nov seznam',
"srv_invitation_recipients_filter" => 'Filtriraj po tabeli',
"srv_invitation_recipients_filter" => 'Filtriraj:',
"srv_invitation_recipients_filter_button" => 'Filtriraj',
"srv_invitation_recipients_filter_advanced" => 'Napredno filtriranje',
"srv_invitation_recipients_filter_sent" => 'Poslano:',
@ -6441,6 +6441,7 @@ $lang = array (
'srv_telephone_call_action_undo_status' => 'Pobriši zadnji status respondenta',
'srv_telephone_call_introduction' => 'Uvod',
'srv_telephone_call_comment' => 'Komentar anketarja na klic:',
'srv_telephone_call_anketar' => 'Anketar',
'srv_telephone_settings_access_list' => 'Seznam anketarjev in urednikov z dostopom',
'srv_telephone_settings_access_list_link' => ' (podrobno lahko urednike urejate <a href="%s">tukaj</a>):',
'srv_telephone_no_respondents' => 'V bazi nimate respondentov s telefonskimi številkami.',

View File

@ -5600,7 +5600,7 @@ $lang = array (
"srv_invitation_recipients_add_type3" => 'Only save recipients in a list',
"srv_invitation_recipients_add_type4" => 'Add this list to the survey',
"srv_invitation_recipients_add_type5" => 'Edit the labels of the list',
"srv_invitation_recipients_filter" => 'Filter table',
"srv_invitation_recipients_filter" => 'Filter:',
"srv_invitation_recipients_filter_button" => 'Filter',
"srv_invitation_recipients_filter_advanced" => 'Advanced:',
"srv_invitation_recipients_filter_sent" => 'Sent:',
@ -6335,6 +6335,7 @@ $lang = array (
'srv_telephone_call_action_undo_status' => 'Undo last respondent status',
'srv_telephone_call_introduction' => 'Introduction',
'srv_telephone_call_comment' => 'Any comment for this call:',
'srv_telephone_call_anketar' => 'Surveyer',
'srv_telephone_settings_access_list' => 'List of interviewers and editors with access to the survey',
'srv_telephone_settings_access_list_link' => ' (for detailed editing of editors click <a href="%s">here</a>):',
'srv_telephone_no_respondents' => 'There are no respondents with telephone numbers in your database.',

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,16 @@ div.page_telephone {
div.phn_step_nav {
display: flex;
flex-direction: row;
align-items: center;
.inv_space{
width: 50px;
height: 1px;
margin: 0 8px;
border-top: 1px $dark-gray2 dashed;
}
div.phn_step {
@ -28,22 +38,6 @@ div.page_telephone {
color: $very-dark-gray;
div.label {
&:after {
content: "";
display: inline-block;
height: 0.5em;
vertical-align: bottom;
width: 32px;
margin-right: -100%;
margin-left: 3px;
border-top: 1px solid $dark-gray;
cursor: default;
}
}
&:not(:first-of-type) {
margin-left: 3px;
}
@ -75,7 +69,6 @@ div.page_telephone {
&.active {
color: $blue;
font-weight: $semi-bold;
div.square {
border-color: $blue;
@ -202,6 +195,10 @@ div.page_telephone {
}
}
div#inv_field_container {
margin: 16px 0;
}
fieldset#inv_import_list_container {
padding: 16px;
min-height: 355px;
@ -234,22 +231,27 @@ div.page_telephone {
div#filter_wrap{
font-size: 14px !important;
display: flex;
flex-direction: row;
gap: 16px;
align-items: center;
div#inv_rec_filter {
border: none;
padding: 0;
border: 1px solid $gray;
background-color: $light-gray;
padding: 6px 16px;
input {
margin: 0;
height: 42px;
margin: 0 0 0 8px;
height: 28px;
width: 160px;
}
}
}
table {
font-size: 14px !important;
td {
div.icons {
display: flex;
@ -265,6 +267,7 @@ div.page_telephone {
div#inv_bottom_edit {
margin-left: 18px;
font-size: 14px !important;
a {
text-decoration: none;
@ -272,9 +275,22 @@ div.page_telephone {
}
}
div.button_holder {
margin: 16px 0 0 0;
justify-content: flex-end;
button{
&:last-of-type {
margin-right: 0;
}
}
}
//Klicanje
table#phn_call_table {
font-size: 14px !important;
td,th {
border: none;
background-color: $white;
@ -320,17 +336,23 @@ div.page_telephone {
}
p {
font-size: 14px !important;
a {
text-decoration: none;
}
}
}
div#phn_user_comment {
height: 60px;
border: 1px solid $gray;
border-radius: 2px;
margin-top: 4px;
div#phn_user_comment {
height: 60px;
border: 1px solid $gray;
border-radius: 2px;
margin-top: 4px;
margin-bottom: 16px;
}
label {
font-size: 14px !important;
}
}
// Čakalna vrsta
@ -341,6 +363,10 @@ div.page_telephone {
align-items: center;
margin-top: 32px;
table {
font-size: 14px !important;
}
}
div#tel_line_wrap0 {
@ -348,6 +374,10 @@ div.page_telephone {
flex-direction: row;
gap: 16px;
align-items: center;
table {
font-size: 14px !important;
}
}
//Nastavitve
@ -363,6 +393,7 @@ div.page_telephone {
input {
width: 40px;
margin: 0;
}
}
@ -381,13 +412,16 @@ div.page_telephone {
input {
width: 110px;
margin-right: 0px;
margin-left: 8px;
margin: 0 0 0 8px;
}
button {
margin-right: 8px;
margin-right: 16px;
}
}
table.inv_dashboard_table {
font-size: 16px !important;
}
}