diff --git a/admin/survey/classes/class.SurveyDataSettingProfiles.php b/admin/survey/classes/class.SurveyDataSettingProfiles.php index d85f20ca8..a8886f16b 100644 --- a/admin/survey/classes/class.SurveyDataSettingProfiles.php +++ b/admin/survey/classes/class.SurveyDataSettingProfiles.php @@ -1037,6 +1037,9 @@ class SurveyDataSettingProfiles { case 'changeDataIconsSettings': self::changeDataIconsSettings(); break; + case 'changeDataFullscreen': + self::changeDataFullscreen(); + break; case 'changeUsabilityIconsSettings': self::changeUsabilityIconsSettings(); break; @@ -1253,6 +1256,19 @@ class SurveyDataSettingProfiles { session_commit(); } } + + static function changeDataFullscreen(){ + session_start(); + + if (isset($_POST['data_fullscreen'])){ + if($_POST['data_fullscreen'] == '1') { + $_SESSION['sid_'.self::$surveyId]['data_fullscreen'] = true; + } else { + $_SESSION['sid_'.self::$surveyId]['data_fullscreen'] = false; + } + session_commit(); + } + } static function changeUsabilityIconsSettings(){ session_start(); diff --git a/admin/survey/index.php b/admin/survey/index.php index 292f4df85..a252abbcf 100644 --- a/admin/survey/index.php +++ b/admin/survey/index.php @@ -186,7 +186,14 @@ // Class za jezik $langBodyClass = ($lang['id'] != "1") ? 'eng' : 'slo'; - echo ''."\n"; + // Class za fullscreen tabelo s podatki + session_start(); + $dataFullscreen = ''; + if($anketa > 0){ + $dataFullscreen = (isset($_SESSION['sid_'.$anketa]['data_fullscreen']) && $_SESSION['sid_'.$anketa]['data_fullscreen'] == true) ? 'data_fullscreen' : ''; + } + + echo ''."\n"; // Google analytics if($site_domain == 'www.1ka.si'){