From 7ec1d651cd372e70bd445755556d28288efa2038 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Thu, 20 Feb 2014 23:57:50 +0000 Subject: [PATCH] Streamlined response message, implement JQuery into templates by default. --- themes/accessible/template.php | 61 +++++++++++++++++- themes/classic/template.php | 66 +++++++++++++++++-- themes/default/template.php | 113 ++++++++++++++++++++++++++++++--- themes/enhanced/template.php | 113 +++++++++++++++++++-------------- themes/nature/template.php | 112 ++++++++++++++++++-------------- 5 files changed, 353 insertions(+), 112 deletions(-) diff --git a/themes/accessible/template.php b/themes/accessible/template.php index fe028aae71..4671dbf982 100644 --- a/themes/accessible/template.php +++ b/themes/accessible/template.php @@ -375,7 +375,42 @@ table tr:last-child td:last-child { /*list-style-image: url("images/img.gif");*/ } -/* end the menu css */ +/* end the menu css*/ + + #message_container { + z-index: 99999; + position: absolute; + left: 0px; + top: 0px; + right: 0px; + filter: alpha(opacity=0); + opacity: 0; + -moz-opacity:0; + -khtml-opacity: 0; + } + + #message_block { + margin: 0px auto; + width: 300px; + height: auto; + background-color: #000; + background-repeat: repeat-x; + background-image: url('/themes/accessible/images/background_black.png'); + background-position: top center; + padding: 10px; + -webkit-border-radius: 0px 0px 7px 7px; + -moz-border-radius: 0px 0px 7px 7px; + border-radius: 0px 0px 7px 7px; + text-align: center; + } + + #message_block .text { + font-family: arial, san-serif; + font-size: 10pt; + font-weight: bold; + color: #fff; + } + + + + + + - + + + 0) { + echo "
"; + echo "
"; + echo " ".$_SESSION['message'].""; + echo "
"; + echo "
"; + unset($_SESSION['message']); + } + ?>
diff --git a/themes/classic/template.php b/themes/classic/template.php index 87780d5095..29db2d0f2c 100644 --- a/themes/classic/template.php +++ b/themes/classic/template.php @@ -207,7 +207,7 @@ th:last-child th:first-child { border-bottom: 1px solid #999999; font-size: 11px; background-color: #990000; - color: #444444; + color: #444444; padding-right: 16px; padding-left: 6px; padding-top: 4px; @@ -282,7 +282,7 @@ table { table th { padding:4px 10px } - + table td { /*background:#fff;*/ /*padding:2px 10px 4px 10px*/ @@ -294,7 +294,7 @@ table tr.even td { border-bottom: 1px solid #999999; color: #444444; } - + table tr.odd td { border-bottom: 1px solid #999999; color: #000000; @@ -474,6 +474,41 @@ table tr:nth-last-child(-5) td:first-of-type { } /* end the menu css*/ + + #message_container { + z-index: 99999; + position: absolute; + left: 0px; + top: 0px; + right: 0px; + filter: alpha(opacity=0); + opacity: 0; + -moz-opacity:0; + -khtml-opacity: 0; + } + + #message_block { + margin: 0px auto; + width: 300px; + height: auto; + background-color: #000; + background-repeat: repeat-x; + background-image: url('/themes/classic/images/background_black.png'); + background-position: top center; + padding: 10px; + -webkit-border-radius: 0px 0px 7px 7px; + -moz-border-radius: 0px 0px 7px 7px; + border-radius: 0px 0px 7px 7px; + text-align: center; + } + + #message_block .text { + font-family: arial, san-serif; + font-size: 10pt; + font-weight: bold; + color: #fff; + } + + + + + + - + + + 0) { + echo "
"; + echo "
"; + echo " ".$_SESSION['message'].""; + echo "
"; + echo "
"; + unset($_SESSION['message']); + } + ?> +
diff --git a/themes/default/template.php b/themes/default/template.php index 35d08e2937..345cbf1db7 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -199,7 +199,7 @@ INPUT.txt { border-bottom: 1px solid #999999; font-size: 11px; background-color: #990000; - color: #444444; + color: #444444; padding-right: 16px; padding-left: 6px; padding-top: 4px; @@ -274,7 +274,7 @@ table { table th { padding:4px 10px } - + table td { /*background:#fff;*/ /*padding:2px 10px 4px 10px*/ @@ -286,7 +286,7 @@ table tr.even td { border-bottom: 1px solid #999999; color: #333333; } - + table tr.odd td { border-bottom: 1px solid #999999; color: #000000; @@ -535,6 +535,41 @@ table tr:nth-last-child(-5) td:first-of-type { text-decoration:none; } /* end the menu css*/ + + #message_container { + z-index: 99999; + position: absolute; + left: 0px; + top: 0px; + right: 0px; + filter: alpha(opacity=0); + opacity: 0; + -moz-opacity:0; + -khtml-opacity: 0; + } + + #message_block { + margin: 0px auto; + width: 300px; + height: auto; + background-color: #000; + background-repeat: repeat-x; + background-image: url('/themes/default/images/background_black.png'); + background-position: top center; + padding: 10px; + -webkit-border-radius: 0px 0px 7px 7px; + -moz-border-radius: 0px 0px 7px 7px; + border-radius: 0px 0px 7px 7px; + text-align: center; + } + + #message_block .text { + font-family: arial, san-serif; + font-size: 10pt; + font-weight: bold; + color: #fff; + } + + + + + + - + + + 0) { + echo "
"; + echo "
"; + echo " ".$_SESSION['message'].""; + echo "
"; + echo "
"; + unset($_SESSION['message']); + } + ?> + /themes/enhanced/images/background_black.png'); + background-position: top center; + padding: 10px; + -webkit-border-radius: 0px 0px 7px 7px; + -moz-border-radius: 0px 0px 7px 7px; + border-radius: 0px 0px 7px 7px; + text-align: center; + } + + #message_block .text { + font-family: arial, san-serif; + font-size: 10pt; + font-weight: bold; + color: #fff; + } + + + + + + - + + + 0) { + echo "
"; + echo "
"; + echo " ".$_SESSION['message'].""; + echo "
"; + echo "
"; + unset($_SESSION['message']); + } + ?> +
@@ -748,32 +791,6 @@ table tr:nth-last-child(-5) td:first-of-type {
- - 0) { - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
".$text['message-message']."
".$_SESSION['message']."
\n"; - echo "
\n"; - echo "
\n"; - unset($_SESSION['message']); - } - ?>

diff --git a/themes/nature/template.php b/themes/nature/template.php index 7a70eebe89..7c7f6f9e6d 100644 --- a/themes/nature/template.php +++ b/themes/nature/template.php @@ -218,7 +218,7 @@ INPUT.txt { border-bottom: 1px solid #999999; font-size: 11px; background-color: #990000; - color: #444444; + color: #444444; padding-right: 16px; padding-left: 6px; padding-top: 4px; @@ -294,7 +294,7 @@ table { table th { padding:4px 10px } - + table td { /*background:#fff;*/ /*padding:2px 10px 4px 10px*/ @@ -306,7 +306,7 @@ table tr.even td { border-bottom: 1px solid #999999; color: #333333; } - + table tr.odd td { border-bottom: 1px solid #999999; color: #000000; @@ -552,25 +552,25 @@ table tr:nth-last-child(-5) td:first-of-type { /* Set the position and dimensions of the background image. */ #page-background { - position:fixed; + position:fixed; top:0; left:0; width:100%; height:100%; } - /* Specify the position and layering for the content that needs to - appear in front of the background image. Must have a higher z-index - value than the background image. Also add some padding to compensate + /* Specify the position and layering for the content that needs to + appear in front of the background image. Must have a higher z-index + value than the background image. Also add some padding to compensate for removing the margin from the 'html' and 'body' tags. */ #page { - position:relative; + position:relative; z-index:1; padding:10px; } .vtable { - position:relative; + position:relative; z-index:1; padding:7px; color: 000; @@ -591,19 +591,38 @@ table tr:nth-last-child(-5) td:first-of-type { opacity: 0.9; } - .message { + #message_container { + z-index: 99999; + position: absolute; + left: 0px; + top: 0px; + right: 0px; + filter: alpha(opacity=0); + opacity: 0; + -moz-opacity:0; + -khtml-opacity: 0; + } + + #message_block { + margin: 0px auto; + width: 300px; + height: auto; + background-color: #000; background-repeat: repeat-x; - background-attachment: fixed; - padding: 20px; - opacity: 0.9; - filter:alpha(opacity=90); - -moz-opacity:0.9; - -khtml-opacity: 0.9; - opacity: 0.9; - -webkit-border-radius: 7px 7px 7px 7px; - -moz-border-radius: 7px 7px 7px 7px; - border-radius: 7px 7px 7px 7px; - text-align: left; + background-image: url('/themes/nature/images/background_black.png'); + background-position: top center; + padding: 10px; + -webkit-border-radius: 0px 0px 7px 7px; + -moz-border-radius: 0px 0px 7px 7px; + border-radius: 0px 0px 7px 7px; + text-align: center; + } + + #message_block .text { + font-family: arial, san-serif; + font-size: 10pt; + font-weight: bold; + color: #fff; } @@ -629,8 +648,31 @@ table tr:nth-last-child(-5) td:first-of-type { } //--> + + + + + - + + + 0) { + echo "
"; + echo "
"; + echo " ".$_SESSION['message'].""; + echo "
"; + echo "
"; + unset($_SESSION['message']); + } + ?> +
- - 0) { - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
".$text['message-message']."
".$_SESSION['message']."
\n"; - echo "
\n"; - echo "
\n"; - unset($_SESSION['message']); - } - ?>