25 function getMenuBar($options)
28 if (is_array($options))
30 foreach($options as $key => $config)
32 $id= isset($config[
"id"]) ?
"id='" . $config[
"id"] .
"'" :
"";
33 $url= isset($config[
"url"]) ?
"href='" . $config[
"url"] .
"'" :
"href='#'";
34 $target= isset($config[
"target"]) ?
"target='" . $config[
"target"] .
"'" :
"";
35 $text= isset($config[
"text"]) ? $config[
"text"] : $key;
36 $disabled= isset($config[
"disabled"]) && $config[
"disabled"] ?
"disabled='disabled'" :
"";
38 if (isset($config[
"list"]) && is_array($config[
"list"]))
40 $thisMenuBar= getMenuBar($config[
"list"]);
41 $menuBar.=
"<li $id $disabled>$text<ul>$thisMenuBar</ul></li>";
45 $menuBar.= isset($config[
"noA"]) && $config[
"noA"] ?
"<li $id $disabled>$text</li>" :
"<li $disabled><a $id $url $target>$text</a></li>";
58 function printMonitorPageMiddle($titleText, $additionalMenuOptions= array(), $hideRedirect=
false) {
61 $menuOptions= $hideRedirect ? array() : array(
"REDIRECT" => array(
"text" =>
"Jump to: ",
"list" => array(
"Monitor" => array(
"url" =>
"$produrl/monitor/mindex.html",
"target" =>
"_top"))));
63 if (is_array($additionalMenuOptions))
65 foreach($additionalMenuOptions as $topLevel => $config)
67 if (!isset($menuOptions[$topLevel]))
68 $menuOptions[$topLevel]= array();
69 foreach($config as $key => $value)
73 $list= isset($menuOptions[$topLevel][
"list"]) ? $menuOptions[$topLevel][
"list"] : array();
74 $menuOptions[$topLevel][
"list"]= array_merge($list, $value);
77 $menuOptions[$topLevel][$key]= $value;
83 if (count($menuOptions) > 0)
85 $menuBar=
"<ul id='topMenuBar'>";
86 $menuBar.= getMenuBar($menuOptions);
91 $environmentMsg=
"(Development)";
92 $environmentClass=
"dev";
94 $environmentMsg=
"(Production)";
95 $environmentClass=
"prod";
101 <body
id=
"fixedBody">
102 <header
id=
"commonMonitorHeader" class=
"<?php echo $environmentClass; ?>">
103 <div
class=
"header-title"><?php echo $titleText ?></div>
104 <div
id=
"environmentMsg"><?php echo $environmentMsg; ?></div>
105 <?php echo $menuBar; ?>
107 <div
id=
"pageContents">
114 function printMonitorPageTop($title, $homecuKendoVersion, $cloudfrontDomainName, $bootstrapVersion =
'', $fontawesomeVersion =
'', $useBootStrap =
false) {
117 $homecuKendoVersion = $homecuKendoVersion ==
"" ? GetHomecuKendoVersion() : $homecuKendoVersion;
118 $bootstrapVersion = $bootstrapVersion ==
"" ? GetHomecuBootstrapVersion() : $bootstrapVersion;
119 $fontawesomeVersion = $fontawesomeVersion ==
"" ? GetFontawesomeVersion() : $fontawesomeVersion;
120 $kendoStyle = GetMonitorDefaultKendoStyle();
121 $cloudfrontDomainName = $cloudfrontDomainName ==
"" ? GetCloudFrontDomainName() : $cloudfrontDomainName;
123 $vendor_by_cu_css = (
124 preg_match(
'/TrustedVendorByCu.prg/', $_SERVER[
'SCRIPT_URL']) ||
125 preg_match(
'/TrustedVendorByCu.prg/', $_SERVER[
'SCRIPT_URI'])) ?
126 '<link href="/shared/static/css/trusted-report-by-vendor.css" rel="stylesheet">' :
129 if (!$useBootStrap) {
134 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"en" lang=
"en">
136 <title><?php echo $title; ?></title>
137 <meta http-equiv=
"X-UA-Compatible" content=
"IE=8" />
139 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
141 <link rel=
"stylesheet" media=
"all" type=
"text/css" href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/reset.css" />
144 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.common.min.css" rel=
"stylesheet">
145 <link href=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/css/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.<?php echo $kendoStyle; ?>.min.css" rel=
"stylesheet">
146 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'https://<?php echo $cloudfrontDomainName; ?>/homecu/css/grid.css'>
147 <?php echo $vendor_by_cu_css; ?>
148 <link href=
"/shared/static/css/kendo.homecucustom.css" type=
"text/css" rel=
"stylesheet">
149 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/jquery/js/jquery-1.10.2.min.js.gz"></script>
151 <link href=
'https://d1kryjpwpzirc7.cloudfront.net/homecu/css/font-awesome/<?php echo $fontawesomeVersion; ?>/css/font-awesome.css' rel=
'stylesheet'/>
153 <script src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/KendoUI/<?php echo $homecuKendoVersion; ?>/kendo.web.min.js"></script>
154 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/hcuFormError.4091.min.js"></script>
156 <script type=
"text/javascript" src=
"https://<?php echo $cloudfrontDomainName; ?>/homecu/js/modernizr.min.js"></script>
157 <![endif]--><!-- ANY INTERNET EXPLORER -->
158 <script type=
'text/javascript' src=
'/shared/static/js/kendo.homecu.custom.js'></script>
160 <link href=
"/monitor/css/monitor-core.css" type=
"text/css" rel=
"stylesheet">
162 <script type=
"text/javascript">
163 $(document).ready(
function () {
164 var topMenuBar= $(
"#topMenuBar").kendoMenu({
166 }).data(
"kendoMenu");
181 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"en" lang=
"en">
183 <title>{$title}</title>
184 <meta http-equiv=
"X-UA-Coampatible" content=
"IE=8" />
186 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
188 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'https://{$cloudfrontDomainName}/homecu/css/reset.4085.min.css' />
190 <!-- BASE BOOTSTRAP -->
191 <link href=
'https://cucommon.s3.amazonaws.com/homecu/css/bootstrap/{$bootstrapVersion}/css/bootstrap.css' rel=
'stylesheet'/>
193 <!-- KENDO BOOTSTRAP COMMON STYLES - - REPLACES kendo.common.css -->
194 <link href=
'https://cucommon.s3.amazonaws.com/homecu/css/KendoUI/{$homecuKendoVersion}/kendo.common-bootstrap.min.css' rel=
'stylesheet'/>
196 <!-- KENDO BOOTSTRAP THEME */ -->
197 <link href=
'https://{$cloudfrontDomainName}/homecu/css/KendoUI/{$homecuKendoVersion}/kendo.$kendoStyle.min.css' rel=
'stylesheet'/>
200 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/shared/static/css/homecu-custom-kendo-boot.css' />
203 <!-- <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/_static/css/site.css' /> -->
206 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/shared/static/css/hcuLayout.css' />
207 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/monitor/css/layout.css' />
210 <link href=
'https://{$cloudfrontDomainName}/homecu/css/font-awesome/{$fontawesomeVersion}/css/font-awesome.css' rel=
'stylesheet'/>
213 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/monitor/css/brand.css' />
219 <script type=
'text/javascript' src=
'https://{$cloudfrontDomainName}/jquery/js/jquery-1.10.2.min.js{$useGZExt}'></script>
222 <script src=
'https://{$cloudfrontDomainName}/homecu/js/KendoUI/{$homecuKendoVersion}/kendo.web.min.js'></script>
224 <script src=
'https://cucommon.s3.amazonaws.com/homecu/js/bootstrap/{$bootstrapVersion}/js/bootstrap.js'></script>
227 <script type=
'text/javascript' src=
'https://{$cloudfrontDomainName}/homecu/js/jquery.cookie.js'></script>
230 <script type=
'text/javascript' src=
'/shared/static/js/hcuFormError.js'></script>
233 <script type=
'text/javascript' src=
'/banking/static/js/hcuFormNotice.js'></script>
236 <script type=
'text/javascript' src=
'/shared/static/js/kendo.homecu.custom.js'></script>
238 <link href=
"/monitor/css/monitor-core.css" type=
"text/css" rel=
"stylesheet">
248 <script type=
"text/javascript">
249 $(document).ready(
function () {
250 var topMenuBar= $(
"#topMenuBar").kendoMenu({
252 }).data(
"kendoMenu");
261 function printMonitorPageBottom()