10 $serviceViewFromCUAdmin = (isset($serviceViewFromCUAdmin) ? $serviceViewFromCUAdmin :
false);
14 if (!$serviceViewFromCUAdmin) {
16 $serviceShowInfo =
true;
17 $serviceLoadMenu =
true;
18 $serviceShowMenu =
true;
19 $serviceLiveCheck =
true;
22 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
37 $suspendNotices =
false;
44 PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_BASIC);
49 $Get_Balances_ary = Get_Balances($dbh, $HB_ENV);
52 if (!$serviceViewFromCUAdmin) {
53 require_once(dirname(__FILE__) .
'/../includes/hcuPreContent.i');
55 include_once(
'/home/httpd/hcuinc/adminc/viewMemberAcct.content');
65 if (!$suspendNotices) {
75 if (($HB_ENV[
'Fmsg_tx'] & 16384) == 16384) {
77 $HB_ENV[
'messageSuppressPromo'] =
true;
80 if (($HB_ENV[
'Fmsg_tx'] & 8) == 8) {
81 $HB_ENV[
'messageSuppressSurvey'] =
true;
84 if (($HB_ENV[
'Fmsg_tx'] & 256) == 256) {
85 $HB_ENV[
'messageSuppressMsg'] =
true;
88 $accountNoticesAry = Get_NoticeInfo($dbh, $HB_ENV, $MC,
"D",
"ALL",
true);
100 $filterNoticeType =
function ($noticeAry, $aryKey) use (&$accountNoticesAry) {
104 if ($noticeAry[
'notice_popup'] >= 0) {
105 $accountNoticesAry[$noticeAry[
'notice_type']][($noticeAry[
'notice_type'] ==
'M' ? ($noticeAry[
'notice_popup'] == 1 ?
'popup' :
'embed') :
'popup')][] = $noticeAry;
111 array_walk($accountNoticesAry[
'notice'], $filterNoticeType);
112 $nextPopupChain = Array();
115 $countPromoMsg = !empty( $accountNoticesAry[
'C'] ) ? count($accountNoticesAry[
'C'][
'popup']) : 0;
116 $hasPromoPopup=
false;
117 if ($countPromoMsg > 0) {
118 $noticePromoURL = Array();
119 for ($msgIdx = 0; $msgIdx < $countPromoMsg; $msgIdx++) {
120 $promoFuncName =
"showPromo{$msgIdx}";
123 $promoOption = $accountNoticesAry[
'C'][
'popup'][$msgIdx];
125 $promoOptions = Array (
126 'docsid' => $promoOption[
'notice_id'],
127 'docstype' => $promoOption[
'notice_type'],
129 'noticeOnly' => $promoOption[
"notice_subtype"] ==
"P" ?
"1" :
"0",
130 'expireTime' => mktime() + 86400
133 $encryptedDocDetails= HCU_PayloadEncode($HB_ENV[
'Cu'], $promoOptions);
135 $noticePromoURL[] = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetails);
138 if($initialPopup ==
'') {
139 $initialPopup = $promoFuncName .
'()';
141 $nextPopupChain[] =
", {$promoFuncName}";
145 $hasPromoPopup =
true;
150 $countPopupSurvey = !empty($accountNoticesAry[
'S']) ? count($accountNoticesAry[
'S'][
'popup']) : 0;
151 $hasSurveyPopup =
false;
152 if ($countPopupSurvey > 0) {
153 if ($countPopupSurvey > 1) {
154 $randSurveyIdx = rand(0, $countPopupSurvey - 1);
160 $surveyOption = $accountNoticesAry[
'S'][
'popup'][$randSurveyIdx];
162 $surveyOptions = Array (
163 'docsid' => $surveyOption[
'notice_id'],
164 'docstype' => $surveyOption[
'notice_type'],
167 'expireTime' => mktime() + 86400
170 $encryptedDocDetails= HCU_PayloadEncode($HB_ENV[
'Cu'], $surveyOptions);
172 $hasSurveyPopup =
true;
173 $noticeSurveyURL = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetails);
175 if ($initialPopup ==
'') {
176 $initialPopup =
'showSurvey();';
178 $nextPopupChain[] =
", showSurvey";
182 $countPopupMktMsg = !empty( $accountNoticesAry[
'M'] ) ? (HCU_array_key_exists(
'popup', $accountNoticesAry[
'M']) ? count($accountNoticesAry[
'M'][
'popup']) : 0) : 0;
184 $hasMktMsgPopup =
false;
185 if ($countPopupMktMsg > 0) {
186 if ($countPopupMktMsg > 1) {
187 $randMktMsgIdx = rand(0, $countPopupMktMsg - 1);
193 $messageOption = $accountNoticesAry[
'M'][
'popup'][$randMktMsgIdx];
195 $messageOptions = Array (
196 'docsid' => $messageOption[
'notice_id'],
197 'docstype' => $messageOption[
'notice_type'],
200 'expireTime' => mktime() + 86400
203 $encryptedDocDetails= HCU_PayloadEncode($HB_ENV[
'Cu'], $messageOptions);
205 $hasMktMsgPopup =
true;
206 $noticeMktMsgURL = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetails);
208 if ($initialPopup ==
'') {
209 $initialPopup =
'showMktMsg();';
211 $nextPopupChain[] =
", showMktMsg";
215 if (HCU_array_key_exists(
'M', $accountNoticesAry)) {
216 $countEmbedMsg = count($accountNoticesAry[
'M'][
'embed']);
221 if ($countEmbedMsg > 0) {
223 if ($countEmbedMsg > 1) {
224 $randMsgIdx = rand(0, $countEmbedMsg - 1);
229 $displayStart = ( $HB_ENV[
"Fmsg_tx"] & 0x8000 ) ?
"display:none;" :
"display:block;";
233 <a id='slide-in-handle' class='hcu-slide-in-handle-custom' href='#'> <span id='slide-in-handle-content'>{$accountNoticesAry['M']['embed'][$randMsgIdx]['notice_title']}</span> </a> 234 <div id='slide-in-share' style='$displayStart'> 235 <div id='slide-in-content'> 236 <div id='slide-in-scroll'></div> 237 <div id='slide-in-content-close'><a href=''>Close</a></div> 240 <div class='col-xs-12 local-notify-spacer'> 243 $showEmbedMsgContent = $accountNoticesAry[
'M'][
'embed'][$randMsgIdx][
'notice_text'];
246 if ($initialPopup ==
'') {
247 $initialPopup =
'showMsgInset();';
249 $nextPopupChain[] =
", showMsgInset";
260 <div
id=
"acctList" class=
"k-content" style=
"font-size: 12px;">
273 $sql =
"SELECT ccinfourl 275 WHERE cu = '{$HB_ENV['Cu']}' ";
277 $sth = db_query($sql, $dbh);
278 if ($sth) { list($hisinfo) = db_fetch_array($sth, 0); }
279 $showCCActivity = !(trim($hisinfo) ==
'');
308 $Disp_Balances_ary = Array (
310 "acct_title" => $MC->msg(
"Deposit Balances", HCU_DISPLAY_AS_HTML),
311 "acct_history" =>
true,
313 "displaydesc" => Array(
314 "disp_title" => $MC->msg(
"Description", HCU_DISPLAY_AS_JS),
315 "disp_fieldname" =>
"displaydesc",
316 "disp_format" =>
"FormatText",
317 "disp_footerTmpl" =>
"count",
318 "disp_type" =>
"label",
319 "disp_OnBalances" =>
true,
320 "disp_OnDetails" =>
true,
321 "disp_OnWidth" =>
"0"),
322 "description" => Array(
323 "disp_title" => $MC->msg(
"Description", HCU_DISPLAY_AS_JS),
324 "disp_fieldname" =>
"description",
325 "disp_format" =>
"FormatText",
326 "disp_type" =>
"block",
327 "disp_OnBalances" =>
false,
328 "disp_OnDetails" =>
true,
329 "disp_OnWidth" =>
"12000"),
330 "currentbal" => Array(
331 "disp_title" => $MC->msg(
'Current', HCU_DISPLAY_AS_JS),
332 "disp_fieldname" =>
"currentbal",
333 "disp_format" =>
"FormatCurrency",
334 "disp_footerTmpl" =>
"sum",
335 "disp_type" =>
"block",
336 "disp_OnBalances" =>
true,
337 "disp_OnDetails" =>
true,
338 "disp_OnWidth" =>
"0"),
339 "availablebal" =>Array(
340 "disp_title" => $MC->msg(
'Available', HCU_DISPLAY_AS_JS),
341 "disp_fieldname" =>
"availablebal",
342 "disp_format" =>
"FormatCurrency",
343 "disp_footerTmpl" =>
"sum",
344 "disp_type" =>
"block",
345 "disp_OnBalances" => ($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE')),
346 "disp_OnDetails" => ($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE')),
347 "disp_OnWidth" =>
"0"),
348 "ytdinterest" => Array(
349 "disp_title" => $MC->msg(
'YTD Dividend', HCU_DISPLAY_AS_JS),
350 "disp_fieldname" =>
"ytdinterest",
351 "disp_format" =>
"FormatCurrency",
352 "disp_type" =>
"block",
353 "disp_OnBalances" =>
false,
354 "disp_OnDetails" =>
true,
355 "disp_OnWidth" =>
"12000"),
356 "lastyrinterest" => Array(
357 "disp_title" => $MC->msg(
'Prior Yr Dividend', HCU_DISPLAY_AS_JS),
358 "disp_fieldname" =>
"lastyrinterest",
359 "disp_format" =>
"FormatCurrency",
360 "disp_type" =>
"block",
361 "disp_OnBalances" =>
false,
362 "disp_OnDetails" =>
true,
363 "disp_OnWidth" =>
"12000"),
365 "disp_title" =>
'hisinfo',
366 "disp_fieldname" =>
'hisinfo',
367 "disp_format" =>
"FormatText",
368 "disp_type" =>
"block",
369 "disp_OnBalances" =>
false,
370 "disp_OnDetails" =>
false,
371 "disp_OnWidth" =>
"12000"),
372 "as_of_date" => Array(
373 "disp_title" =>
'as_of_date',
374 "disp_fieldname" =>
'as_of_date',
375 "disp_format" =>
"FormatText",
376 "disp_type" =>
"block",
377 "disp_OnBalances" =>
false,
378 "disp_OnDetails" =>
false,
379 "disp_OnWidth" =>
"12000")
383 "acct_title" => $MC->msg(
"Loan Balances", HCU_DISPLAY_AS_HTML),
384 "acct_history" =>
true,
386 "displaydesc" => Array(
387 "disp_title" => $MC->msg(
"Description", HCU_DISPLAY_AS_JS),
388 "disp_fieldname" =>
"displaydesc",
389 "disp_format" =>
"FormatText",
390 "disp_footerTmpl" =>
"count",
391 "disp_type" =>
"label",
392 "disp_OnBalances" =>
true,
393 "disp_OnDetails" =>
true,
394 "disp_OnWidth" =>
"0"),
395 "description" => Array(
396 "disp_title" => $MC->msg(
"Description", HCU_DISPLAY_AS_JS),
397 "disp_fieldname" =>
"description",
398 "disp_format" =>
"FormatText",
399 "disp_type" =>
"block",
400 "disp_OnBalances" =>
true,
401 "disp_OnDetails" =>
true,
402 "disp_OnWidth" =>
"12000"),
403 "currentbal" => Array(
404 "disp_title" => $MC->msg(
'Balance', HCU_DISPLAY_AS_JS),
405 "disp_fieldname" =>
"currentbal",
406 "disp_format" =>
"FormatCurrency",
407 "disp_footerTmpl" =>
"sum",
408 "disp_type" =>
"block",
409 "disp_OnBalances" =>
true,
410 "disp_OnDetails" =>
true,
411 "disp_OnWidth" =>
"0"),
412 "paymentamount" => Array(
413 "disp_title" => $MC->msg(
'Payment', HCU_DISPLAY_AS_JS),
414 "disp_fieldname" =>
"paymentamount",
415 "disp_format" =>
"FormatCurrency",
416 "disp_type" =>
"block",
417 "disp_OnBalances" =>
true,
418 "disp_OnDetails" =>
true,
419 "disp_OnWidth" =>
"0"),
420 "interestrate" => Array(
421 "disp_title" => $MC->msg(
'Interest Rate', HCU_DISPLAY_AS_JS),
422 "disp_fieldname" =>
"interestrate",
423 "disp_format" =>
"FormatPercent",
424 "disp_type" =>
"block",
425 "disp_OnBalances" =>
false,
426 "disp_OnDetails" =>
true,
427 "disp_OnWidth" =>
"12000"),
428 "nextduedate" => Array(
429 "disp_title" => $MC->msg(
'Next Due', HCU_DISPLAY_AS_JS),
430 "disp_fieldname" =>
"nextduedate",
431 "disp_format" =>
"FormatDatePast",
432 "disp_type" =>
"block",
433 "disp_OnBalances" =>
true,
434 "disp_OnDetails" =>
true,
435 "disp_OnWidth" =>
"0"),
437 "disp_title" => ((($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_10DAYPAY")) == GetFlagsetValue(
"CU2_10DAYPAY")) ? $MC->msg(
"Todays Payoff", HCU_DISPLAY_AS_JS) : $MC->msg(
'Payoff', HCU_DISPLAY_AS_JS)),
438 "disp_fieldname" =>
"payoff",
439 "disp_format" => ((($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_CALL_PAYOFF"))==GetFlagsetValue(
"CU2_CALL_PAYOFF")) ?
'FormatText' :
'FormatCurrency'),
440 "disp_type" =>
"block",
441 "disp_OnBalances" =>
false,
442 "disp_OnDetails" =>
true,
443 "disp_OnWidth" =>
"12000"),
444 "creditlimit" => Array(
445 "disp_title" => $MC->msg(
'Limit', HCU_DISPLAY_AS_JS),
446 "disp_fieldname" =>
"creditlimit",
447 "disp_format" =>
"FormatCurrency",
448 "disp_type" =>
"block",
449 "disp_OnBalances" =>
false,
450 "disp_OnDetails" =>
true,
451 "disp_OnWidth" =>
"12000"),
452 "availablebal" => Array(
453 "disp_title" => $MC->msg(
'Available', HCU_DISPLAY_AS_JS),
454 "disp_fieldname" =>
"availablebal",
455 "disp_format" =>
"FormatCurrency",
456 "disp_footerTmpl" =>
"sum",
457 "disp_type" =>
"block",
458 "disp_OnBalances" =>
false,
459 "disp_OnDetails" => ($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE')),
460 "disp_OnWidth" =>
"12000"),
462 "disp_title" => $MC->msg(
'Ten-days', HCU_DISPLAY_AS_JS) .
' ' . $MC->msg(
'Payoff', HCU_DISPLAY_AS_JS),
463 "disp_fieldname" =>
"tenday",
464 "disp_format" =>
'FormatCurrency',
465 "disp_type" =>
"block",
466 "disp_OnBalances" =>
false,
467 "disp_OnDetails" =>
true,
468 "disp_OnWidth" =>
"12000"),
469 "ytdinterest" => Array(
470 "disp_title" => $MC->msg(
'YTD Dividend', HCU_DISPLAY_AS_JS),
471 "disp_fieldname" =>
"ytdinterest",
472 "disp_format" =>
"FormatCurrency",
473 "disp_type" =>
"block",
474 "disp_OnBalances" =>
false,
475 "disp_OnDetails" =>
true,
476 "disp_OnWidth" =>
"12000"),
477 "lastyrinterest" => Array(
478 "disp_title" => $MC->msg(
'Prior Yr Dividend', HCU_DISPLAY_AS_JS),
479 "disp_fieldname" =>
"lastyrinterest",
480 "disp_format" =>
"FormatCurrency",
481 "disp_type" =>
"block",
482 "disp_OnBalances" =>
false,
483 "disp_OnDetails" =>
true,
484 "disp_OnWidth" =>
"12000"),
486 "disp_title" =>
'pastdue',
487 "disp_fieldname" =>
'pastdue',
488 "disp_format" =>
"FormatText",
489 "disp_type" =>
"block",
490 "disp_OnBalances" =>
false,
491 "disp_OnDetails" =>
false,
492 "disp_OnWidth" =>
"12000"),
494 "disp_title" =>
'hisinfo',
495 "disp_fieldname" =>
'hisinfo',
496 "disp_format" =>
"FormatText",
497 "disp_type" =>
"block",
498 "disp_OnBalances" =>
false,
499 "disp_OnDetails" =>
false,
500 "disp_OnWidth" =>
"12000"),
501 "as_of_date" => Array(
502 "disp_title" =>
'as_of_date',
503 "disp_fieldname" =>
'as_of_date',
504 "disp_format" =>
"FormatText",
505 "disp_type" =>
"block",
506 "disp_OnBalances" =>
false,
507 "disp_OnDetails" =>
false,
508 "disp_OnWidth" =>
"12000")
512 "acct_title" => $MC->msg(
"Credit Card Balances", HCU_DISPLAY_AS_HTML),
513 "acct_history" => $showCCActivity,
515 "displaydesc" => Array(
516 "disp_title" => $MC->msg(
"Description", HCU_DISPLAY_AS_JS),
517 "disp_fieldname" =>
"displaydesc",
518 "disp_format" =>
"FormatText",
519 "disp_footerTmpl" =>
"count",
520 "disp_type" =>
"label",
521 "disp_OnBalances" =>
true,
522 "disp_OnDetails" =>
true,
523 "disp_OnWidth" =>
"0"),
524 "description" => Array(
525 "disp_title" => $MC->msg(
"Description", HCU_DISPLAY_AS_JS),
526 "disp_fieldname" =>
"description",
527 "disp_format" =>
"FormatText",
528 "disp_type" =>
"block",
529 "disp_OnBalances" =>
false,
530 "disp_OnDetails" =>
true,
531 "disp_OnWidth" =>
"12000"),
532 "currentbal" => Array(
533 "disp_title" => $MC->msg(
'Current Bal', HCU_DISPLAY_AS_JS),
534 "disp_fieldname" =>
"currentbal",
535 "disp_format" =>
"FormatCurrency",
536 "disp_footerTmpl" =>
"sum",
537 "disp_type" =>
"block",
538 "disp_OnBalances" =>
true,
539 "disp_OnDetails" =>
true,
540 "disp_OnWidth" =>
"0"),
541 "availablebal" => Array(
542 "disp_title" => $MC->msg(
'Available', HCU_DISPLAY_AS_JS),
543 "disp_fieldname" =>
"availablebal",
544 "disp_format" => ((($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_CALL_CCAVAIL"))==GetFlagsetValue(
"CU2_CALL_CCAVAIL")) ?
'FormatText' :
'FormatCurrency'),
545 "disp_footerTmpl" =>
"sum",
546 "disp_type" =>
"block",
547 "disp_OnBalances" => ($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE')),
548 "disp_OnDetails" => ($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE')),
549 "disp_OnWidth" =>
"12000"),
550 "paymentamount" => Array(
551 "disp_title" => $MC->msg(
'Min Due', HCU_DISPLAY_AS_JS),
552 "disp_fieldname" =>
"paymentamount",
553 "disp_format" =>
"FormatCurrency",
554 "disp_type" =>
"block",
555 "disp_OnBalances" =>
true,
556 "disp_OnDetails" =>
true,
557 "disp_OnWidth" =>
"0"),
558 "lastpaymentdate" => Array(
559 "disp_title" => $MC->msg(
'Last Paid', HCU_DISPLAY_AS_JS),
560 "disp_fieldname" =>
"lastpaymentdate",
561 "disp_format" =>
"FormatDate",
562 "disp_type" =>
"block",
563 "disp_OnBalances" =>
false,
564 "disp_OnDetails" =>
true,
565 "disp_OnWidth" =>
"12000"),
566 "nextduedate" => Array(
567 "disp_title" => $MC->msg(
'Next Due', HCU_DISPLAY_AS_JS),
568 "disp_fieldname" =>
"nextduedate",
569 "disp_format" =>
"FormatDatePast",
570 "disp_type" =>
"block",
571 "disp_OnBalances" =>
true,
572 "disp_OnDetails" =>
true,
573 "disp_OnWidth" =>
"0"),
574 "creditlimit" => Array(
575 "disp_title" => $MC->msg(
'Limit', HCU_DISPLAY_AS_JS),
576 "disp_fieldname" =>
"creditlimit",
577 "disp_format" =>
"FormatCurrency",
578 "disp_type" =>
"block",
579 "disp_OnBalances" =>
false,
580 "disp_OnDetails" =>
true,
581 "disp_OnWidth" =>
"12000"),
582 "interestrate" => Array(
583 "disp_title" => $MC->msg(
'Interest Rate', HCU_DISPLAY_AS_JS),
584 "disp_fieldname" =>
"interestrate",
585 "disp_format" =>
"FormatPercent",
586 "disp_type" =>
"block",
587 "disp_OnBalances" =>
false,
588 "disp_OnDetails" =>
true,
589 "disp_OnWidth" =>
"12000"),
590 "ytdinterest" => Array(
591 "disp_title" => $MC->msg(
'YTD Dividend', HCU_DISPLAY_AS_JS),
592 "disp_fieldname" =>
"ytdinterest",
593 "disp_format" =>
"FormatCurrency",
594 "disp_type" =>
"block",
595 "disp_OnBalances" =>
false,
596 "disp_OnDetails" =>
true,
597 "disp_OnWidth" =>
"12000"),
598 "lastyrinterest" => Array(
599 "disp_title" => $MC->msg(
'Prior Yr Dividend', HCU_DISPLAY_AS_JS),
600 "disp_fieldname" =>
"lastyrinterest",
601 "disp_format" =>
"FormatCurrency",
602 "disp_type" =>
"block",
603 "disp_OnBalances" =>
false,
604 "disp_OnDetails" =>
true,
605 "disp_OnWidth" =>
"12000"),
607 "disp_title" =>
'pastdue',
608 "disp_fieldname" =>
'pastdue',
609 "disp_format" =>
"FormatText",
610 "disp_type" =>
"block",
611 "disp_OnBalances" =>
false,
612 "disp_OnDetails" =>
false,
613 "disp_OnWidth" =>
"12000"),
615 "disp_title" =>
'hisinfo',
616 "disp_fieldname" =>
'hisinfo',
617 "disp_format" =>
"FormatText",
618 "disp_type" =>
"block",
619 "disp_OnBalances" =>
false,
620 "disp_OnDetails" =>
false,
621 "disp_OnWidth" =>
"12000"),
622 "as_of_date" => Array(
623 "disp_title" =>
'as_of_date',
624 "disp_fieldname" =>
'as_of_date',
625 "disp_format" =>
"FormatText",
626 "disp_type" =>
"block",
627 "disp_OnBalances" =>
false,
628 "disp_OnDetails" =>
false,
629 "disp_OnWidth" =>
"12000")
643 $displayJsonData = Array();
649 $displayRowTemplate = Array();
662 $displayConfiguredCols = Array();
664 if ($Get_Balances_ary[
'status'][
'code'] ==
'000') {
666 foreach (array_keys($Disp_Balances_ary) as $disp_key ) {
671 if (HCU_array_key_exists($disp_key, $Get_Balances_ary)) {
672 if (!is_null($Get_Balances_ary[$disp_key])) {
676 if (is_array($Get_Balances_ary[$disp_key]) ===
true) {
678 foreach ($Get_Balances_ary[$disp_key] as $acctID => $acctRow) {
686 if (HCU_array_key_value(
'view_balances', $acctRow)) {
687 $displayJsonData[$disp_key][] = array_merge(Array(
"localRowIdx"=>$rowIdx++,
"localaccountkey"=>hcu_encrypturl($acctID, $HB_ENV[
'historyHash']),
"localaccounttype"=>$disp_key), $acctRow);
690 if (!HCU_array_key_exists($disp_key, $displayConfiguredCols)) {
691 $displayConfiguredCols[$disp_key] = array_intersect(array_keys($acctRow), array_keys($Disp_Balances_ary[$disp_key][
'fields']));
708 [
id^=
"hcuTable"] .k-grid-header .k-header {
716 vertical-align: middle;
719 #slide-in-content-close { 724 #slide-in-content-close a { 725 margin: 0 10px 10px 0;
726 text-decoration: underline;
731 #slide-in-content-close a:visited, 732 #slide-in-content-close a:hover { 733 text-decoration: none;
740 background-color: #FAFAFA;
742 box-shadow: 0px 0px 2px 0px #999 inset;
743 -webkit-box-shadow: 0px 0px 2px 0px #999 inset;
745 .slide-in-handle-icon {
750 width: calc(100% - 10px);
757 text-decoration: none;
762 #slide-in-handle-content { 764 margin: 0px 1px 1px 1px;
767 text-decoration: underline;
769 #slide-in-share + #formStatus + #acctList { 774 color: rgba(0, 0, 0, .54);
776 .local-notify-spacer {
779 @media (max-width: 767px) {
787 #body-wrapper.no-show-info #slide-in-handle, #body-wrapper.no-show-info #slide-in-share { 791 #homecuBannerArea + #body-wrapper #slide-in-handle, #homecuBannerArea + #body-wrapper #slide-in-share { 795 #homecuBannerArea + #body-wrapper.no-show-info #slide-in-handle, #homecuBannerArea + #body-wrapper.no-show-info #slide-in-share { 801 var hcuDataConfig = <?php echo HCU_JsonEncode($displayConfiguredCols); ?>;
802 var hcuDatadp = <?php echo HCU_JsonEncode(HCU_array_key_value(
'dp', $displayJsonData)); ?>;
803 var hcuDatacc = <?php echo HCU_JsonEncode(HCU_array_key_value(
'cc', $displayJsonData)); ?>;
804 var hcuDataln = <?php echo HCU_JsonEncode(HCU_array_key_value(
'ln', $displayJsonData)); ?>;
816 var hcuDataPend = <?php
817 $pendingItemsData = Array();
818 foreach (array_keys($Disp_Balances_ary) as $acctType) {
819 if (HCU_array_key_exists($acctType, $Get_Balances_ary)) {
820 foreach (array_keys($Get_Balances_ary[$acctType]) as $acctKey) {
821 $getHPRHistoryAry = Get_AccountHPRDetails($dbh, $HB_ENV, $MC, $acctKey);
822 if (count($getHPRHistoryAry[
'holds']) > 0 || count($getHPRHistoryAry[
'pending']) > 0 || count($getHPRHistoryAry[
'requests']) > 0 ) {
823 foreach($getHPRHistoryAry as $pendType => $pendItems) {
824 if (count($pendItems) > 0) {
825 foreach ($pendItems as $pendDetail) {
826 if ($pendType ==
"holds") {
827 $listDate = $pendDetail[
'postdate'];
829 $listDate =
"Pending";
831 $pendingItemsData[hcu_encrypturl($acctKey, $HB_ENV[
'historyHash'])][] = Array(
"pendDate" => $listDate,
"pendDesc" => hcu_displayHtml($pendDetail[
'description']),
"pendAmt" => $pendDetail[
'amount']);
840 print HCU_JsonEncode($pendingItemsData);
843 $(document).ready(
function(){
846 $(document).on(
'click',
'.k-overlay',
function() {
847 var wnd = $(
"#detailsPopUp").data(
"kendoWindow");
848 if (wnd !== undefined) {
859 foreach(array_keys($Disp_Balances_ary) as $acctType) {
861 if (HCU_array_key_exists($acctType, $displayJsonData)) {
866 function htmlUnescape(str){
868 .replace(/"/g,
'"')
869 .replace(/'/g,
"'")
870 .replace(/</g,
'<')
871 .replace(/>/g,
'>')
872 .replace(/&/g,
'&');
876 $(
'#hcuMobileTable<?php echo $acctType; ?>').kendoGrid({
878 data: hcuData<?php echo $acctType; ?>
880 rowTemplate: kendo.template($(
'#hcuDataMobileRow').html()),
881 altRowTemplate: kendo.template($(
'#hcuDataMobileRow').html()),
882 change: onChangeMobile,
886 dataBound:
function () {
888 var titleActivity =
"<?php echo $MC->msg("See Activity For
", HCU_DISPLAY_AS_JS); ?>";
889 var titleDetails =
"<?php echo $MC->msg("Open
for Details
", HCU_DISPLAY_AS_JS); ?>";
890 $(
'#hcuMobileTable<?php echo $acctType;?> table tbody tr').each(
function(i) {
893 var grid = $(
"#hcuMobileTable<?php echo $acctType;?>").data(
"kendoGrid");
894 var gridRow = $(
this);
895 var gridItem = grid.dataItem(gridRow);
896 var desc = htmlUnescape(gridItem.displaydesc);
898 if ( gridItem.restrictions !=
"L" ) {
900 $(
this).find(
"td").each(
function(j) {
902 $(
this).attr(
"title", titleDetails +
" on " + desc);
903 $(
this).find(
"a").attr(
"title", titleDetails).css(
"cursor",
"pointer");
905 $(
this).attr(
"title", titleActivity +
" " + desc);
914 field:
"displaydesc",
918 command: { name:
"showDetailsMobile", click: showDetailsMobile }, title:
" ", width: 50
921 }).data(
"kendoGrid");
924 $(
'#hcuTable<?php echo $acctType;?>').kendoGrid({
926 data: hcuData<?php echo $acctType; ?>,
932 $dsFieldsList = Array();
933 foreach ($Disp_Balances_ary[$acctType][
'fields'] as $fieldInfo) {
936 switch ($fieldInfo[
'disp_format']) {
937 case 'FormatCurrency':
938 case 'FormatPercent':
939 $fieldFormat =
'number';
942 case 'FormatDatePast':
943 $fieldFormat =
'date';
946 $fieldFormat =
'string';
948 $dsFieldsList[] =
"{$fieldInfo['disp_fieldname']}: {type: \"{$fieldFormat}\"}";
950 print implode(
",", $dsFieldsList);
956 {field:
"displaydesc", aggregate:
"count"},
957 {field:
"currentbal", aggregate:
"sum"},
958 {field:
"availablebal", aggregate:
"sum"}
965 rowTemplate: kendo.template($(
'#hcuDataRow').html()),
968 dataBound:
function () {
969 $(
'#hcuTable<?php echo $acctType;?> table tbody tr').hover(
971 $(
this).toggleClass(
"k-state-hover");
975 var titleActivity =
"<?php echo $MC->msg("See Activity For
", HCU_DISPLAY_AS_JS); ?>";
976 var titleDetails =
"<?php echo $MC->msg("Open
for Details
", HCU_DISPLAY_AS_JS); ?>";
977 $(
'#hcuTable<?php echo $acctType;?> table tbody tr').each(
function(i) {
980 var grid = $(
"#hcuTable<?php echo $acctType;?>").data(
"kendoGrid");
981 var gridRow = $(
this);
982 var gridItem = grid.dataItem(gridRow);
983 var desc = htmlUnescape(gridItem.displaydesc);
985 if ( gridItem.restrictions !=
"L" ) {
987 $(
this).find(
"td").each(
function(j) {
989 $(
this).attr(
"title", titleDetails +
" on " + desc);
990 $(
this).find(
"a").attr(
"title", titleDetails).css(
"cursor",
"pointer");
992 $(
this).attr(
"title", titleActivity +
" " + desc);
1000 detailInit: showDetailsDesktop,
1001 detailExpand: expandRow,
1002 detailCollapse: collapseRow,
1005 $dsFieldsList = Array();
1006 foreach ($Disp_Balances_ary[$acctType][
'fields'] as $fieldKey => $fieldInfo) {
1007 if (array_search($fieldKey, $displayConfiguredCols[$acctType])) {
1014 $columnHdrAlign =
"left";
1015 switch ($fieldInfo[
'disp_format']) {
1016 case 'FormatCurrency':
1017 $columnFormat =
"{0:c}";
1018 if ($acctType ===
'ln') {
1019 $nullText = $MC->msg(
"Call Us", HCU_DISPLAY_AS_JS);
1020 $columnTempl =
"#if ({$fieldInfo['disp_fieldname']} === null) {##if ('{$fieldInfo['disp_fieldname']}' === 'tenday' && type === '18') {##='$nullText'##} else {##='N/A'##}##} else {##=kendo.toString({$fieldInfo['disp_fieldname']}, 'c')##}#";
1021 }
else if ($acctType ===
'cc') {
1022 $nullText = $MC->msg(
"Call Us", HCU_DISPLAY_AS_JS);
1023 $columnTempl =
"#if ({$fieldInfo['disp_fieldname']} === null) {##if ('{$fieldInfo['disp_fieldname']}' === 'available' && " . (($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_CALL_CCAVAIL")) == GetFlagsetValue(
"CU2_CALL_CCAVAIL") ?
'true' :
'false') .
") {##='$nullText'##} else {##='N/A'##}##} else {##=kendo.toString({$fieldInfo['disp_fieldname']}, 'c')##}#";
1025 $columnTempl =
"#= ({$fieldInfo['disp_fieldname']} === null ? 'N/A' : kendo.toString({$fieldInfo['disp_fieldname']}, 'c'))#";
1027 $columnHdrAlign =
"right";
1029 case 'FormatPercent':
1030 $columnFormat =
"{0:n}";
1031 $columnTempl =
"#= ({$fieldInfo['disp_fieldname']} === null ? 'N/A' : kendo.toString({$fieldInfo['disp_fieldname']}, 'n') + '%')#";
1032 $columnHdrAlign =
"right";
1035 $columnTempl =
"#= ({$fieldInfo['disp_fieldname']} === null ? 'N/A' : kendo.toString({$fieldInfo['disp_fieldname']}, 'MM/dd/yyyy'))#";
1036 $columnHdrAlign =
"right";
1037 case 'FormatDatePast':
1038 $columnFormat =
"{0:MM/dd/yyyy}";
1039 $columnTempl =
"#if (pastdue !== null) {##if (pastdue === '1' && {$fieldInfo['disp_fieldname']} !== null && {$fieldInfo['disp_fieldname']} !== 'N/A') {#<span class='acct-past-due k-icon k-i-note'></span> #}##}##if ({$fieldInfo['disp_fieldname']} !== null) {##=kendo.toString({$fieldInfo['disp_fieldname']}, 'MM/dd/yyyy')##} else {##='N/A'##}#";
1040 $columnHdrAlign =
"right";
1046 if ($fieldKey ==
'displaydesc') {
1047 $columnTempl =
"#: (displayname.length > 0) ? displayname : displaydesc #";
1049 $columnTempl =
"#: {$fieldInfo['disp_fieldname']}#";
1055 if ( isset( $fieldInfo[
'disp_footerTmpl'] ) && ($fieldInfo[
'disp_footerTmpl'] !=
'') ) {
1056 switch ($fieldInfo[
'disp_footerTmpl']) {
1058 $footerTmpl =
"(#= kendo.toString(count, '0')#) ". $MC->msg(
'Accounts', HCU_DISPLAY_AS_JS) .
"";
1061 $footerTmpl =
"<span class='#= sum < 0 ? \'currency_negative\' : \'currency_positive\' #'>#= (isNaN(sum) ? '' : kendo.toString(sum, 'c')) #</span>";
1066 $dsFieldsList[] =
"{ 1067 field: \"{$fieldInfo['disp_fieldname']}\", 1068 title: \"" . ($fieldInfo[
'disp_title']) .
"\", 1069 format: \"" . $columnFormat .
"\", 1070 template: \"" . $columnTempl .
"\", 1071 footerTemplate: \"" . $footerTmpl .
"\", 1073 style: \"text-align: " . $columnHdrAlign .
"\" 1076 style: \"text-align: " . $columnHdrAlign .
"\" 1078 hidden: " . ($fieldInfo[
'disp_OnBalances'] ===
true ?
"false" :
"true") .
", 1079 minScreenWidth: {$fieldInfo['disp_OnWidth']} 1083 print implode(
",", $dsFieldsList);
1093 function showDetailsDesktop (e) {
1095 var data_item = e.data;
1098 var detail_content = generateDetailsContent(data_item);
1101 var window_content = generateDetailsPending(detail_content, data_item);
1104 window_content = $(window_content);
1105 window_content.appendTo(e.detailCell);
1108 function showDetailsMobile(e) {
1112 var data_item = this.dataItem($(e.currentTarget).closest(
"tr"));
1115 var wnd = $(
"#detailsPopUp").data(
"kendoWindow");
1118 wnd = $(
"#detailsPopUp").kendoWindow({
1123 }).data(
"kendoWindow");
1127 var detail_content = generateDetailsContent(data_item);
1130 var window_content = generateDetailsPending(detail_content, data_item);
1133 $(wnd.wrapper).find(
".k-window-title").html(data_item.displaydesc);
1135 wnd.content(window_content);
1140 function generateDetailsContent(template_data) {
1142 var
template = kendo.template($(
'#detailTemplate').html());
1143 var template_content =
template(template_data);
1146 return template_content;
1149 function generateDetailsPending(details_content, data_item) {
1151 if (hcuDataPend[data_item.localaccountkey] !== undefined) {
1154 var pending_content = $(details_content);
1155 var pending_container = $(
"<div id='hcuPendingGrid'></div>");
1156 var pending_header = $(
"<span id='hcuPendingHdr'><?php echo $MC->msg("Pending Transactions
", HCU_DISPLAY_AS_JS); ?></span>");
1159 pending_header.appendTo(pending_content);
1162 pending_container.kendoGrid({
1164 data: hcuDataPend[data_item.localaccountkey],
1182 {field:
"pendDesc", aggregate:
"count"},
1183 {field:
"pendAmt", aggregate:
"sum"}
1192 title:
"<?php echo $MC->msg('Date', HCU_DISPLAY_AS_JS); ?>",
1195 style:
"text-align: left;" 1203 title:
"<?php echo $MC->msg('Description', HCU_DISPLAY_AS_JS); ?>",
1205 footerTemplate:
" #= (count == 1 ? '' : kendo.toString(count, '0') + ' <?php echo $MC->msg('Pending Transactions', HCU_DISPLAY_AS_JS); ?>' ) # ",
1207 style:
"text-align: left;" 1215 title:
"<?php echo $MC->msg('Amount', HCU_DISPLAY_AS_JS); ?>",
1218 footerTemplate:
" <div style='text-align:right;'>#= (isNaN(sum) ? '' : (kendo.toString(sum, 'C'))) #</div>",
1220 style:
"text-align: right;" 1223 style:
"text-align: right;",
1228 dataBound:
function(e) {
1229 $(this.element).find(
".k-grid-header").hide();
1230 $(this.element).find(
".k-grid-footer").hide();
1235 pending_container.appendTo(pending_content);
1238 return pending_content;
1242 return details_content;
1248 function onChangeMobile(e) {
1251 var cell = this.select();
1252 var cell_index = cell.index();
1254 if (cell_index == 0) {
1255 var data_source = this.dataSource;
1256 var data_table_id = cell.closest(
'table').closest(
'div')[0].id;
1257 var data_item = data_source.view()[cell.closest(
"tr").index(
'#' + data_table_id +
' .k-master-row')];
1260 gotoHistoryTransactions(data_item);
1264 $(this.select()).removeClass(
'k-state-selected');
1268 function onChange(e) {
1272 var cell = this.select();
1273 var cell_index = cell.index();
1276 if (cell_index != 0) {
1278 var data_source = this.dataSource;
1279 var data_table = cell.closest(
'table');
1280 var data_table_id = data_table.closest(
'div')[0].id;
1281 var data_item = data_source.view()[cell.closest(
"tr").index(
'#' + data_table_id +
' .k-master-row')];
1284 gotoHistoryTransactions(data_item);
1287 $(this.select()).removeClass(
'k-state-selected');
1291 function expandRow(e) {
1293 if (expandedRow !== undefined && expandedRow !== e.masterRow[0]) {
1301 var grid = $(expandedRow.closest(
'[id^=hcuTable]')).data(
'kendoGrid')
1302 grid.collapseRow(expandedRow);
1304 expandedRow = e.masterRow;
1305 $(e.masterRow).addClass(
'k-state-selected');
1307 function collapseRow(e) {
1308 if (expandedRow !== undefined) {
1309 $(expandedRow).removeClass(
'k-state-selected');
1310 $removeRow = ($(expandedRow)[0].nextElementSibling ? $(expandedRow)[0].nextElementSibling : $(expandedRow)[0].nextSibling);
1312 $(expandedRow)[0].parentNode.removeChild($removeRow);
1315 expandedRow = undefined;
1319 homecuTooltip.reset();
1320 homecuTooltip.custom.content =
"<?php echo $MC->msg('Payment Past Due', HCU_DISPLAY_AS_JS); ?>";
1321 $(
'.acct-past-due').kendoTooltip(homecuTooltip.custom);
1322 homecuTooltip.custom.filter =
'tr.k-master-row td';
1323 homecuTooltip.custom.showAfter = 2000;
1324 $(
'[id^=hcuTable].hcu-activity').kendoTooltip(homecuTooltip);
1326 $(
'[id^="hcuTable"] table tbody tr td a').hover(
function() {
1327 $(
this).attr(
'title',
'');
1330 $(
".local-sync-tooltip").kendoTooltip({
1337 function datarowHistoryLink(acctGrid, dataRow) {
1340 var selGrid = acctGrid.data(
'kendoGrid'),
1341 dataSource = selGrid.dataSource,
1342 dataItem = dataSource.data()[dataRow];
1344 gotoHistoryTransactions(dataItem);
1346 window.alert(
'<?php echo $MC->msg('Error
', HCU_DISPLAY_AS_JS); ?>');
1352 function gotoHistoryTransactions(dataItem) {
1356 if (dataItem.view_transactions) {
1357 if ((dataItem.localaccounttype ===
'cc' && (dataItem.hisinfo !==
'' && dataItem.hisinfo !==
'HomeCU')) || (dataItem.localaccounttype ===
'ln' && dataItem.hisinfo !==
'')) {
1358 <?php
if (!$serviceViewFromCUAdmin): ?>
1359 window.open(dataItem.hisinfo);
1361 }
else if (dataItem.localaccounttype ===
'cc' && dataItem.hisinfo ===
'') {
1364 ShowWaitWindow(
'Loading Data');
1365 <?php
if (!$serviceViewFromCUAdmin): ?>
1366 var histHref =
"<?php echo "{$HB_ENV[
'loginpath']}/hcuHistory.prg?{$HB_ENV[
'cuquery']}&a=
"?>" + dataItem.localaccountkey;
1368 var histHref =
"<?php echo "{$menu_link}?ft={$scriptFt}&cmh=
" . urlencode($currentMbrHash) . "&a=
"?>" + dataItem.localaccountkey;
1373 window.document.location = histHref;
1378 window.alert(
'<?php echo $MC->msg('Error
', HCU_DISPLAY_AS_JS); ?>');
1383 function GetSyncTitle(pType, pAmt, pDate) {
1388 haystack =
'<?php echo $MC->msg('Account Available Out Of Sync
'); ?>';
1391 haystack =
'<?php echo $MC->msg('Account Balance Out Of Sync
'); ?>';
1395 if (haystack !==
'') {
1397 title = haystack.replace(
'#amount#', pAmt);
1399 title = title.replace(
'#as_of#', pDate );
1406 <div
id=
"details"></div>
1407 <style type=
"text/css">
1409 .local-sync-tooltip, .local-locked {
1424 border: 1px solid #bbb;
1429 #details-container h2 1434 #details-container em 1439 #details-container dt 1445 #hcuTabledp tr.k-detail-row, 1446 #hcuTableln tr.k-detail-row, 1447 #hcuTablecc tr.k-detail-row { 1448 background: transparent;
1451 #hcuTabledp .expandFactor {visibility: visible;} 1452 #hcuTabledp .smallFactor {visibility: hidden;} 1454 #survey-lines .row:nth-child(odd) { 1455 background: #DDDDDD;
1460 #survey-lines .row:nth-child(even) { 1461 background: #FFFFFF;
1466 #survey-lines label { 1467 font-weight: normal;
1471 #survey-lines .radio { 1479 @media (min-width: 768px) {
1480 .survey-button-right {
1490 #summary-info .summary-row:hover { 1491 background-color: #eaeaea;
1493 #summary-info .summary-row { 1496 #summary-info .summary-desc { 1501 border-bottom: 1px solid #ccc;
1503 #summary-info .summary-value { 1507 border-bottom: 1px solid #ccc;
1509 .summary-value .summary-notice,
1510 .summary-desc .summary-notice {
1517 .summary-data-notify {
1521 .account_cell_desc {
1528 .account_cell_value {
1535 @media only screen and (max-width: 765px) {
1537 display: none !important;
1541 @media only screen and (min-width: 767px) {
1543 display: none !important;
1548 .no-print { display: none !important; }
1551 @media only screen and (max-width: 500px) {
1552 .account_cell_desc {
1557 .account_cell_value {
1564 outline: 2px solid #5E9ED6;
1567 .summary-row:focus {
1568 outline: 2px solid #5E9ED6;
1571 #hcuPendingGrid tr:focus { 1572 outline: 2px solid #5E9ED6;
1575 <?php
if ($showEmbedMsg !=
''): ?>
1582 <script type=
"text/x-kendo-template" id=
"detailTemplate">
1583 <div
id=
"details-container" class=
"">
1584 <div
id=
'summary-info' tabindex=
"0">
1585 # if ( data.restrictions == "R" ) { # 1586 <span
class=
"local-locked fa fa-flag-o"></span> <?php echo $MC->msg(
'Account Readonly', HCU_DISPLAY_AS_JS); ?>
1589 # if ( data.restrictions == "L" ) { # 1590 <span
class=
"local-locked fa fa-lock"></span> <?php echo $MC->msg(
'Account Locked', HCU_DISPLAY_AS_JS); ?>
1591 # } else if (data.localaccounttype == 'dp') { # 1592 <?php
if (is_array(HCU_array_key_value(
'dp', $displayConfiguredCols))): ?>
1593 <?php
if (array_search(
'description', $displayConfiguredCols[
'dp'])): ?>
1594 <div
class=
'summary-row' tabindex=
"0">
1595 <div
class=
'summary-desc'><?php echo $MC->msg(
'Description', HCU_DISPLAY_AS_JS); ?></div>
1596 <div
class=
'summary-value'>#= description #</div>
1599 <?php
if (array_search(
'currentbal', $displayConfiguredCols[
'dp'])): ?>
1600 <div
class=
'summary-row' tabindex=
"0">
1601 <div
class=
'summary-desc'><?php echo $MC->msg(
'Current Bal', HCU_DISPLAY_AS_JS); ?></div>
1602 <div
class=
'summary-value'>
1603 # if (data.out_of_sync) { # 1604 # var balanceTitle = GetSyncTitle('current', kendo.format("{0:c}", parseFloat(currentbal)), as_of_date); # 1605 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" ></span> #= balanceTitle #
1607 #= kendo.format("{0:c}", parseFloat(currentbal)) # 1612 <?php
if (array_search(
'availablebal', $displayConfiguredCols[
'dp'])): ?>
1613 <div
class=
'summary-row' tabindex=
"0">
1614 <div
class=
'summary-desc'><?php echo $MC->msg(
'Available', HCU_DISPLAY_AS_JS); ?></div>
1615 <div
class=
'summary-value'>
1616 # if (out_of_sync) { 1617 var balanceTitle = GetSyncTitle(
'available', kendo.format(
"{0:c}", parseFloat(availablebal)), as_of_date);
1619 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" ></span> #= balanceTitle #
1621 #= kendo.format("{0:c}", parseFloat(availablebal)) # 1626 <?php
if (array_search(
'ytdinterest', $displayConfiguredCols[
'dp'])): ?>
1627 <div
class=
'summary-row' tabindex=
"0">
1628 <div
class=
'summary-desc'><?php echo $MC->msg(
'YTD Interest', HCU_DISPLAY_AS_JS); ?></div>
1629 <div
class=
'summary-value'>#= (ytdinterest ===
null ?
'N/A' : kendo.toString(parseFloat(ytdinterest),
'c')) #</div>
1632 <?php
if (array_search(
'lastyrinterest', $displayConfiguredCols[
'dp'])): ?>
1633 <div
class=
'summary-row' tabindex=
"0">
1634 <div
class=
'summary-desc'><?php echo $MC->msg(
'Prior Yr Interest', HCU_DISPLAY_AS_JS); ?></div>
1635 <div
class=
'summary-value'>#= (lastyrinterest ===
null ?
'N/A' : kendo.toString(parseFloat(lastyrinterest),
'c')) #</div>
1640 # } else if (data.localaccounttype == 'ln') { # 1642 <?php
if (is_array(HCU_array_key_value(
'ln', $displayConfiguredCols))): ?>
1643 <?php
if (array_search(
'description', $displayConfiguredCols[
'ln'])): ?>
1644 <div
class=
'summary-row' tabindex=
"0">
1645 <div
class=
'summary-desc'><?php echo $MC->msg(
'Description', HCU_DISPLAY_AS_JS); ?></div>
1646 <div
class=
'summary-value'>#= description #</div>
1649 <?php
if (array_search(
'currentbal', $displayConfiguredCols[
'ln'])): ?>
1650 <div
class=
'summary-row' tabindex=
"0">
1651 <div
class=
'summary-desc'><?php echo $MC->msg(
'Current Bal', HCU_DISPLAY_AS_JS); ?></div>
1652 <div
class=
'summary-value'>
1653 # if (data.out_of_sync) { 1654 var balanceTitle = GetSyncTitle(
'current', kendo.format(
"{0:c}", parseFloat(currentbal)), as_of_date);
1656 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" ></span> #= balanceTitle #
1658 #= kendo.format("{0:c}", parseFloat(currentbal)) # 1663 <?php
if (array_search(
'paymentamount', $displayConfiguredCols[
'ln'])): ?>
1664 <div
class=
'summary-row' tabindex=
"0">
1665 <div
class=
'summary-desc'><?php echo $MC->msg(
'Payment', HCU_DISPLAY_AS_JS); ?></div>
1666 <div
class=
'summary-value'>#= (paymentamount ===
null ?
'N/A' : kendo.toString(parseFloat(paymentamount),
'c')) #</div>
1669 <?php
if (array_search(
'nextduedate', $displayConfiguredCols[
'ln'])): ?>
1670 #
if (data.nextduedate) { #
1671 <div
class=
'summary-row' tabindex=
"0">
1672 <div
class=
'summary-desc'>
1673 <?php echo $MC->msg(
'Next Due', HCU_DISPLAY_AS_JS); ?>
1674 # if (data.pastdue === '1' && (nextduedate !== null)) { # 1675 <span
class=
"summary-data-notify">
1676 <?php echo $MC->msg(
'Payment Past Due', HCU_DISPLAY_AS_JS); ?>
1680 <div
class=
'summary-value #= (data.pastdue === '1
' && (nextduedate !== null && nextduedate !== 'N/A
') ? 'summary-notice
' : '') #'>#= (nextduedate ===
null ?
'N/A' : kendo.toString(nextduedate,
'MM/dd/yyyy')) #</div>
1685 <?php
if (array_search(
'tenday', $displayConfiguredCols[
'ln'])): ?>
1686 <div
class=
'summary-row' tabindex=
"0">
1687 <div
class=
'summary-desc'><?php echo $MC->msg(
'Payoff', HCU_DISPLAY_AS_JS); ?></div>
1688 <div
class=
'summary-value'></div>
1690 <?php
if (array_search(
'payoff', $displayConfiguredCols[
'ln'])): ?>
1691 <div
class=
'summary-row' tabindex=
"0">
1692 <div
class=
'summary-desc' style=
''><?php echo $MC->msg(
"Todays Payoff", HCU_DISPLAY_AS_JS); ?></div>
1693 <div
class=
'summary-value'>#= (payoff ===
null ?
'N/A' : kendo.toString(parseFloat(payoff),
'c')) #</div>
1696 <?php
if (array_search(
'tenday', $displayConfiguredCols[
'ln'])): ?>
1697 <div
class=
'summary-row' tabindex=
"0">
1698 <div
class=
'summary-desc'><?php echo $MC->msg(
'Ten-days', HCU_DISPLAY_AS_JS) .
' ' . $MC->msg(
'Payoff', HCU_DISPLAY_AS_JS); ?></div>
1699 <div
class=
'summary-value'>#= (tenday ===
null ?
'N/A' : kendo.toString(parseFloat(tenday),
'c')) #</div>
1703 <?php
if (array_search(
'payoff', $displayConfiguredCols[
'ln'])): ?>
1704 <div
class=
'summary-row' tabindex=
"0">
1705 <div
class=
'summary-desc'><?php echo $MC->msg(
'Payoff', HCU_DISPLAY_AS_JS); ?></div>
1706 <div
class=
'summary-value'>#= (payoff ===
null ?
'N/A' : (isNaN(payoff) ? kendo.toString(payoff) : kendo.toString(parseFloat(payoff),
'c'))) #</div>
1710 <?php
if (array_search(
'interestrate', $displayConfiguredCols[
'ln'])): ?>
1711 <div
class=
'summary-row' tabindex=
"0">
1712 <div
class=
'summary-desc'><?php echo $MC->msg(
'Interest Rate', HCU_DISPLAY_AS_JS); ?></div>
1713 <div
class=
'summary-value'>#= (interestrate ===
null ?
'N/A' : kendo.toString(interestrate,
'n') +
'%') #</div>
1716 <?php
if (array_search(
'creditlimit', $displayConfiguredCols[
'ln'])): ?>
1717 #
if (creditlimit > 0) { #
1718 <div
class=
'summary-row' tabindex=
"0">
1719 <div
class=
'summary-desc'><?php echo $MC->msg(
'Limit', HCU_DISPLAY_AS_JS); ?></div>
1720 <div
class=
'summary-value'>#= (creditlimit ===
null ?
'N/A' : kendo.toString(parseFloat(creditlimit),
'c')) #</div>
1724 <?php
if (($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE'))): ?>
1725 #
if (creditlimit > 0) { #
1726 <div
class=
'summary-row' tabindex=
"0">
1727 <div
class=
'summary-desc'><?php echo $MC->msg(
'Available', HCU_DISPLAY_AS_JS); ?></div>
1728 <div
class=
'summary-value'><!--#= (availablebal ===
null ?
'N/A' : kendo.toString(availablebal,
'c')) #-->
1729 #
if (data.out_of_sync) {
1730 var balanceTitle = GetSyncTitle(
'available', kendo.format(
"{0:c}", parseFloat(availablebal)), as_of_date);
1732 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" ></span> #= balanceTitle #
1734 #= isNaN(availablebal) ? availablebal : kendo.format("{0:c}", parseFloat(availablebal)) # 1740 <?php
if (array_search(
'ytdinterest', $displayConfiguredCols[
'ln'])): ?>
1741 <div
class=
'summary-row' tabindex=
"0">
1742 <div
class=
'summary-desc'><?php echo $MC->msg(
'YTD Interest', HCU_DISPLAY_AS_JS); ?></div>
1743 <div
class=
'summary-value'>#= (ytdinterest ===
null ?
'N/A' : kendo.toString(parseFloat(ytdinterest),
'c')) #</div>
1746 <?php
if (array_search(
'lastyrinterest', $displayConfiguredCols[
'ln'])): ?>
1747 <div
class=
'summary-row' tabindex=
"0">
1748 <div
class=
'summary-desc'><?php echo $MC->msg(
'Prior Yr Interest', HCU_DISPLAY_AS_JS); ?></div>
1749 <div
class=
'summary-value'>#= (lastyrinterest ===
null ?
'N/A' : kendo.toString(parseFloat(lastyrinterest),
'c')) #</div>
1754 # } else if (data.localaccounttype == 'cc') { # 1756 <?php
if (is_array(HCU_array_key_value(
'cc', $displayConfiguredCols))): ?>
1757 <?php
if (array_search(
'description', $displayConfiguredCols[
'cc'])): ?>
1758 <div
class=
'summary-row' tabindex=
"0">
1759 <div
class=
'summary-desc'><?php echo $MC->msg(
'Description', HCU_DISPLAY_AS_JS); ?></div>
1760 <div
class=
'summary-value'>#= description #</div>
1763 <?php
if (array_search(
'currentbal', $displayConfiguredCols[
'cc'])): ?>
1764 <div
class=
'summary-row' tabindex=
"0">
1765 <div
class=
'summary-desc'><?php echo $MC->msg(
'Current Bal', HCU_DISPLAY_AS_JS); ?></div>
1766 <div
class=
'summary-value '>
1767 # if (data.out_of_sync) { 1768 var balanceTitle = GetSyncTitle(
'current', kendo.format(
"{0:c}", parseFloat(currentbal)), as_of_date);
1770 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" ></span> #= balanceTitle #
1772 #= kendo.format("{0:c}", parseFloat(currentbal)) # 1777 <?php
if (array_search(
'lastpaymentdate', $displayConfiguredCols[
'cc'])): ?>
1778 <div
class=
'summary-row' tabindex=
"0">
1779 <div
class=
'summary-desc'><?php echo $MC->msg(
'Last Paid', HCU_DISPLAY_AS_JS); ?></div>
1780 <div
class=
'summary-value'>#= (lastpaymentdate ===
null ?
'N/A' : kendo.toString(lastpaymentdate,
'MM/dd/yyyy')) #</div>
1783 <?php
if (array_search(
'paymentamount', $displayConfiguredCols[
'cc'])): ?>
1784 <div
class=
'summary-row' tabindex=
"0">
1785 <div
class=
'summary-desc'><?php echo $MC->msg(
'Min Due', HCU_DISPLAY_AS_JS); ?></div>
1786 <div
class=
'summary-value'>#= (paymentamount ===
null ?
'N/A' : kendo.toString(parseFloat(paymentamount),
'c')) #</div>
1789 <?php
if (array_search(
'nextduedate', $displayConfiguredCols[
'cc'])): ?>
1790 #
if (data.nextduedate) { #
1791 <div
class=
'summary-row' tabindex=
"0">
1792 <div
class=
'summary-desc'>
1793 <?php echo $MC->msg(
'Next Due', HCU_DISPLAY_AS_JS); ?>
1794 # if (data.pastdue === '1' && (nextduedate !== null)) { # 1795 <span
class=
"summary-data-notify">
1796 <?php echo $MC->msg(
'Payment Past Due', HCU_DISPLAY_AS_JS); ?>
1800 <div
class=
'summary-value #= (data.pastdue === '1
' && (nextduedate !== null && nextduedate !== 'N/A
') ? 'summary-notice
' : '') #'>#= (nextduedate ===
null ?
'N/A' : kendo.toString(nextduedate,
'MM/dd/yyyy')) #</div>
1804 <?php
if (array_search(
'interestrate', $displayConfiguredCols[
'cc'])): ?>
1805 <div
class=
'summary-row' tabindex=
"0">
1806 <div
class=
'summary-desc'><?php echo $MC->msg(
'Interest Rate', HCU_DISPLAY_AS_JS); ?></div>
1807 <div
class=
'summary-value'>#= (interestrate ===
null ?
'N/A' : kendo.toString(interestrate,
'n') +
'%') #</div>
1810 <?php
if (array_search(
'creditlimit', $displayConfiguredCols[
'cc'])): ?>
1811 <div
class=
'summary-row' tabindex=
"0">
1812 <div
class=
'summary-desc'><?php echo $MC->msg(
'Limit', HCU_DISPLAY_AS_JS); ?></div>
1813 <div
class=
'summary-value'>#= (creditlimit ===
null ?
'N/A' : kendo.toString(parseFloat(creditlimit),
'c')) #</div>
1816 <?php
if (array_search(
'availablebal', $displayConfiguredCols[
'cc'])): ?>
1817 <div
class=
'summary-row' tabindex=
"0">
1818 <div
class=
'summary-desc'><?php echo $MC->msg(
'Available', HCU_DISPLAY_AS_JS); ?></div>
1819 <div
class=
'summary-value'><!--#= (availablebal ===
null ?
'N/A' : kendo.toString(availablebal,
'c')) #-->
1820 #
if (data.out_of_sync) {
1821 var balanceTitle = GetSyncTitle(
'available', kendo.format(
"{0:c}", parseFloat(availablebal)), as_of_date);
1823 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" ></span>#= balanceTitle #
1825 # if (isNaN(availablebal)) { # 1828 #= kendo.format("{0:c}", parseFloat(availablebal)) # 1834 <?php
if (array_search(
'ytdinterest', $displayConfiguredCols[
'cc'])): ?>
1835 <div
class=
'summary-row' tabindex=
"0">
1836 <div
class=
'summary-desc'><?php echo $MC->msg(
'YTD Interest', HCU_DISPLAY_AS_JS); ?></div>
1837 <div
class=
'summary-value'>#= (ytdinterest ===
null ?
'N/A' : kendo.toString(parseFloat(ytdinterest),
'c')) #</div>
1840 <?php
if (array_search(
'lastyrinterest', $displayConfiguredCols[
'cc'])): ?>
1841 <div
class=
'summary-row' tabindex=
"0">
1842 <div
class=
'summary-desc'><?php echo $MC->msg(
'Prior Yr Interest', HCU_DISPLAY_AS_JS); ?></div>
1843 <div
class=
'summary-value'>#= (lastyrinterest ===
null ?
'N/A' : kendo.toString(parseFloat(lastyrinterest),
'c')) #</div>
1855 <script type=
"text/x-kendo-template" id=
"hcuDataMobileRow">
1857 <tr
class=
'k-master-row' 1859 dms-acctd-
id=
'#: localaccountkey#' 1860 dms-
template=
'template#: localaccounttype#' 1861 style=
'cursor: pointer;' >
1863 # if ( data.restrictions == "L" ) { # 1864 <td style=
"cursor:default" tabindex=
"0">
1865 <div
class=
"account_cell_desc">
1866 <span>#= displaydesc #</span>
1868 <div
class=
"account_cell_value">
1869 <div><?php echo $MC->msg(
'Account Locked'); ?></div>
1873 <td title=
'<?php echo $MC->msg('Open
for Details
', HCU_DISPLAY_AS_JS); ?>' align=
"center" style=
"padding: 0;" tabindex=
"0">
1874 <a style=
"display: block; padding: 35% 0; color: black;" class=
"k-grid-showDetailsMobile">
1875 <span
class=
"fa fa-2x fa-lock local-homecu-info local-locked" style=
"" aria-hidden=
"true" ></span>
1879 <td title=
'<?php echo $MC->msg("See Activity For", HCU_DISPLAY_AS_JS) ?>' tabindex=
"0">
1880 <div
class=
"account_cell_desc">
1881 <span>#= displaydesc #</span>
1883 # if (!(data.localaccounttype == 'cc' && <?php echo HCU_JsonEncode(($HB_ENV['Fset2'] & GetFlagsetValue("CU2_CC18NOINFO")) == GetFlagsetValue("CU2_CC18NOINFO")); ?>)) { # 1884 <div
class=
"account_cell_value">
1885 <div><?php echo $MC->msg(
'Current'); ?>:
1886 # if (data.out_of_sync) { 1887 var balanceTitle = GetSyncTitle(
'current', kendo.format(
"{0:c}", parseFloat(currentbal)), as_of_date);
1889 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" title=
"#= balanceTitle #" ></span>
1891 #= kendo.format("{0:c}", parseFloat(currentbal)) # 1895 # if (data.availablebal) { # 1896 <div><?php echo $MC->msg(
'Available'); ?>:
1897 # if (data.out_of_sync) { 1898 var balanceTitle = GetSyncTitle(
'available', (data.availablebal) ? kendo.format(
"{0:c}", parseFloat(availablebal)) :
'N/A', as_of_date);
1900 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" title=
"#= balanceTitle #" ></span>
1902 #= (data.availablebal) ? (isNaN(availablebal) ? availablebal : kendo.format("{0:c}", parseFloat(availablebal))) : 'N/A' # 1912 <td title=
'<?php echo $MC->msg('Open
for Details
', HCU_DISPLAY_AS_JS); ?>' align=
"center" style=
"padding: 0;" tabindex=
"0">
1913 <a style=
"display: block; padding: 35% 0; color: black;" class=
"k-grid-showDetailsMobile">
1914 # if ( data.restrictions == "R" ) { # 1915 <span
class=
"fa fa-2x fa-flag-o local-homecu-info local-locked" style=
"" aria-hidden=
"true"></span>
1917 <span
class=
"fa fa-2x fa-info-circle local-homecu-info" style=
"" aria-hidden=
"true"></span>
1928 <script type=
"text/x-kendo-template" id=
"hcuDataRow" >
1929 # if ( data.restrictions == "L" ) { # 1930 <tr
class=
'k-master-row' style=
'cursor:default'>
1932 <tr
class=
'k-master-row' data-uid=
'#= uid #' dms-acctd-
id=
'#: localaccountkey#' style=
'cursor: pointer;'>
1935 <td
class=
"k-hierarchy-cell" title=
"<?php echo $MC->msg('Open for Details', HCU_DISPLAY_AS_JS); ?>" >
1936 <a
class=
"k-icon k-i-expand" href=
"##" title=
"" style=
"cursor: pointer;"></a>
1939 # if ( data.restrictions == "L" ) { # 1940 <td role=
"gridcell" title=
"" style=
'text-align: left;' tabindex=
"0">#= displaydesc # <span
class=
"local-locked fa fa-lock"></span></td>
1941 # if (!(data.localaccounttype == 'cc' && <?php echo HCU_JsonEncode(($HB_ENV['Fset2'] & GetFlagsetValue("CU2_CC18NOINFO")) == GetFlagsetValue("CU2_CC18NOINFO")); ?>)) { # 1942 <td role=
"gridcell" style=
'text-align: right;' tabindex=
"0">N/A</td>
1943 # if (data.paymentamount !== undefined) { # 1946 <?php
if ($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE')) : ?>
1947 #
if (data.localaccounttype ==
'dp') { #
1948 <td role=
"gridcell" title=
"" style=
'text-align: right;' tabindex=
"0">N/A</td>
1951 <td style=
"display:none" role=
"gridcell" title=
"" tabindex=
"0">#= as_of_date #</td>
1954 <td role=
"gridcell" title=
"" style=
'text-align: left;' tabindex=
"0">#= displaydesc # #
if ( data.restrictions ==
"R" ) { # <span
class=
"local-locked fa fa-flag-o"></span> # } #</td>
1955 # if (!(data.localaccounttype == 'cc' && <?php echo HCU_JsonEncode(($HB_ENV['Fset2'] & GetFlagsetValue("CU2_CC18NOINFO")) == GetFlagsetValue("CU2_CC18NOINFO")); ?>)) { # 1956 <td role=
"gridcell" title=
"" style=
'text-align: right;' tabindex=
"0">
1957 # if (data.out_of_sync) { 1958 var balanceTitle = GetSyncTitle(
'current', kendo.format(
"{0:c}", parseFloat(currentbal)), as_of_date);
1960 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" title=
"#= balanceTitle #" ></span>
1962 <span
class=
"#= currentbal < 0 ? 'currency_negative' : 'currency_positive' #">#= kendo.format(
"{0:c}", currentbal) #</span>
1966 <!-- show available ?? -->
1968 <!-- cc/ln diff fieldname -->
1969 <!-- show available ?? -->
1970 #
if (data.paymentamount !== undefined) { #
1971 <td role=
"gridcell" title=
"" style=
'text-align: right;' tabindex=
"0">
1972 <span
class=
"#= data.paymentamount < 0 ? 'currency_negative' : 'currency_positive' #">#= kendo.format(
"{0:c}", data.paymentamount) #</span>
1975 <?php
if ($HB_ENV[
'Fset'] & GetFlagsetValue(
'CU_SHOWAVAILABLE')) : ?>
1976 # if (data.localaccounttype == 'dp') { # 1977 <td role=
"gridcell" title=
"" style=
'text-align: right;' tabindex=
"0">
1978 # if (data.availablebal !== null) { 1979 var availableTitle = GetSyncTitle(
'available', kendo.format(
"{0:c}", parseFloat(availablebal)), as_of_date);
1981 # if (data.out_of_sync) { # 1982 <span
class=
"local-sync-tooltip fa fa-exclamation-triangle" title=
"#= availableTitle #" ></span>
1984 <span
class=
"#= data.availablebal < 0 ? 'currency_negative' : 'currency_positive' #">#= kendo.format(
"{0:c}", data.availablebal) #</span>
1992 <td style=
"display:none" role=
"gridcell" title=
"" tabindex=
"0">#= as_of_date #</td>
1993 # if (data.localaccounttype !== 'dp') { # 1994 <td role=
"gridcell" title=
"" style=
'text-align: right;' tabindex=
"0">
1995 # if (data.nextduedate != null) { # 1996 <span
class=
'#= (data.pastdue == '1
' && (data.nextduedate != null && data.nextduedate != 'N/A
') ? 'summary-data-notify
' : '') #'>#= kendo.toString(data.nextduedate,
'MM/dd/yyyy' 1999 <span
class=
''>N/A</span>
2001 # if (data.pastdue === '1' && (data.nextduedate !== null)) { # 2002 <span
class=
"local-sync-tooltip fa fa-calendar" title=
"#= kendo.toString(data.nextduedate, 'MM/dd/yy') # - <?php echo $MC->msg('Payment Past Due', HCU_DISPLAY_AS_JS); ?>" ></span>
2012 foreach(array_keys($Disp_Balances_ary) as $acctType) {
2014 if (HCU_array_key_exists($acctType, $displayJsonData)) {
2016 <div style=
"margin: 0 15px;">
2018 <h4><?php echo $Disp_Balances_ary[$acctType][
'acct_title']; ?><?php
if($serviceViewFromCUAdmin) {echo
' (' . $HB_ENV[
'Cn'] .
')'; } ?></h4>
2021 <!-- MOBILE TABLES -->
2022 <div style=
"margin: 15px; font-size: 12px;" id=
"hcuMobileTable<?php echo $acctType; ?>" class=
"desktop-hide no-print <?php echo ($Disp_Balances_ary[$acctType]['acct_history'] ? 'hcu-activity' : 'hcu-no-activity'); ?>"></div>
2023 <!-- DESKTOP TABLES -->
2024 <div style=
"margin: 15px; font-size: 12px;" class=
"mobile-hide hcu-grid-style" id=
"hcuTable<?php echo $acctType; ?>" class=
"<?php echo ($Disp_Balances_ary[$acctType]['acct_history'] ? 'hcu-activity' : 'hcu-no-activity'); ?>"></div>
2030 <!-- HTML FOR DETAILS POP UP -->
2031 <!-- ONLY FOR XS DEVICEES -->
2032 <div
id=
"detailsPopUp" style=
"font-size: 12px;">
2043 if ($showEmbedMsg !=
'' || $initialPopup !=
''): ?>
2045 <?php
if ($showEmbedMsg !=
''): ?>
2046 var userInterrupt =
false;
2048 function showMsgInset() {
2050 setTimeout(
function() {
2051 if (!userInterrupt) {
2052 $(
'#slide-in-share').slideUp(
"slow");
2057 $(
"#slide-in-handle").click(
function(e) {
2059 userInterrupt =
true;
2062 if ($(
'#slide-in-share').is(
':hidden')) {
2064 $(
'#slide-in-share').slideDown(
'slow');
2067 $(
'#slide-in-share').slideUp(
"slow");
2071 $(
'#slide-in-content-close').click(
function(e) {
2073 userInterrupt =
true;
2074 $(
'#slide-in-share').slideUp(
'slow');
2077 $.post(
"<?php echo "{$HB_ENV[
'homebankingpath']}/hcuViewNotice.prg?{$HB_ENV[
'cuquery']}
" ?>",
"action=close_embedded");
2081 $(document).ready(
function() {
2082 <?php
if ($showEmbedMsg !=
''): ?>
2083 var showEmbedContent = <?php print ($showEmbedMsgContent !=
'' ? HCU_JsonEncode($showEmbedMsgContent) :
"''"); ?>;
2084 $(
'#slide-in-scroll').html(showEmbedContent);
2085 $(
'#formStatus').insertAfter($(
'#slide-in-share'));
2088 <?php echo $initialPopup; ?>
2093 <?php
if ($hasPromoPopup): ?>
2094 <?php
foreach ($noticePromoURL as $promoKey => $promoURL): ?>
2095 function showPromo<?php echo $promoKey; ?>() {
2096 ShowNotice(
'<?php echo $promoURL; ?>',
''<?php echo array_shift($nextPopupChain); ?>);
2098 <?php endforeach; ?>
2100 <?php
if ($hasSurveyPopup): ?>
2101 function showSurvey() {
2102 ShowNotice(
'<?php echo $noticeSurveyURL; ?>',
'<?php echo $MC->msg('Survey
', HCU_DISPLAY_AS_JS); ?>'<?php echo array_shift($nextPopupChain); ?>);
2105 <?php
if ($hasMktMsgPopup): ?>
2106 function showMktMsg() {
2107 ShowNotice(
'<?php echo $noticeMktMsgURL; ?>',
'<?php echo $HB_ENV['pname
']; ?> <?php echo $MC->msg("Notice", HCU_DISPLAY_AS_JS); ?>'<?php echo array_shift($nextPopupChain); ?>);
2117 if (!$serviceViewFromCUAdmin) {
2119 require_once(dirname(__FILE__) .
'/../includes/hcuPostContent.i');