22 function MonitorHtmlTitleDesktop($pPageTitle) {
24 $monitorGlobalEnv = GetEnvDesktop();
29 $retValue = <<< print_html
30 <!DOCTYPE html><html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"en" lang=
"en">
32 <title>Credit Union Home
Banking Settings</title>
33 <meta http-equiv=
"X-UA-Compatible" content=
"IE=8" />
35 <link rel=
"stylesheet" media=
"all" type=
"text/css" href=
"https://{$monitorGlobalEnv['cloudfrontDomainName']}/homecu/css/reset.css" />
37 <!-- KENDO UI CSS Includes -->
38 <link href=
"https://{$monitorGlobalEnv['cloudfrontDomainName']}/homecu/css/KendoUI/{$monitorGlobalEnv['homecuKendoVersion']}/kendo.common.min.css" rel=
"stylesheet">
39 <link href=
"https://{$monitorGlobalEnv['cloudfrontDomainName']}/homecu/css/KendoUI/{$monitorGlobalEnv['homecuKendoVersion']}/kendo.default.min.css" rel=
"stylesheet">
40 <link href=
"/monitor/css/monitor-core.css" rel=
"stylesheet">
41 <script type=
"text/javascript" src=
"https://{$monitorGlobalEnv['cloudfrontDomainName']}/jquery/js/jquery-1.10.2.min.js.gz"></script>
43 <!-- KENDO UI JS scripts -->
44 <script src=
"https://{$monitorGlobalEnv['cloudfrontDomainName']}/homecu/js/KendoUI/{$monitorGlobalEnv['homecuKendoVersion']}/kendo.web.min.js"></script>
46 <script type=
"text/javascript" src=
"https://{$monitorGlobalEnv['cloudfrontDomainName']}/homecu/js/modernizr.min.js"></script>
47 <![endif]--><!-- ANY INTERNET EXPLORER -->
53 <div
class=
'header-title'>$pPageTitle</div>
71 function MonitorHtmlFooterDesktop() {
73 $monitorGlobalEnv = GetEnvDesktop();
76 $retValue = <<< print_html
94 function GetEnvDesktop () {
102 $listNeededValues = Array(
103 "homecuKendoVersion",
104 "cloudfrontDomainName" 107 if (is_array($listNeededValues)) {
108 foreach ($listNeededValues as $globalKey) {
109 if (isset($GLOBALS[$globalKey])) {
111 $retEnvAry[$globalKey] = $GLOBALS[$globalKey];
135 function getMenuBar($options)
138 if (is_array($options))
140 foreach($options as $key => $config)
142 $id= isset($config[
"id"]) ?
"id='" . $config[
"id"] .
"'" :
"";
143 $url= isset($config[
"url"]) ?
"href='" . $config[
"url"] .
"'" :
"href='#'";
144 $target= isset($config[
"target"]) ?
"target='" . $config[
"target"] .
"'" :
"";
145 $text= isset($config[
"text"]) ? $config[
"text"] : $key;
146 $disabled= isset($config[
"disabled"]) && $config[
"disabled"] ?
"disabled='disabled'" :
"";
148 if (isset($config[
"list"]) && is_array($config[
"list"]))
150 $thisMenuBar= getMenuBar($config[
"list"]);
151 $menuBar.=
"<li $id $disabled>$text<ul>$thisMenuBar</ul></li>";
155 $menuBar.= isset($config[
"noA"]) && $config[
"noA"] ?
"<li $id $disabled>$text</li>" :
"<li $disabled><a $id $url $target>$text</a></li>";
168 function printMonitorPageMiddle($titleText, $additionalMenuOptions= array(), $hideRedirect=
false)
173 $menuOptions= $hideRedirect ? array() : array(
"REDIRECT" => array(
"text" =>
"Redirect to: ",
"list" => array(
"Monitor" => array(
"url" =>
"$produrl/monitor/mindex.html",
"target" =>
"_top"))));
175 if (is_array($additionalMenuOptions))
177 foreach($additionalMenuOptions as $topLevel => $config)
179 if (!isset($menuOptions[$topLevel]))
180 $menuOptions[$topLevel]= array();
181 foreach($config as $key => $value)
185 $list= isset($menuOptions[$topLevel][
"list"]) ? $menuOptions[$topLevel][
"list"] : array();
186 $menuOptions[$topLevel][
"list"]= array_merge($list, $value);
189 $menuOptions[$topLevel][$key]= $value;
194 if (count($menuOptions) > 0)
196 $menuBar=
"<ul id='topMenuBar'>";
197 $menuBar.= getMenuBar($menuOptions);
202 $environmentMsg=
"(Development)";
203 $environmentClass=
"dev";
205 $environmentMsg=
"(Production)";
206 $environmentClass=
"prod";
212 <body
id=
"fixedBody">
213 <header
id=
"commonMonitorHeader" class=
"<?php echo $environmentClass; ?>">
214 <div
class=
"header-title"><?php echo $titleText ?></div>
215 <div
id=
"environmentMsg"><?php echo $environmentMsg; ?></div>
216 <?php echo $menuBar; ?>
218 <div
id=
"pageContents">
225 function printMonitorPageTop($title, $homecuKendoVersion, $cloudfrontDomainName, $use_kendo=
false) {
226 print
"found it!"; exit;
229 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"en" lang=
"en">
231 <title><?php echo $title; ?></title>
232 <meta http-equiv=
"X-UA-Compatible" content=
"IE=8" />
234 <link rel=
"stylesheet" media=
"all" type=
"text/css" href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/reset.css" />
237 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.common.min.css" rel=
"stylesheet">
238 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.default.min.css" rel=
"stylesheet">
239 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'https://<?php echo $cloudfrontDomainName; ?>/homecu/css/grid.css'>
240 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/kendo.homecucustom.4648.min.css" type=
"text/css" rel=
"stylesheet">
241 <link href=
"/monitor/css/monitor-core.css" rel=
"stylesheet">
242 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/jquery/js/jquery-1.10.2.min.js.gz"></script>
245 <script src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.web.min.js"></script>
246 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/hcuFormError.4091.min.js"></script>
248 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/modernizr.min.js"></script>
249 <![endif]--><!-- ANY INTERNET EXPLORER -->
251 <script type=
"text/javascript">
252 $(document).ready(
function () {
253 var topMenuBar= $(
"#topMenuBar").kendoMenu({
255 }).data(
"kendoMenu");
263 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"en" lang=
"en">
265 <title><?php echo $title; ?></title>
266 <meta http-equiv=
"X-UA-Compatible" content=
"IE=8" />
268 <link rel=
"stylesheet" media=
"all" type=
"text/css" href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/reset.css" />
271 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.common.min.css" rel=
"stylesheet">
272 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.default.min.css" rel=
"stylesheet">
273 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'https://<?php echo $cloudfrontDomainName; ?>/homecu/css/grid.css'>
274 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/kendo.homecucustom.4648.min.css" type=
"text/css" rel=
"stylesheet">
275 <link href=
"/monitor/css/monitor-core.css" rel=
"stylesheet">
276 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/jquery/js/jquery-1.10.2.min.js.gz"></script>
279 <script src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.web.min.js"></script>
280 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/hcuFormError.4091.min.js"></script>
282 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/modernizr.min.js"></script>
283 <![endif]--><!-- ANY INTERNET EXPLORER -->
285 <script type=
"text/javascript">
286 $(document).ready(
function () {
287 var topMenuBar= $(
"#topMenuBar").kendoMenu({
289 }).data(
"kendoMenu");
299 function printMonitorPageBottom() { ?>