From e418e22435bef5a91d451f06301efcbf7151f573 Mon Sep 17 00:00:00 2001 From: Armanveer Gill Date: Thu, 16 Jan 2025 21:32:13 -0500 Subject: [PATCH] Improve Responsive UI for admin pages --- admin/index.php | 4 +++- committee_main.php | 1 + common.inc.php | 6 +++--- config/index.php | 4 +++- images/32/help_science_ation.png | Bin 0 -> 952 bytes theme/new_default/sfiab.css | 36 ++++++++++++++++++++++++++----- user_personal.php | 2 +- 7 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 images/32/help_science_ation.png diff --git a/admin/index.php b/admin/index.php index aeaa6441..2c60abe7 100644 --- a/admin/index.php +++ b/admin/index.php @@ -65,14 +65,16 @@ echo theme_icon("registration_fee_items_management")."
".i18n("Registration Fee Items Management")."
(".i18n("disabled").")"; echo ""; echo " \n"; + echo " "; echo " ".theme_icon("print/export_reports")."
".i18n("Print / Export Reports")."
"; echo " ".theme_icon("print_awards_ceremony_scripts")."
".i18n("Print Award Ceremony Scripts")."
"; echo " ".theme_icon("report_management")."
".i18n("Report Management")."
"; echo " ".theme_icon("translations_management")."
".i18n("Translations Management")."
"; - echo " "; + echo ""; echo " \n"; + echo " "; echo "\n"; echo " \n"; diff --git a/committee_main.php b/committee_main.php index 4fa38ee9..820a101c 100644 --- a/committee_main.php +++ b/committee_main.php @@ -47,6 +47,7 @@ echo " ".theme_icon("print/export_reports")."
".i18n("My Reports (View/Print/Edit)")."
"; } echo " \n"; + echo " \n"; echo " ".theme_icon("edit_profile")."
".i18n("Edit My Profile")."
"; echo " ".theme_icon("change_password")."
".i18n("Change My Password")."
"; diff --git a/common.inc.php b/common.inc.php index 393c3567..764e4bb6 100644 --- a/common.inc.php +++ b/common.inc.php @@ -208,7 +208,7 @@ session_start(); //detect the browser first, so we know what icons to use - we store this in the config array as well //even though its not configurable by the fair -if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE")) +if(stristr(get_value_from_array($_SERVER, 'HTTP_USER_AGENT', ""),"MSIE")) $config['icon_extension']="gif"; else $config['icon_extension']="png"; @@ -375,7 +375,7 @@ function happy($str,$type="normal") function display_messages() { /* Dump any messages in the queue */ - if(is_array($_SESSION['messages'])) { + if(is_array(get_value_from_array($_SESSION, 'messages'))) { foreach($_SESSION['messages'] as $m) echo $m; } $_SESSION['messages'] = array(); @@ -630,7 +630,7 @@ if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config" || substr(get $fname=substr($_SERVER['REDIRECT_SCRIPT_URL'],strlen($config['SFIABDIRECTORY'])+1); else $fname=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])+1); - echo ""; + echo ""; } ""; echo ""; diff --git a/config/index.php b/config/index.php index 7b1e93c9..5475615b 100644 --- a/config/index.php +++ b/config/index.php @@ -42,12 +42,14 @@ echo " ".theme_icon("project_age_categories")."
".i18n("Project Age Categories")."
"; echo " ".theme_icon("project_divisions")."
".i18n("Project Divisions")."
"; echo " "; + echo "
"; echo " "; echo " ".theme_icon("cwsf_project_divisions")."
".i18n("CWSF Project Divisions")."
"; echo " ".theme_icon("project_sub_divisions")."
".i18n("Project Sub-Divisions")."
"; echo " ".theme_icon("page_texts")."
".i18n("Page Texts")."
"; echo " ".theme_icon("exhibitor_signature_page")."
".i18n("Exhibitor $participationform")."
"; echo " \n"; + echo "
"; echo " "; echo " ".theme_icon("judge_registration_questions")."
".i18n("Judge Registration Questions")."
"; echo " ".theme_icon("project_safety_questions")."
".i18n("Project Safety Questions")."
"; @@ -71,7 +73,7 @@ echo " ".theme_icon("rollover_fiscal_year")."
".i18n("Rollover Fiscal Year")."
"; echo " ".theme_icon("backup_restore")."
".i18n("Database Backup/Restore")."
"; echo " \n"; - echo " \n"; + echo " "; echo "\n"; diff --git a/images/32/help_science_ation.png b/images/32/help_science_ation.png new file mode 100644 index 0000000000000000000000000000000000000000..77dda96c10b911fc08d920378debcafb44cde9d7 GIT binary patch literal 952 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+ueoXe|!I#{XiajiKnkC`%6XvQ2{*}`3DDp z@^d_0978;gAHC|I5fduH_96aM%BSTsxA^8}I-Hz;Ys)Uf*a&kjR@FkmXzfY8AtHBn z7b;HSnkkWWJ!lEXBJJ`^X_tF%a0DqDsw`c)RCKb(M3GZl&ibsm?0K@(P=9@XoLXSv z#m`~if8YE2uKc~__n3JlCON0_Cb}MdRWF*c;k2Xvt1ZH;-D+odDgUt!ul=-aYRi#u z6W#Ui=gXQ{ze@gFk#O;SUUI+Q+$h7xQwsUb<945&vFO3P^*k>x>1nTyoo-(9c3*<$ zy=%S8%%#5u7-V_~XI#wek2xY|sH$<={mrh5^P3WEZe?yxyg#%2@^`x}yl>3)G%B~> z`;s0j7_*7rw6o_<`?~J@j~NRR6r}hggkrulK0X({Rm8ZNt7(t! zR;KE^0&}iP^z!e1G3mKd{(de$H=k?Mo1`=OkB911>Nb|V=ncD>8Dt=2+}x#gFLHBS zZ(VO)v8rOh^_Y-D>#Y)Q>Khi{Y;x0AVT~$H^jmrEp(vq9PJLbwmdDL1n$jU3Ze z8WCSw8Fz0zaUx^m?FF0jxVzl4qoa2HnzcvL^y;M9&!(DWTwd)jomTVgPnz#msjs)H zPHw5WvNq>g0`J|W_ZJ>HY?Qj}-{DXD=WkP&uV-fZc)fOWThex5(p4>SjVMV;EJ?LW zE=mPb3`Pb&@)+6D$z1_qobJf5Lw$jwj5OsmALp>J=mX!bi literal 0 HcmV?d00001 diff --git a/theme/new_default/sfiab.css b/theme/new_default/sfiab.css index 0dff4d0a..05ce5f64 100644 --- a/theme/new_default/sfiab.css +++ b/theme/new_default/sfiab.css @@ -62,17 +62,19 @@ table tr.odd { border: 2px solid Silver; padding: 5px; font-size: 1.0em; + box-shadow: 2px 2px 2px black; } #main { - margin-right: 10px; + background:#f1eeff; padding: 3px; border: 2px solid Silver; min-height: 600px; width: 99%; + } #mainwhere { @@ -161,6 +163,9 @@ a { color: #5C6F90; } + + + a:hover { text-decoration: underline; } @@ -264,13 +269,10 @@ tr.externalaward { color: #0000AA; } -.adminconfigtable { - border-collapse: collapse; -} .adminconfigtable td { text-align: center; - padding: 5px; + /* padding: 5px; */ width: 128px; color: #999999; } @@ -501,8 +503,32 @@ div.ui-tabs ul.ui-tabs-nav { display: block; } + .adminconfigtable tr{ + display: grid; + grid-template-columns: 1fr 1fr 1fr; + } } +.thematic-break{ + display: none; +} + +@media screen and (max-width: 410px){ + + .adminconfigtable{ + margin: auto; + } + + + .adminconfigtable tr{ + display: grid; + grid-template-columns: 1fr 1fr; + } + adminconfigtable + .thematic-break{ + display: block; + } +} \ No newline at end of file diff --git a/user_personal.php b/user_personal.php index 7475f969..cba570b2 100644 --- a/user_personal.php +++ b/user_personal.php @@ -352,7 +352,7 @@ echo ""; if(in_array('committee', $u['types'])) { echo ""; - echo "\n"; + echo "\n"; echo "