14 $serviceShowInfo =
false;
15 $serviceLoadMenu =
false;
16 $serviceShowMenu =
false;
17 $serviceAllowReadonly =
true;
20 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
26 PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_BASIC);
32 $chome = $HB_ENV[
"chome"];
33 $Flang = $HB_ENV[
"Flang"];
39 $serviceSuppressBanner =
true;
40 require_once(dirname(__FILE__) .
'/../includes/hcuPreContent.i');
47 $Flang = (trim($Flang) ==
"" ?
"en_US" : trim($Flang));
49 if ( $HB_ENV[
'offline'] !=
"N" ) {
50 $thisPageErrors = $HB_ENV[
"offlinemsg"];
51 throw new Exception( HCU_JsonEncode( $thisPageErrors ) );
56 $loginPriorString =
"";
58 if ( HCU_array_key_value(
"Fplog", $HB_ENV) ) {
59 if ( $HB_ENV[
'Fplog'] ==
'None' ) {
62 $loginPriorTime = strtotime( $HB_ENV[
'Fplog'] );
63 $loginPriorString = date(
"D M d, Y h:ia", $loginPriorTime);
68 $loginFailString =
"";
70 if ( HCU_array_key_value(
"Fflog", $HB_ENV) ) {
71 if ( $HB_ENV[
'Fflog'] ==
'None' ) {
74 $loginFailTime = strtotime( $HB_ENV[
'Fflog'] );
75 $loginFailString = date(
"D M d, Y h:ia", $loginFailTime);
79 if ( $loginPriorString !=
'' && $loginFailString !=
'' ) {
81 if ( $loginFailTime >= $loginPriorTime ) {
82 $infoFailNotify =
true;
84 }
else if ( $loginFailString !=
'' ) {
85 $infoFailNotify =
true;
89 if ($HB_ENV[
'live']) {
90 $curPacketStatusAry = HCU_array_key_value(
'packetStatus', $HB_ENV);
94 if (in_array(HCU_array_key_value(
'status', $curPacketStatusAry), Array(
'999'))) {
95 $infoDataNotify =
true;
97 $suspendNotices =
true;
102 $lastUpdateString =
"None";
103 if ( HCU_array_key_value(
"lastupdate", $HB_ENV) ) {
104 $lastDataTime = strtotime( $HB_ENV[
'lastupdate'] );
105 $lastDataString = date(
"D M d, Y h:ia", $lastDataTime);
109 $infoIconNotify = ($infoDataNotify || $infoFailNotify);
112 if ($infoDataNotify) {
113 if ($HB_ENV[
'packetStatus'][
'status'] ==
'999') {
115 $displayLastDataMsg = <<< DATAMSG
116 {$MC->msg(
'Unable to load')}:
118 {$MC->msg(
'Credit Union responded')}:{$HB_ENV[
'packetStatus'][
'reason']} ({$HB_ENV[
'packetStatus'][
'status']})-->
120 {$MC->msg(
'Please try again later')}
123 $displayLastDataMsg = <<< DATAMSG
124 {$MC->msg(
'Credit Union not responding')}
128 $displayLastDataMsg = $HB_ENV[
'lastupdate'];
132 <div
class=
"container-fluid" style=
'font-size:12px;'>
133 <div
class=
"col-xs-12">
135 <div
class=
"form-group ">
136 <div
class=
" k-block <?php echo ($infoFailNotify ? 'hcu-warning-color' : ''); ?>">
137 <div
class=
"hcu-summary-block">
138 <div
class=
"summary-row">
139 <div
class=
"summary-desc">
140 <label
class=
"control-label"><?php echo $MC->msg(
'Failed Login'); ?></label>
142 <div
class=
"summary-value">
143 <p
class=
"form-control-static"><?php echo $loginFailString; ?></p>
149 <div
class=
"form-group ">
150 <div
class=
"k-block ">
151 <div
class=
"hcu-summary-block">
152 <div
class=
"summary-row">
153 <div
class=
"summary-desc">
154 <label
class=
"control-label"><?php echo $MC->msg(
'Last Login'); ?></label>
156 <div
class=
"summary-value">
157 <p
class=
"form-control-static"><?php echo $loginPriorString; ?></p>
163 <?php
if ($infoDataNotify || !$HB_ENV[
'live']): ?>
164 <div
class=
"form-group ">
165 <div
class=
" k-block <?php echo ($infoDataNotify ? 'hcu-warning-color' : ''); ?>">
166 <div
class=
"hcu-summary-block">
167 <div
class=
"summary-row">
168 <?php
if (!$HB_ENV[
'live']): ?>
169 <div
class=
"summary-desc">
170 <label
class=
"control-label"><?php echo $MC->msg(
'Account Status as of'); ?></label>
172 <div
class=
"summary-value">
173 <p
class=
"form-control-static"><?php echo $lastDataString; ?></p>
175 <?php elseif ($infoDataNotify): ?>
176 <div class=
"summary-value hcu-row-block">
177 <p class=
"form-control-static">
178 <?php echo $displayLastDataMsg; ?>
191 $(document).ready(
function() {
194 $(
"#main-container").css(
"min-height",
"0px");
195 $(
"#content-wrapper").css(
"height",
"auto");
196 $(
"#body-wrapper").css(
"height",
"auto");
204 }
catch (Exception $ex) {
206 $thisPageErrors = HCU_JsonDecode($ex->getMessage());
210 $serviceErrorCode =
'917';
211 $serviceErrorMsgs = $thisPageErrors;
213 require_once(dirname(__FILE__) .
'/../includes/hcuErrorPage.i');
218 require_once(dirname(__FILE__) .
'/../includes/hcuPostContent.i');