From b29f9991cd021423fac1fdea009de8186ccfb8b4 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Mon, 24 Feb 2014 23:36:37 +0000 Subject: [PATCH] An enhanced domain/tenant selector for the Enhanced theme. --- themes/enhanced/template.php | 238 ++++++++++++++++++++++++++--------- 1 file changed, 179 insertions(+), 59 deletions(-) diff --git a/themes/enhanced/template.php b/themes/enhanced/template.php index c9fdbc4441..d8e0cfc5c0 100644 --- a/themes/enhanced/template.php +++ b/themes/enhanced/template.php @@ -38,6 +38,27 @@ + + 0) { - echo "
"; - echo "
"; - echo " ".$_SESSION['message'].""; - echo "
"; - echo "
"; - unset($_SESSION['message']); - } + // message block + if (strlen($_SESSION['message']) > 0) { + echo "
"; + echo "
"; + echo " ".$_SESSION['message'].""; + echo "
"; + echo "
"; + unset($_SESSION['message']); + } + + //logged in show the domains block + if (strlen($_SESSION["username"]) > 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { + ?> +
+
+
+ + Domain Selector +

+ +
+
+
+
+ + + +
+
+
@@ -680,25 +812,13 @@ table tr:nth-last-child(-5) td:first-of-type { 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { - //$tmp_style = "style=\"opacity:0.7;filter:alpha(opacity=70)\" "; - //$tmp_style .= "onmouseover=\"this.style.opacity=1;this.filters.alpha.opacity=90\" "; - //$tmp_style .= "onmouseout=\"this.style.opacity=0.7;this.filters.alpha.opacity=70\" "; - $tmp_style = "style=\"opacity:0.7;\" "; - $tmp_style .= "onmouseover=\"this.style.opacity=1;\" "; - $tmp_style .= "onmouseout=\"this.style.opacity=0.7;\" "; - echo " \n"; - } + //logged in show the domains block + if (strlen($_SESSION["username"]) > 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { + ?> + + + \n"; - echo " fusionpbx.com. Copyright 2008 - 2013. All Rights Reserved\n"; - echo "\n"; + echo " fusionpbx.com. Copyright 2008 - ".date("Y").". All rights reserved.\n"; + echo "

\n"; } else { echo "\n"; } ?>