20 $keepBannerVisible = (isset($preKeepBanner) && $preKeepBanner ? true :
false);
30 $secureMailEnabled =
false;
36 $menuSelectedDetail =
'';
37 $printedMainMenu =
'';
39 $reportPacketError =
false;
41 $navigationClass =
"";
42 $hideNavigation =
false;
43 if ( hcuIsAppPhone($HB_ENV) && !$keepBannerVisible ) {
44 $navigationClass =
"hide-header";
45 $hideNavigation =
true;
53 if (!$serviceLoadMenu) {
55 $serviceShowMenu =
false;
57 if ($serviceShowMenu) {
61 $importFieldAry = Array (
62 "li" => array(
'filter' => FILTER_SANITIZE_NUMBER_INT)
64 HCU_ImportVars($HB_ENV,
'menu-location', $importFieldAry);
66 $secureMailEnabled = (($HB_ENV[
'Fset2'] & $CU2_ALLOWMESSAGE) > 0);
81 if ($HB_ENV[
'live']) {
82 if ($serviceLiveCheck && HCU_array_key_exists(
'packetStatus', $HB_ENV)) {
84 if (savePacketStatusCookie($HB_ENV)) {
87 $reportPacketError =
true;
94 retrievePacketStatusCookie($HB_ENV);
100 retrievePacketStatusCookie($HB_ENV);
106 $secureMailNewCount = 0;
107 if ($secureMailEnabled) {
109 $secureMailNewCount = ReturnUnreadSecureMsg($dbh, $HB_ENV);
112 $acctFailNotify =
false;
113 $infoFailNotify =
false;
114 $infoDataNotify =
false;
116 $infoIconNotify =
false;
117 $ucTransactionsCount = 0;
119 $displayLastDataMsg =
'';
121 $serviceShowInfo= $serviceViewFromCuAdmin ? false : $serviceShowInfo;
125 if ($serviceShowInfo) {
134 $ucTransactions = ReturnUnconfirmedTransactions($HB_ENV[
'dbh'], $HB_ENV);
135 if (is_array($ucTransactions)) {
136 foreach ($ucTransactions as $key => $value) {
137 $canConfirm = Perm_AccessRights($dbh, $HB_ENV, array(
"feature" => $value[
'feature_code']));
138 if ($canConfirm[
'confirm']) {
139 $ucTransactionsCount ++;
146 $Fplog = HCU_array_key_value(
"Fplog", $HB_ENV) ? ($HB_ENV[
'Fplog'] ==
'None' ?
'' : strftime(
"%D %R", strtotime($HB_ENV[
'Fplog']))) :
"";
147 $Fflog = HCU_array_key_value(
"Fflog", $HB_ENV) ? ($HB_ENV[
'Fflog'] ==
'None' ?
'' : strftime(
"%D %R", strtotime($HB_ENV[
'Fflog']))) :
"";
149 if ($Fplog !=
'' && $Fflog !=
'') {
152 if (strtotime($Fflog) >= strtotime($Fplog)) {
153 $infoFailNotify =
true;
155 }
else if ($Fflog !=
'') {
156 $infoFailNotify =
true;
160 if ($HB_ENV[
'live']) {
161 $curPacketStatusAry = HCU_array_key_value(
'packetStatus', $HB_ENV);
165 if (in_array(HCU_array_key_value(
'status', $curPacketStatusAry), Array(
'999'))) {
166 $infoDataNotify =
true;
168 $suspendNotices =
true;
172 $infoIconNotify = ($infoDataNotify || $infoFailNotify);
175 if ($infoDataNotify) {
176 if ($HB_ENV[
'packetStatus'][
'status'] ==
'999') {
178 $displayLastDataMsg = <<< DATAMSG
179 {$MC->msg(
'Unable to load')}:
181 {$MC->msg(
'Credit Union responded')}:{$HB_ENV[
'packetStatus'][
'reason']} ({$HB_ENV[
'packetStatus'][
'status']})-->
183 {$MC->msg(
'Please try again later')}
186 $displayLastDataMsg = <<< DATAMSG
187 {$MC->msg(
'Credit Union not responding')}
191 $displayLastDataMsg = $HB_ENV[
'lastupdate'];
196 if ($HB_ENV[
'Ffchg'] ==
'Y') {
198 $acctFailNotify =
true;
200 if ( ($HB_ENV[
'Ffreset'] & GetUserFlagsValue(
"MEM_FORCE_RESET")) > 0 ) {
202 $acctFailNotify =
true;
204 if (($HB_ENV[
'Fmsg_tx'] & GetMsgTxValue(
'MSGTX_FORCE_EM')) > 0) {
206 $acctFailNotify =
true;
208 $acctIconNotify = ($acctFailNotify !=
'' ?
'exclamation' :
'');
210 $secureMailEnabled = (($HB_ENV[
'Fset2'] & $CU2_ALLOWMESSAGE) > 0);
218 if (!$serviceSuppressBanner) {
219 if ((HCU_array_key_value(
'Fset2', $HB_ENV) & GetFlagsetValue(
"CU2_SHOWBANNER"))) {
221 $aryBanner = Get_BannerText($dbh, $HB_ENV, $MC,
'D');
222 if ($aryBanner[
'status'][
'code'] !=
'000') {
225 $aryBannerData = Translate_BannerText($HB_ENV,$aryBanner[
'banner'][
'bannertext']);
226 if ($aryBannerData[
'status'][
'code'] !=
'000') {
229 $txtBannerData = $aryBannerData[
'banner'][
'bannertext'];
232 if ($txtBannerData !=
'') {
233 $bannerBodyClass =
'showHomecuBanner';
235 <div id='homecuBannerArea'> 246 $logoutData = HCU_JsonDecode(HCU_array_key_value(
"Logout", $cuSettings));
248 $logoURL = (HCU_array_key_value(
"url", $logoutData) !=
'' ? $logoutData[
'url'] :
'#');
249 $showExternalMsg = ($logoURL !==
"#");
256 header (
"Pragma: no-cache");
257 header (
"Last-Modified: " . gmdate(
"D, d M Y H:i:s") .
" GMT");
258 header (
"Cache-Control: no-cache, no-store, must-revalidate, max_age=0");
259 header (
"Expires: 0");
260 header(
'X-Frame-Options: sameorigin');
265 <title><?php echo hcu_displayHtml($HB_ENV[
'orgname']); ?></title>
266 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
267 <meta name=
"robots" content=
"noindex,nofollow,noarchive,nocache" />
268 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge" />
269 <meta name=
"referrer" content=
"always">
272 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
274 print setIncludeFiles(
true,
true, HCU_array_key_value(
"contentTheme", $cuSettings),
true, $HB_ENV, $MC);
278 $(document).ready(
function(){
280 if ( !$hideNavigation ) {
284 $(
'#body-wrapper').addClass(
'collapse');
285 $(
'#body-wrapper').addClass(
'in');
289 function closeNav() {
290 $(
'#body-wrapper').removeClass(
'collapse');
291 $(
'#body-wrapper').removeClass(
'in');
294 $(
"#hcu-nav-toggle").on(
"click",
function(){
295 var menuVisible = ($(
'#sidebar-nav:visible').length > 0);
303 $(
"#hcu-close-nav").on(
"click",
function(){
312 $(
".hcu-lang-toggle").on(
"click",
function(){
313 var lang = this.name;
314 ChangeLanguage(lang);
317 function ChangeLanguage(langCode) {
318 if (langCode !==
'' && langCode !==
'<?php echo $HB_ENV['Flang
']; ?>') {
319 postData =
"homecuLang=" + langCode;
320 $.post(
'<?php echo $HB_ENV['loginpath
'] . "/hcuSetLang.prg?" . $HB_ENV['currentQuery
']; ?>', postData,
function(data) {},
'json')
321 .done(
function(data) {
323 if (data.homecuInfo ==
'OK') {
325 document.location =
'<?php echo $HB_ENV['loginpath
'] . "/" . $HB_ENV['currentscript
'] . "?" . $HB_ENV['currentQuery
']; ?>';
340 <?php echo $bannerDiv; ?>
341 <div
id=
"body-wrapper" class=
"<?php echo (!$serviceShowInfo ? ' no-show-info ' : '') . (!$serviceShowMenu ? ' no-show-menu ' : '') . (!$secureMailEnabled ? ' no-show-secure-mail ' : ''); ?>">
343 <nav
id=
"header" class=
"navbar navbar-inverse navbar-static-top <?php echo $navigationClass ?>" style=
"margin-bottom: 0px">
345 <div
class=
"navbar-header">
346 <button
id=
"hcu-nav-toggle" type=
"button" class=
"navbar-toggle collapsed" aria-expanded=
"false">
347 <span
class=
"sr-only">Toggle navigation</span>
348 <span
class=
"icon-bar"></span>
349 <span
class=
"icon-bar"></span>
350 <span
class=
"icon-bar"></span>
354 <a
class=
"navbar-brand" <?php echo ($showExternalMsg ?
'rel="external"' :
''); ?> href=
"<?php echo $logoURL; ?>">
366 <img alt=
"Digital Banking Logo" class=
"logo" src=
"<?php echo $cuSettings['imageLocations']['desktopCULogoLocation']; ?>"/>
369 <?php
if (count($cuSettings[
'language']) > 1): ?>
370 <div
class=
"desk-lang-select hidden-xs" role=
"menu">
372 foreach ($cuSettings[
'language'] as $langKey => $langValue) {
373 if ($langKey != $HB_ENV[
'Flang']) {
375 <a href=
"#" class=
"hcu-lang-toggle" name=
"<?php echo $langKey; ?>" title=
"Select <?php echo $langValue; ?>"><div
class=
"flag_icons flag_icons_<?php echo $langKey; ?>"></div></a>
385 require_once(
'../library/menu-creators/compass-menu.i');
391 <nav
id=
"side-menu" class=
"navbar-default sidebar sidenav <?php echo $navigationClass ?>">
392 <div
id=
"sidebar-nav" class=
"sidebar-nav navbar-collapse ">
394 if ($serviceShowMenu) {
396 $paramList = Array (
"Uid" => $HB_ENV[
'Uid'],
400 PrintFeatureMenu($dbh, $HB_ENV,
'HTML', $paramList, $serviceViewFromCuAdmin);
406 <div
id=
'hideSubmitWait' style=
'position:relative; left:-2000px;top:-2000px;'>
407 <div
id=
'homecuSubmitWait' class=
'k-block' >
408 <div
class=
'k-loading-image'></div>
411 <div
id=
"content-wrapper" class=
"<?php echo (hcuIsAppPhone($HB_ENV) ? " mobile-app-view
" : ""); ?> nothere <?php echo $navigationClass ?>">
412 <div
id=
"formStatus" class=
"homecu-formStatus k-block k-error-colored" style=
'display:none; margin-bottom:10px;max-width:800px;'></div>
413 <a href=
"#" id=
"hcu-close-nav" class=
"overlay-close" data-toggle=
"collapse" > </a>
414 <div
id=
"main-container" role=
"main">
415 <div
id=
"homecu-wrapper">
416 <div
id=
"homecu-container">
417 <div
id=
"homecu-padding-top" class=
"col-xs-12"></div> <!-- homecu-padding -->