From 19985dbb8c0aa66dc4bf7905abc1148de909097d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 11 Jan 2022 12:35:47 +0100 Subject: prvi-commit --- admin/survey/classes/class.SurveyVariableView.php | 85 +++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 admin/survey/classes/class.SurveyVariableView.php (limited to 'admin/survey/classes/class.SurveyVariableView.php') diff --git a/admin/survey/classes/class.SurveyVariableView.php b/admin/survey/classes/class.SurveyVariableView.php new file mode 100644 index 0000000..4dc1557 --- /dev/null +++ b/admin/survey/classes/class.SurveyVariableView.php @@ -0,0 +1,85 @@ +init($sid); + + self::$headFileName = self::$SDF->getHeaderFileName(); + self::$dataFileName = self::$SDF->getDataFileName(); + self::$dataFileStatus = self::$SDF->getStatus(); + self::$_HEADERS = self::$SDF->getHeader(); + + } + + public static function displayVariables() { + global $lang; + + echo ''; + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + + echo ''; + + foreach (self::$_HEADERS AS $skey => $spremenljivka) { + + if (is_numeric($spremenljivka['tip']) && $spremenljivka['tip'] != '' && $spremenljivka['tip'] != 'm' && $spremenljivka['tip'] != 'sm') { + + $spss = $spremenljivka['grids'][0]['variables'][0]['spss']; + $spss_type = substr($spss,0,1); + $spss_length = explode('.',substr($spss,1)); + $spr_id = explode('_',$skey); + $spr_id = $spr_id[0]; + $legenda = Cache::spremenljivkaLegenda($spr_id); + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + } + + echo ''; + echo '
'.$lang['srv_variableView_h_'].''.$lang['srv_variableView_h_type'].''.$lang['srv_variableView_h_width'].''.$lang['srv_variableView_h_decimals'].''.$lang['srv_variableView_h_label'].''.$lang['srv_variableView_h_measure'].'
'.$spremenljivka['variable'].''.$legenda['izrazanje'].''.(int)$spss_length['0'].''.(int)$spss_length['1'].''.$spremenljivka['naslov'].''.$legenda['skala'].'
'; + } +} \ No newline at end of file -- cgit v1.2.3