From b4a4fdd46c1d831d52fbdcb46bebc7d699c78d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nejc=20Kova=C4=8D?= Date: Tue, 16 Aug 2022 16:52:04 +0200 Subject: [PATCH] testiranje --> avtomatski vnosi: prelom strani styling --- admin/survey/SurveyAdminSettings.php | 19 +++++-- public/css/admin_new.css | 36 ++++++++++++++ .../admin_new/components/table/table.scss | 49 +++++++++++++++++++ 3 files changed, 99 insertions(+), 5 deletions(-) diff --git a/admin/survey/SurveyAdminSettings.php b/admin/survey/SurveyAdminSettings.php index f50f9f3a7..3a8e46320 100644 --- a/admin/survey/SurveyAdminSettings.php +++ b/admin/survey/SurveyAdminSettings.php @@ -8910,7 +8910,7 @@ class SurveyAdminSettings { $sql = sisplet_query("SELECT COUNT(*) AS count FROM srv_user WHERE ank_id='$this->anketa' AND (testdata='1' OR testdata='2')"); $row = mysqli_fetch_array($sql); $total_rows = $row['count']; - + echo '
'; echo '
'.$lang['srv_testiranje_vnosi'].''; @@ -8940,11 +8940,20 @@ class SurveyAdminSettings { echo ''.$lang['srv_delete_testdata'].' ('.$total_rows.')'; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo '
Labela Veljavni odgovori (Grafični prikaz)
'; + if ($total_rows > 0) { $prevpage = 0; - + $sql = sisplet_query("SELECT s.id, s.gru_id, s.tip, s.naslov, g.naslov AS pagename FROM srv_spremenljivka s, srv_grupa g WHERE s.gru_id=g.id AND s.visible='1' AND g.ank_id='$this->anketa' ORDER BY g.vrstni_red, s.vrstni_red"); while ($row = mysqli_fetch_array($sql)) { @@ -8957,9 +8966,9 @@ class SurveyAdminSettings { echo ''; echo '
'; } - - echo '
'.$row['pagename'].''; - echo ''; + + echo '
'.$row['pagename'].''; + echo '
'; $prevpage = $row['gru_id']; } diff --git a/public/css/admin_new.css b/public/css/admin_new.css index 8014f736c..114e2585f 100644 --- a/public/css/admin_new.css +++ b/public/css/admin_new.css @@ -10152,6 +10152,42 @@ div .table-horizontal-scroll-wrapper2 table { margin-bottom: 0; } +.page_num_fieldset { + padding-top: 0px; + padding-bottom: 0px; + margin: 12px 0px; +} + +.page_num { + margin-left: 39%; + color: #333333; +} + +.table_header { + width: 100%; + margin: 0px; + font-size: 16px; + font-weight: 600; +} +.table_header tr { + width: 100%; +} +.table_header tr td:first-of-type { + width: 40%; + padding-left: 48px; +} +.table_header tr td:last-of-type { + width: 60%; + padding-left: 25px; +} + +.avt_vnosi_table td:first-of-type { + width: 40%; +} +.avt_vnosi_table td:last-of-type { + width: 60%; +} + /* Placljive vsebine */ diff --git a/resources/sass/admin_new/components/table/table.scss b/resources/sass/admin_new/components/table/table.scss index 2053f77b0..5ba297128 100644 --- a/resources/sass/admin_new/components/table/table.scss +++ b/resources/sass/admin_new/components/table/table.scss @@ -103,3 +103,52 @@ div { } } } + + +//testiranje --> avtomatski vnosi + +.page_num_fieldset{ + padding-top: 0px; + padding-bottom: 0px; + + margin: 12px 0px; +} + +.page_num{ + margin-left: 39%; + color: #333333; +} + + + +.table_header{ + width: 100%; + margin: 0px; + + font-size: 16px; + font-weight: 600; + + tr{ + width: 100%; + + + td:first-of-type { + width: 40%; + padding-left: 48px; + } + td:last-of-type { + width: 60%; + padding-left: 25px; + } + } +} + +.avt_vnosi_table{ + td:first-of-type { + width: 40%; + } + td:last-of-type { + width: 60%; + } +} +