This commit is contained in:
pero1203 2022-03-04 11:35:16 +01:00
commit 9bd1ca0e12
16 changed files with 2132 additions and 1852 deletions

View File

@ -6004,37 +6004,48 @@ class SurveyAdminSettings {
echo '<fieldset><legend>'.$lang['srv_total_trajanje'].'</legend>';
echo '<p>'.$lang['srv_dejansko_trajanje'].': <b>'.$skupni_cas.'</b></p>';
echo '<p class="semi-bold">'.$lang['srv_dejansko_trajanje'].':</p>';
echo '<p>'.$skupni_cas.'</p>';
echo '</fieldset>';
echo '<br />';
echo '<fieldset><legend>'.$lang['srv_casi_po_straneh'].'</legend>';
echo '<table style="width:100%">';
echo '<table>';
echo '<tr>';
echo '<th>'.$lang['srv_casi_po_straneh_stran'].'</th>';
echo '<th colspan="2">'.$lang['srv_neto_t_cas'].' / '.$lang['srv_bruto_t_cas'].'</th>';
echo '</tr>';
foreach ($expected_time AS $vrstni_red => $time) {
$sql = sisplet_query("SELECT naslov FROM srv_grupa WHERE vrstni_red='$vrstni_red' AND ank_id = '$this->anketa'");
$row = mysqli_fetch_array($sql);
echo '<tr>';
echo '<th style="text-align:left; padding: 0 20px 0 0" nowrap>'.($row['naslov']!=''?$row['naslov']:$lang['srv_intro_label']).'</th>';
echo '<td style="width:100%">';
echo ' <div class="graph_db" style="text-align: right; float: left; width: '.($time[0]/$max*85).'%">&nbsp;</div>';
echo '<td>'.($row['naslov']!=''?$row['naslov']:$lang['srv_intro_label']).'</td>';
echo '<td class="right time">';
echo ($time[0]<60?round($time[0],1).'s ':round($time[0]/60,1).'min ').'/ <span class="gray">'.($time[1]<60?round($time[1],1).'s ':round($time[1]/60,1).'min ').'</span>';
echo '</td>';
echo '<td class="graph_cell">';
echo '<div class="graph_cell">';
echo '<div class="graph_full" style="width: '.($time[0]/$max*85).'%">&nbsp;</div>';
if ((($time[1]-$time[0])/$max*85) > 0)
echo ' <div class="graph_lb" style="border-left: 0; text-align: right; float: left; width: '.(($time[1]-$time[0])/$max*85).'%">&nbsp;</div>';
echo ' <span style="display: block; margin: auto auto auto 5px; float: left">'.($time[0]<60?round($time[0],1).'s ':round($time[0]/60,1).'min ').'<span style="color:gray">/ '.($time[1]<60?round($time[1],1).'s ':round($time[1]/60,1).'min ').'</span></span>';
echo ' <div class="graph_empty" style="width: '.(($time[1]-$time[0])/$max*85).'%">&nbsp;</div>';
echo '</div>';
echo '</td>';
echo '</tr>';
}
echo '<tr><td colspan="3" style="border-bottom:1px solid #E4E4F9"></td></tr>';
echo '<tr><td></td><th style="text-align:left; padding-right: 20px" nowrap>'.$lang['srv_anl_suma1'].': '.(bcdiv($total, 60, 0)>0?bcdiv($total, 60, 0).'min ':'').''.round(bcmod($total, 60), 0).'s</th></tr>';
echo '</table>';
echo '<p><div class="graph_db" style="float: left; width: 11px">&nbsp;</div><span style="float:left; margin:0 10px 0 5px"> - '.$lang['srv_neto_t_cas'].'</span>';
echo '<div class="graph_lb" style="float: left; width: 11px">&nbsp;</div><span style="float:left; margin:0 10px 0 5px"> - '.$lang['srv_bruto_t_cas'].'</span></p>';
echo '<div class="tabela_trajanje_legenda">';
echo '<div class="graph_full legend"></div><span class="legend"> '.$lang['srv_neto_t_cas'].'</span>';
echo '<div class="graph_empty legend"></div><span class="legend"> '.$lang['srv_bruto_t_cas'].'</span>';
echo '</div>';
echo '</fieldset>';
@ -6050,15 +6061,21 @@ class SurveyAdminSettings {
$prevstran = false;
echo '<br />';
echo '<fieldset><legend>'.$lang['srv_casi_po_vprasanjih_strani'].'</legend>';
echo '<table style="width:100%">';
echo '<tr><td></td><th>'.$lang['srv_bruto_v_cas'].'</th><th>'.$lang['srv_verjetnost_pojavitve'].'</th><th>'.$lang['srv_neto_v_cas'].'</th></tr>';
echo '<table>';
echo '<tr>';
echo '<th>'.$lang['srv_casi_po_straneh_stran'].'/'.$lang['srv_casi_po_vprasanjih_vprasanje'].'</th>';
echo '<th>'.$lang['srv_bruto_v_cas'].'</th>';
echo '<th>'.$lang['srv_verjetnost_pojavitve'].'</th>';
echo '<th colspan="2">'.$lang['srv_neto_v_cas'].'/'.$lang['srv_bruto_v_cas_long'].'</th>';
echo '</tr>';
foreach ($expected_vprasanja AS $vprasanje) {
if (!$prevstran || $prevstran != $vprasanje[3]) {
echo '<tr><th style="text-align:left; border-bottom:1px solid #E4E4F9; padding-top:10px" colspan="5">'.$vprasanje[3].'</th></tr>';
echo '<tr><td class="semi-bold" colspan="5">'.$vprasanje[3].'</td></tr>';
$prevstran = $vprasanje[3];
}
@ -6066,102 +6083,156 @@ class SurveyAdminSettings {
$verjetnost = $vprasanje[1];
$neto = $bruto * $verjetnost;
echo '<tr><td align="left"><span title="'.$vprasanje[2].'">'.skrajsaj($vprasanje[2], 30).'</span></td><td align="center">'.round($bruto, 1).'s</td><td align="center">'.round($verjetnost*100, 2).'%</td><td align="center">'.round($neto, 1).'s</td>';
echo '<td style="width:50%">';
echo ' <div class="graph_db" style="text-align: right; float: left; width: '.($neto/$max*85).'%">&nbsp;</div>';
if (($bruto-$neto)/$max*85 > 0)
echo ' <div class="graph_lb" style="border-left:0; text-align: right; float: left; width: '.(($bruto-$neto)/$max*85).'%">&nbsp;</div>';
echo ' <span style="display: block; margin: auto auto auto 5px; float: left; color: gray">'.round($neto, 1).'s / '.round($bruto, 1).'s</span>';
echo '<tr>';
echo '<td><span title="'.$vprasanje[2].'">'.skrajsaj($vprasanje[2], 30).'</span></td>';
echo '<td class="right">'.round($bruto, 1).'s</td>';
echo '<td class="center">'.round($verjetnost*100, 2).'%</td>';
echo '<td class="right time">';
echo round($neto, 1).'s / <span class="gray">'.round($bruto, 1).'s</span>';
echo '</td>';
echo '<td class="graph_cell">';
echo '<div class="graph_cell">';
echo '<div class="graph_full" style="width: '.($neto/$max*85).'%">&nbsp;</div>';
if (($bruto-$neto)/$max*85 > 0)
echo ' <div class="graph_empty" style="width: '.(($bruto-$neto)/$max*85).'%">&nbsp;</div>';
echo '</div>';
echo '</td>';
echo '</tr>';
}
echo '<tr><th></th><th>'.(bcdiv($bruto_total, 60, 0)>0?bcdiv($bruto_total, 60, 0).'min ':'').''.round(bcmod($bruto_total, 60), 0).'s</th><th></th><th>'.(bcdiv($neto_total, 60, 0)>0?bcdiv($neto_total, 60, 0).'min ':'').''.round(bcmod($neto_total, 60), 0).'s</th><tr>';
echo '<tr class="semi-bold"><td>'.$lang['srv_casi_po_vprasanjih_skupaj'].'</td><td class="right">'.(bcdiv($bruto_total, 60, 0)>0?bcdiv($bruto_total, 60, 0).'min ':'').''.round(bcmod($bruto_total, 60), 0).'s</td><td></td><td></td><td></td></tr>';
echo '</table>';
echo '<div class="tabela_trajanje_legenda">';
echo '<div class="graph_full legend"></div><span class="legend"> '.$lang['srv_neto_v_cas'].'</span>';
echo '<div class="graph_empty legend"></div><span class="legend"> '.$lang['srv_bruto_v_cas_long'].'</span>';
echo '</div>';
echo '</fieldset>';
//CASI PO BLOKIH
if($block_spr_data){
// izpis za bloke
$maxb = 0;
$totalb = 0;
foreach ($expected_time_block AS $key => $val) {
if ($val[1] > $maxb) $maxb = $val[1];
$totalb += $val[0];
}
echo '<br />';
echo '<fieldset><legend>'.$lang['srv_casi_po_blokih'].'</legend>';
echo '<table style="width:100%">';
//CASI PO BLOKIH
if($block_spr_data){
// izpis za bloke
$maxb = 0;
$totalb = 0;
foreach ($expected_time_block AS $key => $val) {
if ($val[1] > $maxb) $maxb = $val[1];
$totalb += $val[0];
}
echo '<fieldset><legend>'.$lang['srv_casi_po_blokih'].'</legend>';
echo '<table>';
foreach ($expected_time_block AS $vrstni_red => $time) {
echo '<tr>';
echo '<th style="text-align:left; padding: 0 20px 0 0" nowrap>'.$block_labels_by_number[$vrstni_red+1].'</th>';
echo '<tr>';
echo '<th>'.$lang['srv_casi_po_blokih_blok'].'</th>';
echo '<th colspan="2">'.$lang['srv_neto_t_cas'].' / '.$lang['srv_bruto_t_cas'].'</th>';
echo '</tr>';
echo '<td style="width:100%">';
echo ' <div class="graph_db" style="text-align: right; float: left; width: '.($time[0]/$maxb*85).'%">&nbsp;</div>';
if ((($time[1]-$time[0])/$maxb*85) > 0)
echo ' <div class="graph_lb" style="border-left: 0; text-align: right; float: left; width: '.(($time[1]-$time[0])/$maxb*85).'%">&nbsp;</div>';
echo ' <span style="display: block; margin: auto auto auto 5px; float: left">'.($time[0]<60?round($time[0],1).'s ':round($time[0]/60,1).'min ').'<span style="color:gray">/ '.($time[1]<60?round($time[1],1).'s ':round($time[1]/60,1).'min ').'</span></span>';
echo '</td>';
foreach ($expected_time_block AS $vrstni_red => $time) {
echo '<tr>';
echo '<td class="nowrap">'.$block_labels_by_number[$vrstni_red+1].'</td>';
echo '</tr>';
}
echo '<tr><td colspan="3" style="border-bottom:1px solid #E4E4F9"></td></tr>';
echo '<tr><td></td><th style="text-align:left; padding-right: 20px" nowrap>'.$lang['srv_anl_suma1'].': '.(bcdiv($totalb, 60, 0)>0?bcdiv($totalb, 60, 0).'min ':'').''.round(bcmod($totalb, 60), 0).'s</th></tr>';
echo '<td class="right time">';
echo ($time[0]<60?round($time[0],1).'s ':round($time[0]/60,1).'min ').'<span class="gray">/ '.($time[1]<60?round($time[1],1).'s ':round($time[1]/60,1).'min ').'</span>';
echo '</td>';
echo '</table>';
echo '<td class="graph_cell">';
echo '<div class="graph_cell">';
echo ' <div class="graph_full" style="width: '.($time[0]/$maxb*85).'%">&nbsp;</div>';
if ((($time[1]-$time[0])/$maxb*85) > 0)
echo ' <div class="graph_empty" style="width: '.(($time[1]-$time[0])/$maxb*85).'%">&nbsp;</div>';
echo '</div>';
echo '</td>';
echo '<p><div class="graph_db" style="float: left; width: 11px">&nbsp;</div><span style="float:left; margin:0 10px 0 5px"> - '.$lang['srv_neto_t_cas'].'</span>';
echo '<div class="graph_lb" style="float: left; width: 11px">&nbsp;</div><span style="float:left; margin:0 10px 0 5px"> - '.$lang['srv_bruto_t_cas'].'</span></p>';
echo '</tr>';
}
echo '<tr class="semi-bold"><td>'.$lang['srv_casi_po_vprasanjih_skupaj'].'</td><td class="right time">'.(bcdiv($totalb, 60, 0)>0?bcdiv($totalb, 60, 0).'min ':'').''.round(bcmod($totalb, 60), 0).'s</td><td></td><td></td><td></td></tr>';
echo '</fieldset>';
// izpis za vprasanja po blokih
$max = 0;
$bruto_total = 0;
$neto_total = 0;
foreach ($expected_vprasanja AS $vpr) {
if($vpr[4]){
if ($vpr[0] > $max) $max = $vpr[0];
$bruto_total += $vpr[0];
$neto_total += $vpr[0] * $vpr[1];
}
}
echo '</table>';
$prevstran = false;
echo '<div class="tabela_trajanje_legenda">';
echo '<div class="graph_full legend"></div><span class="legend"> '.$lang['srv_neto_t_cas'].'</span>';
echo '<div class="graph_empty legend"></div><span class="legend"> '.$lang['srv_bruto_t_cas'].'</span>';
echo '</div>';
echo '<br />';
echo '</fieldset>';
// izpis za vprasanja po blokih
$max = 0;
$bruto_total = 0;
$neto_total = 0;
foreach ($expected_vprasanja AS $vpr) {
if($vpr[4]){
if ($vpr[0] > $max) $max = $vpr[0];
$bruto_total += $vpr[0];
$neto_total += $vpr[0] * $vpr[1];
}
}
echo '<fieldset><legend>'.$lang['srv_casi_po_vprasanjih_bloki'].'</legend>';
echo '<table style="width:100%">';
echo '<tr><td></td><th>'.$lang['srv_bruto_v_cas'].'</th><th>'.$lang['srv_verjetnost_pojavitve'].'</th><th>'.$lang['srv_neto_v_cas'].'</th></tr>';
foreach ($expected_vprasanja AS $vprasanje) {
if($vprasanje[4]){
if (!$prevstran || $prevstran != $vprasanje[4]) {
echo '<tr><th style="text-align:left; border-bottom:1px solid #E4E4F9; padding-top:10px" colspan="5">'.$vprasanje[4].'</th></tr>';
$prevstran = $vprasanje[4];
}
$prevstran = false;
$bruto = $vprasanje[0];
$verjetnost = $vprasanje[1];
$neto = $bruto * $verjetnost;
echo '<fieldset><legend>'.$lang['srv_casi_po_vprasanjih_bloki'].'</legend>';
echo '<tr><td align="left"><span title="'.$vprasanje[2].'">'.skrajsaj($vprasanje[2], 30).'</span></td><td align="center">'.round($bruto, 1).'s</td><td align="center">'.round($verjetnost*100, 2).'%</td><td align="center">'.round($neto, 1).'s</td>';
echo '<td style="width:50%">';
echo ' <div class="graph_db" style="text-align: right; float: left; width: '.($neto/$max*85).'%">&nbsp;</div>';
if (($bruto-$neto)/$max*85 > 0)
echo ' <div class="graph_lb" style="border-left:0; text-align: right; float: left; width: '.(($bruto-$neto)/$max*85).'%">&nbsp;</div>';
echo ' <span style="display: block; margin: auto auto auto 5px; float: left; color: gray">'.round($neto, 1).'s / '.round($bruto, 1).'s</span>';
echo '</td>';
echo '</tr>';
}
}
echo '<tr><th></th><th>'.(bcdiv($bruto_total, 60, 0)>0?bcdiv($bruto_total, 60, 0).'min ':'').''.round(bcmod($bruto_total, 60), 0).'s</th><th></th><th>'.(bcdiv($neto_total, 60, 0)>0?bcdiv($neto_total, 60, 0).'min ':'').''.round(bcmod($neto_total, 60), 0).'s</th><tr>';
echo '</table>';
echo '</fieldset>';
}
echo '<table>';
echo '<tr>';
echo '<th>'.$lang['srv_casi_po_straneh_stran'].'/'.$lang['srv_casi_po_vprasanjih_vprasanje'].'</th>';
echo '<th>'.$lang['srv_bruto_v_cas'].'</th>';
echo '<th>'.$lang['srv_verjetnost_pojavitve'].'</th>';
echo '<th colspan="2">'.$lang['srv_neto_v_cas'].'/'.$lang['srv_bruto_v_cas_long'].'</th>';
echo '</tr>';
foreach ($expected_vprasanja AS $vprasanje) {
if($vprasanje[4]){
if (!$prevstran || $prevstran != $vprasanje[4]) {
echo '<tr><td class="semi-bold" colspan="5">'.$vprasanje[4].'</td></tr>';
$prevstran = $vprasanje[4];
}
$bruto = $vprasanje[0];
$verjetnost = $vprasanje[1];
$neto = $bruto * $verjetnost;
echo '<tr>';
echo '<td><span title="'.$vprasanje[2].'">'.skrajsaj($vprasanje[2], 30).'</span></td>';
echo '<td class="right">'.round($bruto, 1).'s</td>';
echo '<td class="center">'.round($verjetnost*100, 2).'%</td>';
echo '<td class="right time">';
echo round($neto, 1).'s / <span class="gray">'.round($bruto, 1).'s</span>';
echo '</td>';
echo '<td class="graph_cell">';
echo '<div class="graph_cell">';
echo '<div class="graph_full" style="width: '.($neto/$max*85).'%">&nbsp;</div>';
if (($bruto-$neto)/$max*85 > 0)
echo ' <div class="graph_empty" style="width: '.(($bruto-$neto)/$max*85).'%">&nbsp;</div>';
echo '</div>';
echo '</td>';
echo '</tr>';
}
}
echo '<tr class="semi-bold"><td>'.$lang['srv_casi_po_vprasanjih_skupaj'].'</td><td class="right">'.(bcdiv($bruto_total, 60, 0)>0?bcdiv($bruto_total, 60, 0).'min ':'').''.round(bcmod($bruto_total, 60), 0).'s</td><td></td><td></td><td></td></tr>';
echo '</table>';
echo '<div class="tabela_trajanje_legenda">';
echo '<div class="graph_full legend"></div><span class="legend"> '.$lang['srv_neto_v_cas'].'</span>';
echo '<div class="graph_empty legend"></div><span class="legend"> '.$lang['srv_bruto_v_cas_long'].'</span>';
echo '</div>';
echo '</fieldset>';
}
}
/**

View File

@ -143,12 +143,6 @@ class SurveyDiagnostics
$_pripombe = true;
}
echo '<span class="srv_diagnostic_note">';
echo $this->printNote();
#
echo '</span>';
SurveySetting::getInstance()->Init($this->anketa);
$preview_disableif = SurveySetting::getInstance()->getSurveyMiscSetting('preview_disableif');
@ -158,27 +152,36 @@ class SurveyDiagnostics
$preview_hidecomment = SurveySetting::getInstance()->getSurveyMiscSetting('preview_hidecomment');
$preview_options = ''.($preview_disableif==1?'&disableif=1':'').($preview_disablealert==1?'&disablealert=1':'').($preview_displayifs==1?'&displayifs=1':'').($preview_displayvariables==1?'&displayvariables=1':'').($preview_hidecomment==1?'&hidecomment=1':'').'';
/* - ZAČASNO ZAKOMENTIRAN TOOLTIP (prekriva vsebino za redizajn) @TG
echo '<br><div style="display:inline-block; margin: 0 0 10px 20px">';
/* - ZAČASNO ZAKOMENTIRAN TOOLTIP (prekriva vsebino za redizajn) @TG
echo '<span class="tooltip">';
echo '<a href="'.SurveyInfo::getSurveyLink().'&preview=on&testdata=on'.$preview_options.'" target="_blank" style="font-size:15px"><span class="faicon edit_square"></span> '.$lang['srv_survey_testdata'].'</a>';
echo ' ('.SurveyInfo::getSurveyLink().'&preview=on&testdata=on'.$preview_options.') ';
echo '<span class="expanded-tooltip bottom light" style="left: -40px;">';
echo '<b>' . $lang['srv_survey_testdata2'] . ':</b> '.$lang['srv_testdata_text'].'';
echo '<p>'.$lang['srv_preview_testdata_longtext'].'</p>';
echo '<span class="arrow"></span>';
echo '</span>'; // expanded-tooltip bottom
echo '</span>'; // tooltip */
echo ' - <a href="#" id="popup-open" onclick="javascript:testiranje_preview_settings(); return false;" title="'.$lang['settings'].'"><span class="sprites settings"></span> '.$lang['srv_uredniske_nastavitve'].'</a>';
// TESTIRANJE
echo '<h2>'.$lang['srv_diagnostika_testiranje'].'</h2>';
echo '<p class="bottom16">'.$lang['srv_diagnostika_testiranje_notea'].'<a href="index.php?anketa=' . $this->anketa . '&a=testiranje&m=testnipodatki">'.$lang['srv_diagnostika_testiranje_noteb'].'</a>'.$lang['srv_diagnostika_testiranje_notec'].'</p>';
echo '<div class="button_holder inline center bottom0">';
echo '<span class="faicon link-chain link-right blue"></span><span class="italic">'.SurveyInfo::getSurveyLink().'&preview=on&testdata=on'.$preview_options.'</span>';
echo '<button type="button" class="medium blue" onclick="CopyToClipboard(\''.SurveyInfo::getSurveyLink().'&preview=on&testdata=on'.$preview_options.'\');" return false;">'.$lang['srv_diagnostika_testiranje_copy'].'</button>';
echo '</div>';
/*Nastavitve testnega vnosa - popup
echo ' - <a href="#" id="popup-open" onclick="javascript:testiranje_preview_settings(); return false;" title="'.$lang['settings'].'"><span class="sprites settings"></span> '.$lang['srv_uredniske_nastavitve'].'</a>';
if ( isset($_GET['popup']) && $_GET['popup'] == 'open' ) {
?><script> $(function() { $('#popup-open').click(); }); </script><?php
}
echo '<br/>';
}*/
// DIAGNOSTIKA
# predviden čas ankete
list($total,$skupni_cas) = $this->time;
@ -213,382 +216,335 @@ class SurveyDiagnostics
} else {
$kompleksnost = $lang['srv_diagnostic_complexity_5'];
}
#OPOZORILA
echo '<div class="floatLeft">';
echo '<div id="srv_diagnostic_results" >';
echo '<h2>'.$lang['srv_testiranje_diagnostika'].'</h2>';
echo '<table class="srv_diagnostic_results">';
echo '<tr>';
echo '<th>'.$lang['srv_diagnostika_table_title1'].'</th>';
echo '<th>'.$lang['srv_diagnostika_table_title'].'</th>';
echo '<th class="center">'.$lang['srv_diagnostika_table_title'].'</th>';
echo '<th class="center">'.$lang['srv_diagnostika_table_title2'].'</th>';
echo '</tr>';
#Preveč ali premalo opomnikov (reminder).
#Napake - v IFih, Zankah
//Link - kako odkriti logične in tehnične napake
if($lang['id'] == '1')
$link_status = 'href="https://www.1ka.si/d/sl/pomoc/pogosta-vprasanja/kako-odkriti-logicne-tehnicne-napake-vprasalniku?from1ka=1" target="_blank"';
else
$link_status = 'href="https://www.1ka.si/d/en/help/faq/how-do-i-detect-logical-and-technical-errors-the-questionnaire?from1ka=1" target="_blank"';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_5_element_1'].'</td>';
echo '<td>';
if (in_array(DIAG_INVALID_CONDITIONS,$this->diagnostic_note)) {
echo '<span class="red">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/pomoc/pogosta-vprasanja/kako-odkriti-logicne-tehnicne-napake-vprasalniku?from1ka=1" target="_blank">'.$lang['srv_diagnostic_neustreza1'].'</a>';
else
echo '<a href="https://www.1ka.si/d/en/help/faq/how-do-i-detect-logical-and-technical-errors-the-questionnaire?from1ka=1" target="_blank">'.$lang['srv_diagnostic_neustreza1'].'</a>';
echo '</span>';
$color_status = 'notok';
$msg_status = $lang['srv_diagnostic_neustreza'];
}
else {
echo '<span class="green">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/pomoc/pogosta-vprasanja/kako-odkriti-logicne-tehnicne-napake-vprasalniku?from1ka=1" target="_blank">'.$lang['srv_diagnostic_ustreza'].'</a>';
else
echo '<a href="https://www.1ka.si/d/en/help/faq/how-do-i-detect-logical-and-technical-errors-the-questionnaire?from1ka=1" target="_blank">'.$lang['srv_diagnostic_ustreza'].'</a>';
echo '</span>';
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '</td>';
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
#Napake - v validacijah
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_5_element_3'].'</td>';
echo '<td>';
if (in_array(DIAG_INVALID_VALIDATIONS, $this->diagnostic_note)) {
echo '<span class="red">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/pomoc/pogosta-vprasanja/kako-odkriti-logicne-tehnicne-napake-vprasalniku?from1ka=1" target="_blank">'.$lang['srv_diagnostic_neustreza1'].'</a>';
else
echo '<a href="https://www.1ka.si/d/en/help/faq/how-do-i-detect-logical-and-technical-errors-the-questionnaire?from1ka=1" target="_blank">'.$lang['srv_diagnostic_neustreza1'].'</a>';
echo '</span>';
$color_status = 'notok';
$msg_status = $lang['srv_diagnostic_neustreza'];
}
else {
echo '<span class="green">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/pomoc/pogosta-vprasanja/kako-odkriti-logicne-tehnicne-napake-vprasalniku?from1ka=1" target="_blank">'.$lang['srv_diagnostic_ustreza'].'</a>';
else
echo '<a href="https://www.1ka.si/d/en/help/faq/how-do-i-detect-logical-and-technical-errors-the-questionnaire?from1ka=1" target="_blank">'.$lang['srv_diagnostic_ustreza'].'</a>';
echo '</span>';
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '</td>';
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
#napake - Podovojenost imen varianel
#napake - Podovojenost imen variabel
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_5_element_2'].'</td>';
echo '<td>';
if (in_array(DIAG_INVALID_VARIABLENAMES,$this->diagnostic_note)) {
echo '<span class="red">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/pomoc/pogosta-vprasanja/kako-odkriti-logicne-tehnicne-napake-vprasalniku?from1ka=1" target="_blank">'.$lang['srv_diagnostic_neustreza1'].'</a>';
else
echo '<a href="https://www.1ka.si/d/en/help/faq/how-do-i-detect-logical-and-technical-errors-the-questionnaire?from1ka=1" target="_blank">'.$lang['srv_diagnostic_neustreza1'].'</a>';
echo '</span>';
echo '<span>&nbsp;';
echo '<a href="'.$site_url . 'admin/survey/index.php?anketa='.$this->sid.'&checkDuplicate=1" title="'.$lang['srv_check_pogoji'].'"><span class="faicon bug"></span></a> '."\n";
echo '</span>';
$color_status = 'notok';
$msg_status = '<a href="'.$site_url . 'admin/survey/index.php?anketa='.$this->sid.'&checkDuplicate=1" title="'.$lang['srv_check_pogoji'].'">'.$lang['srv_diagnostic_neustreza'].'</a>';
}
else {
echo '<span class="green">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/pomoc/pogosta-vprasanja/kako-odkriti-logicne-tehnicne-napake-vprasalniku?from1ka=1" target="_blank">'.$lang['srv_diagnostic_ustreza'].'</a>';
else
echo '<a href="https://www.1ka.si/d/en/help/faq/how-do-i-detect-logical-and-technical-errors-the-questionnaire?from1ka=1" target="_blank">'.$lang['srv_diagnostic_ustreza'].'</a>';
echo '</span>';
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '</td>';
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
echo '</table>';
echo '</div>';
echo '<br/><br/>';
echo '<div id="srv_diagnostic_results" >';
echo '<table class="srv_diagnostic_results">';
# echo '<COLGROUP><COL width="50%"><COL><COL><COLGROUP>';
echo '<tr>';
echo '<th>'.$lang['srv_diagnostika_table_title2'].'</th>';
echo '<th>'.$lang['srv_diagnostika_table_title'].'</th>';
echo '</tr>';
#OPOZORILA
# Preveč podvprašanj na eni strani.
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_1'].'</td>';
echo '<td>';
if($lang['id'] == '1')
$link = '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/prevec-podvprasanj-bloku-prevec-vprasanj-na-eni-strani?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/prevec-podvprasanj-bloku-prevec-vprasanj-na-eni-strani?from1ka=1" target="_blank"';
else
$link = '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/too-many-subquestions-block-and-too-many-questions-on-one-page?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/too-many-subquestions-block-and-too-many-questions-on-one-page?from1ka=1" target="_blank"';
if (in_array(DIAG_SPR_ON_PAGE,$this->diagnostic_note)) {
echo '<span class="red">';
printf($link,$lang['srv_diagnostic_neustreza2']);
echo '</span>';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
}
else {
echo '<span class="green">';
printf($link,$lang['srv_diagnostic_ustreza']);
echo '</span>';
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '</td>';
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
# Preveč vprašanj v bloku.
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_2'].'</td>';
echo '<td>';
if($lang['id'] == '1')
$link = '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/premajhna-strukturiranost-vprasalnika?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/premajhna-strukturiranost-vprasalnika?from1ka=1" target="_blank"';
else
$link = '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/insufficiently-structured-questionnaire?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/insufficiently-structured-questionnaire?from1ka=1" target="_blank"';
if (in_array(DIAG_SPR_IN_BLOCK,$this->diagnostic_note)) {
echo '<span class="red">';
printf($link,$lang['srv_diagnostic_neustreza2']);
echo '</span>';
} else {
echo '<span class="green">';
printf($link,$lang['srv_diagnostic_ustreza']);
echo '</span>';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
}
echo '</td>';
else {
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
# Preveč podpvprašanj v multigridu
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_3'].'</td>';
echo '<td>';
if($lang['id'] == '1')
$link = '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/prevec-podvprasanj-bloku-prevec-vprasanj-na-eni-strani?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/prevec-podvprasanj-bloku-prevec-vprasanj-na-eni-strani?from1ka=1" target="_blank"';
else
$link = '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/too-many-subquestions-block-and-too-many-questions-on-one-page?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/too-many-subquestions-block-and-too-many-questions-on-one-page?from1ka=1" target="_blank"';
if (in_array(DIAG_SUB_Q_IN_GRID,$this->diagnostic_note)) {
echo '<span class="red">';
printf($link,$lang['srv_diagnostic_neustreza2']);
echo '</span>';
} else {
echo '<span class="green">';
printf($link,$lang['srv_diagnostic_ustreza']);
echo '</span>';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
}
else {
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</td>';
echo '</tr>';
#Začetek ankete z neprimernimi vprašanji.
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_2_element_1'].'</td>';
echo '<td>';
if($lang['id'] == '1')
$link = '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/zacetek-ankete-z-neprimernimi-vprasanji?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/zacetek-ankete-z-neprimernimi-vprasanji?from1ka=1" target="_blank"';
else
$link = '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/beginning-the-survey-with-inappropriate-questions?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/beginning-the-survey-with-inappropriate-questions?from1ka=1" target="_blank"';
if (in_array(DIAG_UNAPROPRIATE_START,$this->diagnostic_note)) {
echo '<span class="red">';
printf($link,$lang['srv_diagnostic_neustreza2']);
echo '</span>';
} else {
echo '<span class="green">';
printf($link,$lang['srv_diagnostic_ustreza']);
echo '</span>';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
}
echo '</td>';
else {
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
# predolga anketa - opozorilo
if (in_array(DIAG_TIME_HARD_LIMIT,$this->diagnostic_note)) {
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_2_element_2'].'</td>';
echo '<td>';
echo '<span class="red">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kako-dolga-naj-bo-moja-anketa?from1ka=1" target="_blank">';
else
echo '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/how-long-should-my-survey-be?from1ka=1" target="_blank">';
echo $lang['srv_diagnostic_neustreza'];
echo '</a>';
echo '</span>';
echo '</td>';
if($lang['id'] == '1')
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kako-dolga-naj-bo-moja-anketa?from1ka=1" target="_blank"';
else
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/how-long-should-my-survey-be?from1ka=1" target="_blank"';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
}
echo '</table>';
echo '</div>';
# PRIPOROČILA
echo '<br/><br/>';
echo '<div id="srv_diagnostic_results" >';
echo '<table class="srv_diagnostic_results">';
echo '<tr>';
echo '<th>'.$lang['srv_diagnostika_table_title3'].'</th>';
echo '<th>'.$lang['srv_diagnostika_table_title'].'</th>';
echo '</tr>';
#Preveč ali premalo opomnikov (reminder).
#Preveč ali premalo opomnikov (reminder) - 2 vrstici
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_3_element_1'].'</td>';
echo '<td>';
if($lang['id'] == '1')
$link = '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/prevec-ali-premalo-opomnikov?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/prevec-ali-premalo-opomnikov?from1ka=1" target="_blank"';
else
$link = '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/too-many-or-too-few-reminders?from1ka=1" target="_blank">%s</a>';
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/too-many-or-too-few-reminders?from1ka=1" target="_blank"';
if (in_array(DIAG_REMINDER_ON_IF,$this->diagnostic_note)) {
echo '<span class="red">';
printf($link,$lang['srv_diagnostic_neustreza']);
echo '</span>';
} else {
echo '<span class="green">';
printf($link,$lang['srv_diagnostic_ustreza']);
echo '</span>';
}
echo '</td>';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
}
else {
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_3_element_2'].'</td>';
echo '<td>';
if($lang['id'] == '1')
$link = '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/prevec-ali-premalo-opomnikov?from1ka=1" target="_blank">%s</a>';
else
$link = '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/too-many-or-too-few-reminders?from1ka=1" target="_blank">%s</a>';
if (in_array(DIAG_REMINDER_ON_MGRID,$this->diagnostic_note)) {
echo '<span class="red">';
printf($link,$lang['srv_diagnostic_neustreza']);
echo '</span>';
} else {
echo '<span class="green">';
printf($link,$lang['srv_diagnostic_ustreza']);
echo '</span>';
}
echo '</td>';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
}
else {
$color_status = 'ok';
$msg_status = $lang['srv_diagnostic_ustreza'];
}
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
# predolga naketa - priporočilo
if (in_array(DIAG_TIME_SOFT_LIMIT,$this->diagnostic_note)) {
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_2_element_2'].'</td>';
echo '<td>';
echo '<span class="red">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kako-dolga-naj-bo-moja-anketa?from1ka=1" target="_blank">';
else
echo '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/how-long-should-my-survey-be?from1ka=1" target="_blank">';
if($lang['id'] == '1')
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kako-dolga-naj-bo-moja-anketa?from1ka=1" target="_blank"';
else
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/how-long-should-my-survey-be?from1ka=1" target="_blank"';
echo $lang['srv_diagnostic_neustreza'];
echo '</a>';
echo '</span>';
echo '</td>';
$color_status = 'rec';
$msg_status = $lang['srv_diagnostic_rec'];
echo '<td class="center"><div class="status_wrapper"><div class="status '.$color_status.'">'.$msg_status.'</div></div></td>';
echo '<td class="center"><a class="noline faicon open_icon" '.$link_status.'></a></td>';
echo '</tr>';
}
echo '</table>';
// LASTNOSTI ANKETE
echo '<h2>'.$lang['srv_testiranje_diagnostika_lastnosti'].'</h2>';
echo '<div class="lastnosti_wrapper">';
echo '<div class="lastnosti_left">';
echo '<table class="srv_diagnostic_results">';
echo '<tr>';
echo '<th>'.$lang['srv_diagnostika_table_title4'].'</th>';
echo '<th>'.$lang['srv_diagnostika_table_title'].'</th>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_5'].'</td>';
echo '<td>';
echo $time.'&nbsp&nbsp';
if($lang['id'] == '1')
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kako-dolga-naj-bo-moja-anketa?from1ka=1" target="_blank"';
else
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/how-long-should-my-survey-be?from1ka=1" target="_blank"';
echo '<a class="noline faicon open_icon" '.$link_status.'></a>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_9'].'</td>';
echo '<td>'.(int)SurveyInfo::getSurveyGroupCount().'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_5'].'</td>';
echo '<td>'.(int)$this->cnt_spremenljivka.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_5a'].'</td>';
echo '<td>'.(int)$this->cnt_hidden.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_8'].'</td>';
echo '<td>'.(int)SurveyInfo::getSurveyVariableCount().'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_2'].'</td>';
echo '<td>'.(int)$this->cnt_conditions.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_3'].'</td>';
echo '<td>'.(int)$this->cnt_blocks.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_4'].'</td>';
echo '<td>'.(int)$this->globina.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_4'].'</td>';
echo '<td>';
echo $kompleksnost.'&nbsp&nbsp';
if($lang['id'] == '1')
$link_status = 'href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kaj-pomeni-kompleksnost-ankete?from1ka=1" target="_blank"';
else
$link_status = 'href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/what-does-survey-complexity-mean?from1ka=1" target="_blank"';
echo '<a class="noline faicon open_icon" '.$link_status.'></a>';
echo '</a>';
echo '</tr>';
echo '</table>';
echo '</div>';
echo '</div>';
echo '<div class="lastnosti_right">';
# Trajanje - linki
echo '<div id="srv_diagnostic_results_right">';
echo '<table class="srv_diagnostic_results">';
echo '<tr>';
echo '<th>'.$lang['srv_info_duration'].'</th>';
echo '<th></th>';
echo '<th></th>';
echo '<th class="center">'.$lang['srv_diagnostika_table_title2'].'</th>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_testiranje_predvidenicas'].'</td>';
echo '<td>'.$skupni_cas.'</td>';
echo '<td><a href="index.php?anketa=' . $this->sid . '&amp;a='.A_TESTIRANJE.'&amp;m=predvidenicas" title="'.$lang['srv_testiranje_predvidenicas'].'">'.$lang['details'].'</a></td>';
echo '<td class="center"><a class="noline faicon open_icon" href="index.php?anketa=' . $this->sid . '&amp;a='.A_TESTIRANJE.'&amp;m=predvidenicas" title="'.$lang['srv_testiranje_predvidenicas'].'"></a></td>';
echo '</tr>';
$sas = new SurveyAdminSettings();
$dejanski_cas = ($sas->testiranje_cas(1) == null) ? '-' : $sas->testiranje_cas(1);
echo '<tr>';
echo '<td>'.$lang['srv_testiranje_cas'].'</td>';
echo '<td>'.$dejanski_cas.'</td>';
echo '<td><a href="index.php?anketa=' . $this->sid . '&amp;a='.A_TESTIRANJE.'&amp;m='.M_TESTIRANJE_CAS.'" title="'.$lang['srv_testiranje_cas'].'">'.$lang['details'].'</a></td>';
echo '</tr>';
echo '</table>';
echo '</div>';
echo '<br /><br />';
echo '<div id="srv_diagnostic_results_right">';
echo '<table class="srv_diagnostic_results">';
echo '<tr>';
echo '<th>'.$lang['srv_diagnostika_table_title4'].'</th>';
echo '<th colspan="2">'.$lang['srv_diagnostika_table_title'].'</th>';
echo '</tr>';
/*echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_0'].'</td>';
echo '<td colspan="2">'.$skupni_cas.'</td>';
echo '</tr>';*/
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_5'].'</td>';
echo '<td colspan="2">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kako-dolga-naj-bo-moja-anketa?from1ka=1" target="_blank">';
else
echo '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/how-long-should-my-survey-be?from1ka=1" target="_blank">';
echo $time;
echo '</a>';
# echo Help::display('srv_diag_time').'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_9'].'</td>';
echo '<td colspan="2">'.(int)SurveyInfo::getSurveyGroupCount().'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_5'].'</td>';
echo '<td colspan="2">'.(int)$this->cnt_spremenljivka.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_5a'].'</td>';
echo '<td colspan="2">'.(int)$this->cnt_hidden.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_8'].'</td>';
echo '<td colspan="2">'.(int)SurveyInfo::getSurveyVariableCount().'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_2'].'</td>';
echo '<td colspan="2">'.(int)$this->cnt_conditions.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_3'].'</td>';
echo '<td colspan="2">'.(int)$this->cnt_blocks.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_4_element_4'].'</td>';
echo '<td colspan="2">'.(int)$this->globina.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$lang['srv_diagnostic_1_element_4'].'</td>';
echo '<td colspan="2">';
if($lang['id'] == '1')
echo '<a href="https://www.1ka.si/d/sl/spletne-ankete/osnovna-priporocila/kaj-pomeni-kompleksnost-ankete?from1ka=1" target="_blank">';
else
echo '<a href="https://www.1ka.si/d/en/web-surveys/basic-recommendations/what-does-survey-complexity-mean?from1ka=1" target="_blank">';
echo $kompleksnost;
echo '</a>';
#echo Help::display('srv_diag_complexity').'</td>';
echo '<td class="center"><a class="noline faicon open_icon" href="index.php?anketa=' . $this->sid . '&amp;a='.A_TESTIRANJE.'&amp;m='.M_TESTIRANJE_CAS.'" title="'.$lang['srv_testiranje_cas'].'"></a></td>';
echo '</tr>';
echo '</table>';
echo '</div>';
echo '<br /><br />';
echo '</div>';
// KOMENATRJI
# nerazrešeni komentarji uporabnikov $commentsUser,$commentsUserFinished
$commentsUserUnresolved = $commentsUser - $commentsUserFinished;
if (( (int)$commentsAll
@ -598,7 +554,8 @@ class SurveyDiagnostics
+(int)$commentsUser
+(int)$commentsUserFinished
) > 0 ) {
echo '<div id="srv_diagnostic_results_right">';
echo '<h2>'.$lang['srv_diagnostic_4_element_0'].'</h2>';
echo '<table class="srv_diagnostic_results">';
echo '<tr>';
echo '<th>'.$lang['srv_diagnostic_4_element_0'].'</th>';
@ -626,11 +583,8 @@ class SurveyDiagnostics
echo '<td>'.(int)$commentsUser.'</td>';
echo '</tr>';
echo '</table>';
echo '</div>';
}
echo '<br /><br />';
echo '</div>'; # id="srv_diagnostic"
}

