';
//$this->edit_vrednost_missing();
//echo '
';
//echo '';
}
if ( in_array($row['tip'], array(22)) ) {
$this->edit_compute();
}
if ( in_array($row['tip'], array(9)) ) {
$this->edit_name_generator();
}
}
}
function edit_sliders_settings(){
global $lang;
global $admin_type;
global $default_grid_values; //privzete default vmesne opisne labele
$row = Cache::srv_spremenljivka($this->spremenljivka);
$spremenljivkaParams = new enkaParameters($row['params']);
$slider_handle = ($spremenljivkaParams->get('slider_handle') ? $spremenljivkaParams->get('slider_handle') : 0); //za checkbox
$slider_window_number = ($spremenljivkaParams->get('slider_window_number') ? $spremenljivkaParams->get('slider_window_number') : 0); //za checkbox
$slider_MinMaxNumLabelNew = ($spremenljivkaParams->get('slider_MinMaxNumLabelNew') ? $spremenljivkaParams->get('slider_MinMaxNumLabelNew') : 0);
$slider_MinMaxLabel = ($spremenljivkaParams->get('slider_MinMaxLabel') ? $spremenljivkaParams->get('slider_MinMaxLabel') : 0);
$slider_VmesneNumLabel = ($spremenljivkaParams->get('slider_VmesneNumLabel') ? $spremenljivkaParams->get('slider_VmesneNumLabel') : 0);
$slider_VmesneDescrLabel = ($spremenljivkaParams->get('slider_VmesneDescrLabel') ? $spremenljivkaParams->get('slider_VmesneDescrLabel') : 0);
$slider_VmesneCrtice = ($spremenljivkaParams->get('slider_VmesneCrtice') ? $spremenljivkaParams->get('slider_VmesneCrtice') : 0);
$slider_handle_step = ($spremenljivkaParams->get('slider_handle_step') ? $spremenljivkaParams->get('slider_handle_step') : 1);
$slider_MinLabel= ($spremenljivkaParams->get('slider_MinLabel') ? $spremenljivkaParams->get('slider_MinLabel') : "Minimum");
$slider_MaxLabel= ($spremenljivkaParams->get('slider_MaxLabel') ? $spremenljivkaParams->get('slider_MaxLabel') : "Maximum");
$slider_MinNumLabel = ($spremenljivkaParams->get('slider_MinNumLabel') ? $spremenljivkaParams->get('slider_MinNumLabel') : 0);
$slider_MaxNumLabel = ($spremenljivkaParams->get('slider_MaxNumLabel') ? $spremenljivkaParams->get('slider_MaxNumLabel') : 100);
$slider_MinNumLabelTemp = ($spremenljivkaParams->get('slider_MinNumLabelTemp') ? $spremenljivkaParams->get('slider_MinNumLabelTemp') : 0);
$slider_MaxNumLabelTemp = ($spremenljivkaParams->get('slider_MaxNumLabelTemp') ? $spremenljivkaParams->get('slider_MaxNumLabelTemp') : 100);
$slider_NumofDescrLabels = ($spremenljivkaParams->get('slider_NumofDescrLabels') ? $spremenljivkaParams->get('slider_NumofDescrLabels') : 5);
$slider_DescriptiveLabel_defaults = ($spremenljivkaParams->get('slider_DescriptiveLabel_defaults') ? $spremenljivkaParams->get('slider_DescriptiveLabel_defaults') : 0);
$slider_StevLabelPodrocij = ($spremenljivkaParams->get('slider_StevLabelPodrocij') ? $spremenljivkaParams->get('slider_StevLabelPodrocij') : 3);
$slider_nakazi_odgovore = ($spremenljivkaParams->get('slider_nakazi_odgovore') ? $spremenljivkaParams->get('slider_nakazi_odgovore') : 0); //za checkbox
$slider_labele_podrocij = ($spremenljivkaParams->get('slider_labele_podrocij') ? $spremenljivkaParams->get('slider_labele_podrocij') : 0); //za checkbox
$displayDescriptiveLabels = ($slider_VmesneDescrLabel == 0) ? ' style="display:none;"' : '';
$displayStevLabelPodrocij = ($slider_labele_podrocij == 0) ? ' style="display:none;"' : '';
$disable_slider_handle_hidden = ($slider_handle == 0) ? 'disabled' : '';
$disable_slider_MinMaxNumLabelNew_hidden = ($slider_MinMaxNumLabelNew == 0) ? 'disabled' : '';
$disable_slider_VmesneCrtice_hidden = ($slider_VmesneCrtice == 1) ? 'disabled' : '';
//$disable_slider_VmesneCrtice = ($slider_VmesneCrtice == 0) ? 'disabled' : '';
$disable_slider_VmesneDescrLabel_hidden = ($slider_VmesneDescrLabel == 1) ? 'disabled' : '';
$disable_slider_VmesneNumLabel_hidden = ($slider_VmesneNumLabel == 1) ? 'disabled' : '';
$disable_slider_MinMaxLabel_hidden = ($slider_MinMaxLabel == 1) ? 'disabled' : '';
$disable_slider_window_number_hidden = ($slider_window_number == 0) ? 'disabled' : '';
$disable_slider_handle_step = ($slider_VmesneDescrLabel == 1) ? 'disabled' : '';
$disable_slider_nakazi_odgovore_hidden = ($slider_nakazi_odgovore == 1) ? 'disabled' : '';
$disable_slider_labele_podrocij_hidden = ($slider_labele_podrocij == 1) ? 'disabled' : '';
//za pravilno osivitev koraka sliderja
if ($disable_slider_handle_step == 'disabled'){
$slider_handle_step_opacity = 0.5;
}else{
$slider_handle_step_opacity = 1;
}
//za pravilno osivitev nastavitve za vmesne crtice
if ($disable_slider_nakazi_odgovore_hidden == 'disabled'){
$slider_VmesneCrtice_opacity = 0.5;
$disable_slider_VmesneCrtice = 'disabled';
}else{
$slider_VmesneCrtice_opacity = 1;
$disable_slider_VmesneCrtice = '';
}
// Polje size moramo imeti - drugace se pobrise vse iz srv_vrednost in se ne shranjuje vec
echo '
';
// Nakazi mozne odgovore
if ($admin_type == 0){
echo '
';
}
// Korak drsnika
$viewMinMaxNumLabels = ($slider_VmesneDescrLabel == 1) ? '; display:none;' : '';
echo '
';
// Min in max vrednosti
$viewMinMaxNumLabels = ($slider_VmesneDescrLabel == 1) ? ' style="display:none;"' : '';
echo '
';
// prikaz dropdowna za default vrednosti opisnih vmesnih label
echo '
';
// Labele podrocij - prikaz dropdowna z moznimi stevilkami podrocij
echo '
';
}
function edit_hot_spot_settings(){
global $lang;
global $admin_type;
global $default_grid_values; //privzete default vmesne opisne labele
SurveySetting::getInstance()->Init($this->anketa);
SurveyInfo::getInstance()->SurveyInit($this->anketa);
$row = Cache::srv_spremenljivka($this->spremenljivka);
$spremenljivkaParams = new enkaParameters($row['params']);
$hotspot_image = ($spremenljivkaParams->get('hotspot_image') ? $spremenljivkaParams->get('hotspot_image') : "");
$hotspot_region_visibility_option = ($spremenljivkaParams->get('hotspot_region_visibility_option') ? $spremenljivkaParams->get('hotspot_region_visibility_option') : 0); //za checkbox
$hotspot_region_visibility = ($spremenljivkaParams->get('hotspot_region_visibility') ? $spremenljivkaParams->get('hotspot_region_visibility') : 1); //za radio "vedno" in "ob mouseover"
$hotspot_tooltips_option = ($spremenljivkaParams->get('hotspot_tooltips_option') ? $spremenljivkaParams->get('hotspot_tooltips_option') : 0);
$hotspot_region_color = ($spremenljivkaParams->get('hotspot_region_color') ? $spremenljivkaParams->get('hotspot_region_color') : "");
$hotspot_visibility_color = ($spremenljivkaParams->get('hotspot_visibility_color') ? $spremenljivkaParams->get('hotspot_visibility_color') : "");
$disable_hotspot_region_visibility_option_hidden = ($hotspot_region_visibility_option == 1) ? 'disabled' : '';
$spr_id = $row['id'];
//prikazovanje/skrivanje nastavitev za osvetljevanje
if($hotspot_region_visibility_option){
$hotspot_visibility_display = 'style=""';
}
else{
$hotspot_visibility_display = 'style="display:none"';
}
//prikazovanje/skrivanje nastavitev za osvetljevanje - konec
//preveri, ce je kaksno obmocje shranjeno v bazi
$sqlR = sisplet_query("SELECT region_index, vre_id, region_name FROM srv_hotspot_regions WHERE spr_id = $spr_id");
if($row['tip'] == 1 || $row['tip'] == 2){
$enota_orientation = $row['orientation'];
}
else if($row['tip'] == 6){
$enota_orientation = $row['enota'];
}
else if($row['tip'] == 17){
$enota_orientation = $row['design'];
}
?>
$display_regions_menu = ( ($row['tip'] == 6 && $row['enota'] == 10) || ($row['tip'] == 1 && $row['orientation'] == 10) || ($row['tip'] == 17 && $row['design'] == 3) ) ? '' : 'style="display:none;"';
if($row['tip'] == 6 || $row['tip'] == 17){ //ce je radio grid ali razvrscanje, pokazi naslov kot "Obmocja"
echo '