From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- .../Controllers/Vprasanja/RankingController.php | 43 +++++++++++++--------- 1 file changed, 25 insertions(+), 18 deletions(-) (limited to 'main/survey/app/Controllers/Vprasanja/RankingController.php') diff --git a/main/survey/app/Controllers/Vprasanja/RankingController.php b/main/survey/app/Controllers/Vprasanja/RankingController.php index 014bb37..b91bd6f 100644 --- a/main/survey/app/Controllers/Vprasanja/RankingController.php +++ b/main/survey/app/Controllers/Vprasanja/RankingController.php @@ -94,7 +94,7 @@ class RankingController extends Controller // prestavljanje za SAZU - n>k else if ($row['design'] == 0 && get('mobile') == 0 && SurveyInfo::getInstance()->checkSurveyModule('sazu') - && in_array($spremenljivka, array('11092569','11092563')) + && in_array($spremenljivka, array('11092569','11092563','763259','763254')) ) $this->displayPrestavljanjeSAZU($spremenljivka, $preview_spremenljivka, $quick_view, $ajax); @@ -196,7 +196,8 @@ class RankingController extends Controller // Datapiping $row2['naslov'] = Helper::dataPiping($row2['naslov']); - $value = $row2['naslov']; + $value = strip_tags($row2['naslov'], '


'); + $vre_id = $row2['id']; array_push($vre_idCache1, $vre_id); $length = strlen($value); //dolzina teksta kategorije odgovora @@ -286,7 +287,8 @@ class RankingController extends Controller // Datapiping $row2['naslov'] = Helper::dataPiping($row2['naslov']); - $value = $row2['naslov']; + $value = strip_tags($row2['naslov'], '


'); + $vre_id = $row2['id']; array_push($vre_idCache2, $vre_id); $length = strlen($value); //dolzina teksta kategorije odgovora @@ -372,7 +374,7 @@ class RankingController extends Controller //izracun visine $num = mysqli_num_rows($sql1); - $size = $num * 37; + $size = $num * 40; //nastavimo $max (maximum prenesenih vrednosti) -> ce lahko nosimo vse vrednosti ($row['ranking_k'] == 0) je $max stevilo vseh vrednotsti if ($row['ranking_k'] == 0) @@ -394,7 +396,6 @@ class RankingController extends Controller echo " '; + /* echo ''; echo '' . $count . '/' . $max . ''; - echo 'arrow'; - echo ''; + //echo 'arrow'; + echo '

'; + echo ''; */ //izris desne strani echo ''; @@ -565,7 +571,7 @@ class RankingController extends Controller $srv_ranking_ranked_categories = SurveySetting::getInstance()->getSurveyMiscSetting('srvlang_srv_ranking_ranked_categories' . $_lang); if ($srv_ranking_ranked_categories == '') $srv_ranking_ranked_categories = self::$lang['srv_ranking_ranked_categories']; - echo '' . $srv_ranking_ranked_categories . ':'; + echo '' . $srv_ranking_ranked_categories . '(' . $count . '/' . $max . '):'; echo '
'; // ker na td ne primer position relative za nastavit position absolute na dropzone @@ -586,8 +592,8 @@ class RankingController extends Controller // Datapiping $row1['naslov'] = Helper::dataPiping($row1['naslov']); + $value = strip_tags($row1['naslov'], '


'); - $value = $row1['naslov']; $vre_id = $row1['id']; array_push($vre_idCacheD, $vre_id); $length = strlen($value); //dolzina teksta kategorije odgovora @@ -626,6 +632,7 @@ class RankingController extends Controller '; echo '
'; @@ -985,7 +992,7 @@ class RankingController extends Controller type="hidden" name="spremenljivka_' . $spremenljivka . '_vrednost_' . $row1['id'] . '" id="spremenljivka_' . $spremenljivka . '_ranking_cifre_' . $counter . '" - value="' . $row2['vrstni_red'] . '" + value="' . (isset($row2['vrstni_red']) ? $row2['vrstni_red'] : '') . '" > '; echo '
'; -- cgit v1.2.3