View File

@ -68,7 +68,7 @@ class VariableView {
echo '<td>'.$spremenljivka['variable'].'</td>';
echo '<td class="nowrap">'.$legenda['izrazanje'].'</td>';
echo '<td>'.$legenda['skala'].'</td>';
echo '<td>'.$spremenljivka['naslov'].'</td>';
echo '<td>'.((strlen($spremenljivka['naslov']) > 100) ? substr($spremenljivka['naslov'], 0, 97).'...' : $spremenljivka['naslov']).'</td>';
echo '</tr>';
}
}

View File

@ -5454,7 +5454,7 @@ function removeUploadFromData(usr_id, spr_id, code){
function CopyToClipboard(copyText){
var temp_copy = $('<input>').val(copyText).appendTo('body').select()
document.execCommand('copy')
}
}
// Popup - opozorilo na vsa vprašanja
function popupAlertAll(alert_type){

View File

@ -3960,8 +3960,9 @@ $lang = array (
"srv_bruto_cas" => "Bruto &#269;as",
"srv_neto_cas" => "Neto &#269;as",
"srv_bruto_v_cas" => "Brez pogojev",
"srv_bruto_v_cas_long" => "Trajanje brez pogojev",
"srv_neto_v_cas" => "Dejansko trajanje",
"srv_bruto_t_cas" => "Trajanje z upo&#353;tevanjem vseh vpra&#353;anj (brez pogojev)",
"srv_bruto_t_cas" => "Trajanje z upoštevanjem vseh vprašanj (brez pogojev)",
"srv_neto_t_cas" => "Dejansko trajanje",
"srv_verjetnost_pojavitve" => "Verjetnost pojavitve",
"srv_vnosi_no_entry" => "Anketa trenutno &#353;e nima vnosov!<br/>",
@ -3998,10 +3999,14 @@ $lang = array (
"srv_vkljuci_preskocene" => "Prika&#382;i tudi &#269;ase za presko&#269;ene strani",
"srv_total_trajanje" => "Celoten čas trajanja ankete",
"srv_dejansko_trajanje" => "Predvideno dejansko trajanje ankete",
"srv_casi_po_straneh" => "&#268;asi po straneh",
"srv_casi_po_blokih" => "&#268;asi po blokih",
"srv_casi_po_vprasanjih_strani" => "&#268;asi po vpra&#353;anjih (Strani)",
"srv_casi_po_vprasanjih_bloki" => "&#268;asi po vpra&#353;anjih (Bloki)",
"srv_casi_po_straneh" => "Časi po straneh",
"srv_casi_po_straneh_stran" => "Stran",
"srv_casi_po_blokih" => "Časi po blokih",
"srv_casi_po_blokih_blok" => "Blok",
"srv_casi_po_vprasanjih_vprasanje" => "Vprašanje",
"srv_casi_po_vprasanjih_skupaj" => "Skupaj",
"srv_casi_po_vprasanjih_strani" => "Časi po vprašanjih (Strani)",
"srv_casi_po_vprasanjih_bloki" => "Časi po vprašanjih (Bloki)",
"srv_frekvencna_porazdelitev" => "Frekven&#269;na porazdelitev trajanja",
"srv_dejanski_casi" => "Dejanski &#269;asi trajanja (brez morebitnih testnih enot)",
"srv_testni_nagovor" => "Predvideno &#353;tevilo odgovorov po vpra&#353;anjih. V primeru ve&#269; kategorij se odgovori porazdeljujejo enakomerno. <br /><br />Za &#353;tevilske spremenljivke se generira slu&#269;ajna 4 mestna &#353;tevilka, v primeru besedila pa slu&#269;ajno 10 mestno besedilo.",
@ -5209,6 +5214,7 @@ $lang = array (
"reg_before_posting" => "Prosimo, prijavite se pred pisanjem.",
"srv_testiranje_review" => "Pregled",
"srv_testiranje_diagnostika" => "Diagnostika",
"srv_testiranje_diagnostika_lastnosti" => "Lastnosti ankete",
"srv_testiranje_diagnostika_base" => "Osnovna diagnostika",
"srv_testiranje_komentarji" => "Komentarji",
"srv_testiranje_komentarji_anketa" => "Komentarji na anketo",
@ -5287,9 +5293,8 @@ $lang = array (
"srv_diagnostic_5_element_2" => 'Preverjanje podvojenosti imen variabel',
"srv_diagnostic_5_element_3" => 'Preverjanje validacij na spremenljivkah',
"srv_diagnostic_ustreza" => 'OK',
"srv_diagnostic_neustreza1" => 'Odpravite napako',
"srv_diagnostic_neustreza2" => 'Priporočamo popravek',
"srv_diagnostic_neustreza" => 'Priporočamo razmislek',
"srv_diagnostic_neustreza" => 'Napaka',
"srv_diagnostic_rec" => 'Priporočilo',
"srv_diagnostic_time_1" => 'Zelo kratka anketa',
"srv_diagnostic_time_2" => 'Kratka anketa',
"srv_diagnostic_time_3" => 'Srednje dolga anketa',
@ -5490,9 +5495,14 @@ $lang = array (
"srv_user_custom_checkbox" => 'Izbira velikosti checkbox/radio gumbov',
"srv_online_edit" => 'Online urejanje teme',
"srv_offline_edit" => 'Offline urejanje teme',
"srv_diagnostika_testiranje" => 'Testiranje',
"srv_diagnostika_testiranje_notea" => 'Spodaj je povezava do ročnega testnega vnosa, kjer se podatki shranijo kot testni. V zavihku ',
"srv_diagnostika_testiranje_noteb" => '\'TESTIRANJE\' - \'Avtomatski vnosi\'',
"srv_diagnostika_testiranje_notec" => ' lahko testne podatke vnesete tudi avtomatsko.',
"srv_diagnostika_testiranje_copy" => 'Kopiraj',
"srv_diagnostika_table_title" => 'Status',
"srv_diagnostika_table_title1" => 'Napake',
"srv_diagnostika_table_title2" => 'Opozorila',
"srv_diagnostika_table_title1" => 'Kriterij',
"srv_diagnostika_table_title2" => 'Podrobnosti',
"srv_diagnostika_table_title3" => 'Priporočila',
"srv_diagnostika_table_title4" => 'Lastnost',
"srv_ttest" => 'T-test',
@ -6182,7 +6192,7 @@ $lang = array (
'srv_variableView_h_type' => 'Tip',
'srv_variableView_h_width' => 'Št. celih mest',
'srv_variableView_h_decimals' => 'Št. decimalk',
'srv_variableView_h_label' => 'Labela',
'srv_variableView_h_label' => 'Vprašanje',
'srv_variableView_h_measure' => 'Merska lestvica',
'srv_save_set_theme' => 'Izberi to temo za temo ankete',
'srv_lnk_back_to_data' => 'Nazaj',

View File

@ -3945,6 +3945,7 @@ $lang = array (
"srv_bruto_cas" => "Gross time",
"srv_neto_cas" => "Net time",
"srv_bruto_v_cas" => "Without conditions",
"srv_bruto_v_cas_long" => "Duration without conditions",
"srv_neto_v_cas" => "Actual duration",
"srv_bruto_t_cas" => "Duration considering all questions (without conditions)",
"srv_neto_t_cas" => "Actual duration",
@ -3984,9 +3985,13 @@ $lang = array (
"srv_total_trajanje" => "Total survey duration",
"srv_dejansko_trajanje" => "Estimated actual duration of survey",
"srv_casi_po_straneh" => "Times by pages",
"srv_casi_po_straneh_stran" => "Page",
"srv_casi_po_vprasanjih_vprasanje" => "Question",
"srv_casi_po_vprasanjih_skupaj" => "Total",
"srv_casi_po_blokih" => "Times by blocks",
"srv_casi_po_vprasanjih_strani" => "Times by questions (Pages)",
"srv_casi_po_vprasanjih_bloki" => "Times by questions (Blocks)",
"srv_casi_po_blokih_blok" => "Block",
"srv_frekvencna_porazdelitev" => "Frequency distribution",
"srv_dejanski_casi" => "Actual duration of survey",
"srv_testni_nagovor" => "Expected number of answers per question. Test data are distributed evenly for questions with several answer categories. <br /><br />A random 4-digit variable is generated for numeric questions and random text with 10 characters is generated for text questions.",
@ -5184,6 +5189,7 @@ $lang = array (
"reg_before_posting" => "Please login before posting.",
"srv_testiranje_review" => "View",
"srv_testiranje_diagnostika" => "Diagnostics",
"srv_testiranje_diagnostika_lastnosti" => "Survey properties",
"srv_testiranje_diagnostika_base" => "Base diagnostics",
"srv_testiranje_komentarji" => "Comments",
"srv_testiranje_vnosi" => "Test responses",
@ -5272,9 +5278,8 @@ $lang = array (
"srv_diagnostic_5_element_2" => 'Duplicate variable names',
"srv_diagnostic_5_element_3" => 'Error in question validations',
"srv_diagnostic_ustreza" => 'OK',
"srv_diagnostic_neustreza1" => 'Correct the error',
"srv_diagnostic_neustreza2" => 'We recommend correction',
"srv_diagnostic_neustreza" => 'Consideration recommended',
"srv_diagnostic_neustreza" => 'Error',
"srv_diagnostic_rec" => 'Reccomendation',
"srv_diagnostic_time_1" => 'Very short survey',
"srv_diagnostic_time_2" => 'Short survey',
"srv_diagnostic_time_3" => 'Medium long survey',
@ -5454,9 +5459,14 @@ $lang = array (
"srv_user_custom_checkbox" => 'Select checkbox/radio buttons:',
"srv_online_edit" => 'Online editing',
"srv_offline_edit" => 'Offline editing',
"srv_diagnostika_testiranje" => 'Test',
"srv_diagnostika_testiranje_notea" => 'Below is a link to the manual test entry where the data is saved as test data. In the ',
"srv_diagnostika_testiranje_noteb" => '\'TEST\' - \'Test responses\'',
"srv_diagnostika_testiranje_notec" => ' tab, you can also enter the test data automatically.',
"srv_diagnostika_testiranje_copy" => 'Copy',
"srv_diagnostika_table_title" => 'Status',
"srv_diagnostika_table_title1" => 'Errors',
"srv_diagnostika_table_title2" => 'Warnings',
"srv_diagnostika_table_title1" => 'Criteria',
"srv_diagnostika_table_title2" => 'Details',
"srv_diagnostika_table_title3" => 'Recommendations',
"srv_diagnostika_table_title4" => 'Survey properties',
"srv_ttest" => 'T-test',
@ -6080,7 +6090,7 @@ $lang = array (
'srv_variableView_h_type' => 'Type',
'srv_variableView_h_width' => 'Width',
'srv_variableView_h_decimals' => 'Decimals',
'srv_variableView_h_label' => 'Label',
'srv_variableView_h_label' => 'Question',
'srv_variableView_h_measure' => 'Scale',
'srv_save_set_theme' => 'Select this theme for current theme',
'srv_lnk_back_to_data' => 'Back to data',

File diff suppressed because it is too large Load Diff

View File

@ -29,3 +29,7 @@ $green: #00C437;
$light-green: #a8eea8;
$light-green2: #E3F6DE;
$status-red: #FFE3E3;
$status-green: #E3F6DE;
$status-blue: #EAF9FE;

View File

@ -14,6 +14,7 @@ body {
}
//font-weight
$light: 300;
$regular: 400;
$semi-bold: 600;
$extra-bold: 800;

View File

@ -660,7 +660,8 @@ span.faicon.dots_ver:before{
}
// Open (new tab)
span.faicon.open_icon::before{
span.faicon.open_icon::before,
a.faicon.open_icon::before{
content: "\f35d";
}
@ -673,3 +674,9 @@ span.faicon.table_icon::before{
span.faicon.list::before{
content: "\f03a";
}
//Link
span.faicon.link-chain::before{
content: "\f0c1";
}

View File

@ -3,8 +3,30 @@ p,span {
font-size: 16px;
margin-block-start: 0;
margin-block-end: 0;
//Razmiki med besedilom
&.bottom16 {
margin-bottom: 16px;
}
&.top16 {
margin-top: 16px;
}
&.top32 {
margin-top: 32px;
}
&.bottom8 {
margin-bottom: 8px;
}
&.top8 {
margin-top: 8px;
}
}
//Barve
.warning,
.red {
color: $red;
@ -18,16 +40,11 @@ p,span {
color: $very-dark-gray;
}
//Stili
.italic {
font-style: italic;
}
.as_link {
text-decoration: underline;
color: $blue;
cursor: pointer;
}
.bold {
font-weight: $extra-bold;
}
@ -44,6 +61,13 @@ p,span {
text-transform: uppercase;
}
//Ostalo
.as_link {
text-decoration: underline;
color: $blue;
cursor: pointer;
}
.pointer {
cursor: pointer;
}

View File

@ -135,6 +135,10 @@ div.button_holder {
&.inline {
align-items: flex-end;
&.center {
align-items: center;
}
button {
margin-left: 16px;
}

View File

@ -17,29 +17,6 @@ fieldset{
text-transform: uppercase;
}
//Razmiki med besedilom
p{
&.bottom16 {
margin-bottom: 16px;
}
&.top16 {
margin-top: 16px;
}
&.top32 {
margin-top: 32px;
}
&.bottom8 {
margin-bottom: 8px;
}
&.top8 {
margin-top: 8px;
}
}
//Wrapper za polja drug ob drugem horizontalno
.setting_horizontal_wrapper {
display: flex;

View File

@ -8,5 +8,5 @@
@import "missing_values";
@import "standardne_besede";
@import "podatki";
@import "testiranje_diagnostika";
@import "testiranje";

View File

@ -0,0 +1,128 @@
// DIAGNOSTIKA
div#srv_diagnostic {
h2 {
font-size: 24px;
margin-top: 32px;
margin-bottom: 16px;
font-weight: $light;
&:first-of-type {
margin-top: 0;
}
}
table {
width: 100%;
td {
div.status_wrapper {
display: flex;
align-items: center;
justify-content: center;
div.status {
display: flex;
align-items: center;
justify-content: center;
height: 24px;
min-width: 88px;
border-radius: 2px;
font-size: 14px;
&.notok {
background-color: $status-red;
}
&.ok {
background-color: $status-green;
}
&.rec {
background-color: $status-blue;
}
a {
color: inherit;
text-decoration: none;
}
}
}
}
}
div.lastnosti_wrapper {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 32px;
div.lastnosti_left,
div.lastnosti_right {
width: 50%;
}
}
}
//OCENJEVANJE TRAJANJA, DEJANSKI ČASI
div.subpage_predvidenicas,
div.subpage_cas {
table {
width: 100%;
white-space: nowrap;
td.graph_cell {
width: 100%;
div.graph_cell {
display:flex;
flex-direction: row;
}
}
td.time {
padding-right: 0;
}
}
div.graph_full {
background-color: $blue;
height: 24px;
text-align: right;
}
div.graph_empty {
background-color: $gray;
height: 24px;
}
div.tabela_trajanje_legenda {
display: flex;
flex-direction: row;
justify-content: start;
align-items: center;
margin-top: 16px;
span.legend {
font-size: 14px;
}
div.legend {
width: 14px;
height: 14px;
margin-right: 8px;
border-radius: 2px;
}
span.legend {
margin-right: 32px;
}
}
}

View File

@ -1,12 +0,0 @@
div.srv_diagnostic {
h2 {
font-size: 24px;
margin-top: 32px;
margin-bottom: 16x;
&:first-of-type {
margin-top: 0;
}
}
}