12 $serviceShowInfo =
true;
13 $serviceLoadMenu =
true;
14 $serviceShowMenu =
true;
15 $serviceLiveCheck =
true;
18 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
24 PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_BASIC);
28 $string= array(
"filter" => FILTER_SANITIZE_STRING);
29 $dms_ok = array(
'cu'=>$string,
'a'=>$string);
30 HCU_ImportVars($HB_ENV,
'HCUPOST', $dms_ok);
36 $acctTypes = Array(
"dp",
"ln",
"cc");
37 $acctRowId = HCU_array_key_exists(
"a", $HB_ENV[
'HCUPOST']) ?
38 hcu_decrypturl($HB_ENV[
'HCUPOST'][
'a'], $HB_ENV[
'historyHash']) :
46 $curAcctInfo = Array();
51 require_once(dirname(__FILE__) .
'/../includes/hcuPreContent.i');
54 $Fset = $HB_ENV[
"Fset"];
55 $Fset3 = $HB_ENV[
"Fset3"];
56 $formatListAry = array();
59 $formatListAry[] = array(
"text" => $MC->msg(
'Download', HCU_DISPLAY_AS_RAW),
"value" =>
"" );
61 if (($Fset & GetFlagsetValue(
"CU_MNYDOWN")) == GetFlagsetValue(
"CU_MNYDOWN") ) {
62 $formatListAry[] = array(
"text" => $MC->msg(
'Money Active Statement', HCU_DISPLAY_AS_RAW),
"value" =>
"mny" );
64 if (($Fset & GetFlagsetValue(
"CU_QKNDOWN")) != 0 ) {
65 $formatListAry[] = array(
"text" => $MC->msg(
'Quicken WebConnect', HCU_DISPLAY_AS_RAW),
"value" =>
"qkn" );
67 if (($Fset3 & GetFlagsetValue(
"CU3_QBDOWN")) != 0 ) {
68 $formatListAry[] = array(
"text" => $MC->msg(
'QuickBooks WebConnect', HCU_DISPLAY_AS_RAW),
"value" =>
"qb",
"type" =>
"dp" );
70 if (($Fset & GetFlagsetValue(
"CU_QIFDOWN")) == GetFlagsetValue(
"CU_QIFDOWN") ) {
71 $formatListAry[] = array(
"text" => $MC->msg(
'QIF File', HCU_DISPLAY_AS_RAW),
"value" =>
"qif" );
75 $formatListAry[] = array(
"text" => $MC->msg(
'CSV File', HCU_DISPLAY_AS_RAW),
"value" =>
"csv" );
78 $Get_Balances_ary = Get_Balances($dbh, $HB_ENV);
83 $pendingItemsData = Array();
86 $acctListAry = Array();
88 if ($Get_Balances_ary[
'status'][
'code'] ==
'000') {
89 foreach ($acctTypes as $acctType) {
90 if (HCU_array_key_exists($acctType, $Get_Balances_ary)) {
94 if (is_array($Get_Balances_ary[$acctType]) ===
true) {
96 foreach ($Get_Balances_ary[$acctType] as $acctID => $acctRow) {
97 if (HCU_array_key_value(
'view_balances', $acctRow) && HCU_array_key_value(
'view_transactions', $acctRow)) {
99 if ( $acctRowId ===
"" ) {
100 $acctRowId = $acctID;
106 $hasHistory = HCU_array_key_exists(
"hisinfo", $acctRow);
107 if (!$hasHistory || $acctRow[
'hisinfo'] ==
'' || $acctRow[
'hisinfo'] ==
'HomeCU') {
110 if (strlen($acctRow[
'displayname']) > 0) {
111 $acctListAry[] = Array(
"acctValue" => hcu_encrypturl($acctID, $HB_ENV[
'historyHash']),
"acctText" => $acctRow[
'displayname']);
113 $acctListAry[] = Array(
"acctValue" => hcu_encrypturl($acctID, $HB_ENV[
'historyHash']),
"acctText" => $acctRow[
'displaydesc']);
117 if ($acctID == $acctRowId) {
118 $curAcctInfo = $acctRow;
119 $curAcctInfo[
'acctId'] = $acctID;
130 $getHPRHistoryAry = Get_AccountHPRDetails($dbh, $HB_ENV, $MC, $acctRowId);
132 if (count($getHPRHistoryAry[
'holds']) > 0 || count($getHPRHistoryAry[
'pending']) > 0 || count($getHPRHistoryAry[
'requests']) > 0 ) {
133 foreach($getHPRHistoryAry as $pendType => $pendItems) {
134 if (count($pendItems) > 0) {
135 foreach ($pendItems as $pendDetail) {
136 if ($pendType ==
"holds") {
137 $listDate = $pendDetail[
'postdate'];
139 $listDate =
"Pending";
141 $pendingItemsData[] = Array(
"pendDate" => $listDate,
"pendDesc" => hcu_displayHtml($pendDetail[
'description']),
"pendAmt" => $pendDetail[
'amount']);
149 if ( !isset( $HB_ENV[
'HCUPOST'][
"a"]) || strlen( $HB_ENV[
'HCUPOST'][
"a"] ) ==
"" ) {
150 $HB_ENV[
'HCUPOST'][
"a"] = hcu_encrypturl($acctRowId, $HB_ENV[
'historyHash']);
157 $acctRow_ary = explode(
'|', $acctRowId);
158 $acctDispType = $acctRow_ary[0];
161 if ( $acctDispType ==
"D" ) {
163 $accountId =
"{$acctRow_ary[0]}|{$acctRow_ary[1]}|{$acctRow_ary[2]}|{$acctRow_ary[3]}";
164 $hasCheckNumbers = strtoupper($Get_Balances_ary[
"dp"][$accountId][
"deposittype"]) ==
"Y";
166 $hasCheckNumbers =
false;
170 <script src=
'../static/js/homecu.printgrid.js'></script>
172 <div
id=
"acctHistory" class=
"k-content container-fluid" style=
"font-size: 12px;">
173 <div
id=
"chkImage"></div>
176 var hcuPendDs = <?php
177 print HCU_JsonEncode($pendingItemsData);
180 var acctListAry = <?php
185 print HCU_JsonEncode($acctListAry);
188 var formatListAry = <?php echo HCU_JsonEncode( $formatListAry ) ?>;
193 $(document).ready(
function() {
196 $(
'#search-transactions').on(
'keydown',
'input',
function(e) {
197 if (e.keyCode === 13) {
204 $(
'#search-transactions').on(
'submit',
function(e) {
209 $(
'#searchOptionsAdvancedLabel span').on(
'keydown',
function(e) {
210 if (e.keyCode === 13) {
211 toggleSearchOptionsAdvanced();
215 $(
'#histDateRange').kendoDropDownList({change: selectDateRange});
216 $(
'#histStartDate').kendoDatePicker({format:
"MM/dd/yyyy", change: selectCustomRange});
217 $(
'#histEndDate').kendoDatePicker({format:
"MM/dd/yyyy", change: selectCustomRange});
222 var now =
new Date();
223 var endDate =
new Date( now.getTime() + 3 * 24 * 3600 * 1000 );
224 var startDate =
new Date( now.getTime() - 30 * 24 * 3600 * 1000 );
226 $(
'#histStartDate').data(
'kendoDatePicker').value(kendo.toString(
new Date(startDate),
'MM/dd/yyyy'));
227 $(
'#histEndDate').data(
'kendoDatePicker').value(kendo.toString(
new Date(endDate),
'MM/dd/yyyy'));
231 var dsAcctHistory =
new kendo.data.DataSource({
234 url:
'hcuHistory.data?cu=<?php echo $HB_ENV['cu
']; ?>&a=<?php echo $HB_ENV['HCUPOST
']['a
'] . '&
'; ?>',
235 contentType:
'application/x-www-form-urlencoded',
239 r1: $(
'#histStartDate').val(),
240 r2: $(
'#histEndDate').val(),
241 searchAmt: $(
"#searchAmt").val(),
242 searchDesc: $(
"#searchDesc").val(),
243 searchCheckNum: $(
"#searchCheckNum").val()
250 requestStart:
function(request) {
253 requestEnd:
function(response) {
254 setTimeout(
function(e) {
263 accounttype : {type:
"string"},
264 certnumber : {type:
"string"},
265 amount : {type:
"number"},
266 balance : {type:
"number"},
270 checkno : {type:
"string"},
271 description : {type:
"string"},
272 traceno: {type:
"string"},
273 escrow : {type:
"number"},
274 fee : {type:
"number"},
275 principal : {type:
"number"},
276 interest : {type:
"number"},
277 totalpay : {type:
"number"}
283 serverFiltering:
false,
288 dsAcctHistory.read();
289 $(
"#hcuMobileLedger").kendoGrid({
291 dataSource: dsAcctHistory,
294 pageSizes: [20, 40, 60],
298 display:
"<?php echo $MC->msg('History footer formatted', HCU_DISPLAY_AS_JS); ?>",
299 refresh:
"<?php echo $MC->msg('Refresh', HCU_DISPLAY_AS_JS); ?>",
300 itemsPerPage:
"<?php echo $MC->msg('items per page', HCU_DISPLAY_AS_JS); ?>" 306 title:
"<?php echo $MC->msg('Date', HCU_DISPLAY_AS_JS); ?>",
307 format:
"{0:MM/dd/yyyy}",
309 compare:
function(a, b) {
310 return a.datesort - b.datesort;
317 field:
"description",
318 title:
"<?php echo $MC->msg('Description', HCU_DISPLAY_AS_JS); ?>",
324 title:
"<?php echo $MC->msg('Amount', HCU_DISPLAY_AS_JS); ?>",
327 style:
"text-align: right;" 330 template:
function( dataItem ) {
331 var columnValue =
"";
333 <?php
if ($acctDispType ==
'L' ||
334 $acctDispType ==
'C' ): ?>
336 var totalPayClass = dataItem.totalpay < 0 ?
'currency_negative' :
'currency_positive';
337 var balanceClass = dataItem.balance < 0 ?
'currency_negative' :
'currency_positive';
339 columnValue +=
"<div style='font-weight:bold;' class='" + totalPayClass +
"'>" + kendo.toString(dataItem.totalpay,
"c") +
"</div>";
340 <?php
if (($HB_ENV[
'Fset'] & GetFlagsetValue(
"CU_LNBALUNUSABLE")) != GetFlagsetValue(
"CU_LNBALUNUSABLE")): ?>
341 columnValue +=
"<div style='font-weight:300;' class='" + balanceClass +
"'>" + kendo.toString(dataItem.balance,
"c") +
"</div>";
346 var amountClass = dataItem.amount < 0 ?
'currency_negative' :
'currency_positive';
347 var balanceClass = dataItem.balance < 0 ?
'currency_negative' :
'currency_positive';
349 columnValue +=
"<div style='font-weight:bold;' class='" + amountClass +
"'>" + kendo.toString(dataItem.amount,
"c") +
"</div>";
350 columnValue +=
"<div style='font-weight:300; font-style:italic;' class='" + balanceClass +
"'>" + kendo.toString(dataItem.balance,
"c") +
"</div>";
357 <?php
if (HCU_array_key_value(
'out_of_sync', $curAcctInfo)): ?>
358 toolbar: kendo.template($(
'#pending-toolbar-template').html()),
360 noRecords: {
template:
"<?php echo $MC->msg('No Records Found', HCU_DISPLAY_AS_JS); ?>"},
362 change: onMobileRowSelect
365 $(
'#hcuAcctLedger').kendoGrid({
367 dataSource: dsAcctHistory,
371 pageSizes: [20, 40, 60],
375 display:
"<?php echo $MC->msg('History footer formatted', HCU_DISPLAY_AS_JS); ?>",
376 refresh:
"<?php echo $MC->msg('Refresh', HCU_DISPLAY_AS_JS); ?>",
377 itemsPerPage:
"<?php echo $MC->msg('items per page', HCU_DISPLAY_AS_JS); ?>" 380 toolbar: kendo.template($(
'#toolbar-template').html()),
381 <?php
if ($acctDispType ==
'L'): ?>
385 title:
"<?php echo $MC->msg('Date', HCU_DISPLAY_AS_JS); ?>",
386 format:
"{0:MM/dd/yyyy}",
388 compare:
function(a, b) {
389 return a.datesort - b.datesort;
397 <?php
if (($HB_ENV[
'Fset'] & GetFlagsetValue(
"CU_SHOWLNTXNDESC")) == GetFlagsetValue(
"CU_SHOWLNTXNDESC")): ?>
399 field:
"description",
400 title:
"<?php echo $MC->msg('Description', HCU_DISPLAY_AS_JS); ?>",
406 <?php
if (($HB_ENV[
'Fset'] & GetFlagsetValue(
"CU_SHOWLNTXNSPLIT")) == GetFlagsetValue(
"CU_SHOWLNTXNSPLIT")): ?>
409 template:
function(e) {
410 if (e.principal < 0) {
411 return "<span class='currency_negative'>" + kendo.toString(e.principal,
'c') +
"</span>";
413 return "<span class='currency_positive'>" + kendo.toString(e.principal,
'c') +
"</span>";
417 title:
"<?php echo $MC->msg('Principal', HCU_DISPLAY_AS_JS); ?>",
420 style:
"text-align: right;",
427 title:
"<?php echo ($HB_ENV['Fset2'] & GetFlagsetValue("CU2_SHOW_LN_FEE
")) == GetFlagsetValue("CU2_SHOW_LN_FEE
") ? $MC->msg('Interest', HCU_DISPLAY_AS_JS) : $MC->msg('IntFee', HCU_DISPLAY_AS_JS); ?>",
430 style:
"text-align: right;",
435 <?php
if (($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_ESCHEMA")) == GetFlagsetValue(
"CU2_ESCHEMA")): ?>
436 <?php
if (($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_SHOW_LN_FEE")) == GetFlagsetValue(
"CU2_SHOW_LN_FEE")): ?>
440 title:
"<?php echo $MC->msg('Fee', HCU_DISPLAY_AS_JS); ?>",
443 style:
"text-align: right;",
448 <?php
if (($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_SHOW_LN_ESCROW")) == GetFlagsetValue(
"CU2_SHOW_LN_ESCROW")): ?>
452 title:
"<?php echo $MC->msg('Escrow', HCU_DISPLAY_AS_JS); ?>",
455 style:
"text-align: right;",
463 template:
function(e) {
464 if (e.totalpay < 0) {
465 return "<span class='currency_negative'>" + kendo.toString(e.totalpay,
'c') +
"</span>";
467 return "<span class='currency_positive'>" + kendo.toString(e.totalpay,
'c') +
"</span>";
470 title:
"<?php echo ($HB_ENV['Fset'] & GetFlagsetValue("CU_SHOWLNTXNSPLIT
")) == GetFlagsetValue("CU_SHOWLNTXNSPLIT
") ? $MC->msg('Amount', HCU_DISPLAY_AS_JS) : $MC->msg('Payment', HCU_DISPLAY_AS_JS); ?>",
473 style:
"text-align: right;",
476 <?php
if (($HB_ENV[
'Fset'] & GetFlagsetValue(
"CU_LNBALUNUSABLE")) != GetFlagsetValue(
"CU_LNBALUNUSABLE")): ?>
480 template:
function(e) {
482 return "<span class='currency_negative'>" + kendo.toString(e.balance,
'c') +
"</span>";
484 return "<span class='currency_positive'>" + kendo.toString(e.balance,
'c') +
"</span>";
487 title:
"<?php echo $MC->msg('Balance', HCU_DISPLAY_AS_JS); ?>",
490 style:
"text-align: right;",
496 <?php elseif ($acctDispType ==
'C'): ?>
500 title:
"<?php echo $MC->msg('Date', HCU_DISPLAY_AS_JS); ?>",
501 format:
"{0:MM/dd/yyyy}",
503 compare:
function(a, b) {
504 return a.datesort - b.datesort;
513 field:
"description",
514 title:
"<?php echo $MC->msg('Description', HCU_DISPLAY_AS_JS); ?>",
517 <?php
if (($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_ESCHEMA")) == GetFlagsetValue(
"CU2_ESCHEMA")): ?>
518 <?php
if (($HB_ENV[
'Fset2'] & GetFlagsetValue(
"CU2_SHOW_LN_FEE")) == GetFlagsetValue(
"CU2_SHOW_LN_FEE")): ?>
522 title:
"<?php echo $MC->msg('Fee', HCU_DISPLAY_AS_JS); ?>",
525 style:
"text-align: right;",
533 template:
function(e) {
534 if (e.totalpay < 0) {
535 return "<span class='currency_negative'>" + kendo.toString(e.totalpay,
'c') +
"</span>";
537 return "<span class='currency_positive'>" + kendo.toString(e.totalpay,
'c') +
"</span>";
540 title:
"<?php echo $MC->msg('Amount', HCU_DISPLAY_AS_JS); ?>",
543 style:
"text-align: right;",
546 <?php
if (($HB_ENV[
'Fset'] & GetFlagsetValue(
"CU_LNBALUNUSABLE")) != GetFlagsetValue(
"CU_LNBALUNUSABLE")): ?>
550 title:
"<?php echo $MC->msg('Balance', HCU_DISPLAY_AS_JS); ?>",
551 template:
function(e) {
553 return "<span class='currency_negative'>" + kendo.toString(e.balance,
'c') +
"</span>";
555 return "<span class='currency_positive'>" + kendo.toString(e.balance,
'c') +
"</span>";
560 style:
"text-align: right;",
570 title:
"<?php echo $MC->msg('Date', HCU_DISPLAY_AS_JS); ?>",
571 format:
"{0:MM/dd/yyyy}",
573 compare:
function(a, b) {
574 return a.datesort - b.datesort;
582 <?php
if ($curAcctInfo[
'deposittype'] ==
'Y'): ?>
585 title:
"<?php echo $MC->msg('Check Number', HCU_DISPLAY_AS_JS); ?>",
587 template:
function( dataItem ) {
588 var columnValue =
"";
589 if ( dataItem.checkno && dataItem.checkno !==
"0" && dataItem.checkno.length > 0 )
590 <?php
if (($Fset & GetFlagsetValue(
"CU_SHOWIMAGES")) > 0): ?>
591 columnValue = dataItem.checkno +
" <span class='fa fa-eye'></span>";
593 columnValue = dataItem.checkno;
601 field:
"description",
602 title:
"<?php echo $MC->msg('Description', HCU_DISPLAY_AS_JS); ?>",
609 title:
"<?php echo $MC->msg('Amount', HCU_DISPLAY_AS_JS); ?>",
610 template:
function(e) {
612 return "<span class='currency_negative'>" + kendo.toString(e.amount,
'c') +
"</span>";
614 return "<span class='currency_positive'>" + kendo.toString(e.amount,
'c') +
"</span>";
619 style:
"text-align: right;" 622 style:
"text-align: right;",
628 title:
"<?php echo $MC->msg('Balance', HCU_DISPLAY_AS_JS); ?>",
629 template:
function(e) {
631 return "<span class='currency_negative'>" + kendo.toString(e.balance,
'c') +
"</span>";
633 return "<span class='currency_positive'>" + kendo.toString(e.balance,
'c') +
"</span>";
638 style:
"text-align: right;" 641 style:
"text-align: right;",
647 change: onCheckSelect,
648 dataBound:
function () {
649 <?php
if (HCU_array_key_exists(
"deposittype", $curAcctInfo) && $curAcctInfo[
'deposittype'] ==
'Y'): ?>
650 $(
"#hcuAcctLedger table tbody tr td").hover(
652 if ( e.type ==
"mouseenter" ) {
653 var target = e.target;
654 if ( target.cellIndex == 1 &&
655 target.innerHTML.length > 0 ) {
656 <?php if (($Fset & GetFlagsetValue(
"CU_SHOWIMAGES")) > 0): ?>
657 $(this).addClass(
"k-state-hover");
661 var selectedItems = $(
'td.k-state-hover');
664 for (var i = 0; i < selectedItems.length; i++) {
665 $(selectedItems[i]).removeClass(
"k-state-hover");
674 $(
'#printGrid').kendoButton({
675 imageUrl:
'https://<?php echo $HB_ENV['cloudfrontDomainName
']; ?>/homecu/images/printer.png' 678 $(
'#hcuTablePending').kendoGrid({
698 {field:
"pendDesc", aggregate:
"count"},
699 {field:
"pendAmt", aggregate:
"sum"}
705 <?php
if (HCU_array_key_value(
'out_of_sync', $curAcctInfo)): ?>
706 toolbar: kendo.template($(
'#pending-toolbar-template').html()),
711 title:
"<?php echo $MC->msg('Date', HCU_DISPLAY_AS_JS); ?>",
720 title:
"<?php echo $MC->msg('Description', HCU_DISPLAY_AS_JS); ?>",
725 footerTemplate:
" #= (count == 1 ? '' : kendo.toString(count, '0') + ' <?php echo $MC->msg('Pending Transactions', HCU_DISPLAY_AS_JS); ?>' ) # " 729 title:
"<?php echo $MC->msg('Amount', HCU_DISPLAY_AS_JS); ?>",
732 template:
function(e) {
734 return "<span class='currency_negative'>" + kendo.toString(e.pendAmt,
'c') +
"</span>";
736 return "<span class='currency_positive'>" + kendo.toString(e.pendAmt,
'c') +
"</span>";
741 style:
"text-align: right;",
745 style:
"text-align: right" 747 footerTemplate:
"<div style='text-align:right;' class='#=sum<0 ? 'currency_negative' : 'currency_positive' #'>#= (isNaN(sum) ? '' : (kendo.toString(sum, 'c'))) #</div>" 752 $(
'#printGrid').click(
function () {
753 printGrid(
'hcuAcctLedger', $(
'#acctTitle').text(),
'',
'<?php echo $HB_ENV['cloudfrontDomainName
']; ?>',
'<?php echo $HB_ENV['homecuKendoVersion
']; ?>');
757 $(
"#acctList").kendoDropDownList({
758 dataTextField:
"acctText",
759 dataValueField:
"acctValue",
760 dataSource: acctListAry,
761 change: changeAccount,
762 valueTemplate:
"#= acctText #", <?php
763 template:
"#= acctText #" 766 $(
"#searchBtn").hide();
767 $(
"#searchBtn").on(
"click", submitSearch);
769 $(
"#searchOptionsAdvanced").hide();
770 $(
"#searchOptionsAdvancedLabel").on(
"click",
function(e) {
771 var searchOptionsVisible = $(
"#searchOptionsAdvanced").is(
":visible");
772 var searchOptionsChevron = $(
"#searchOptionsAdvancedLabel").find(
"span")[1];
774 if (searchOptionsVisible) {
775 $(
"#searchOptionsAdvanced").hide();
776 $(searchOptionsChevron).removeClass(
"fa-chevron-up");
777 $(searchOptionsChevron).addClass(
"fa-chevron-down");
780 $(
"#histDateRange").data(
"kendoDropDownList").value() ==
"" ?
781 $(
"#searchBtn").show() :
782 $(
"#searchBtn").hide();
785 $(
"#searchAmt").val(
"");
786 $(
"#searchDesc").val(
"");
787 $(
"#searchCheckNum").val(
"");
794 $(
"#searchOptionsAdvanced").show();
795 $(searchOptionsChevron).removeClass(
"fa-chevron-down");
796 $(searchOptionsChevron).addClass(
"fa-chevron-up");
799 $(
"#searchBtn").show();
803 function selectDateRange(e) {
805 var value = this.value();
808 $(
"#searchBtn").show();
810 $(
"#searchOptionsAdvanced").is(
":visible") ?
811 $(
"#searchBtn").show() :
812 $(
"#searchBtn").hide();
815 var end =
new Date();
816 var start =
new Date(end.getTime() - parseInt(value) * 24 * 3600 * 1000);
817 $(
'#histEndDate').data(
'kendoDatePicker').value(end);
818 $(
'#histStartDate').data(
'kendoDatePicker').value(start);
824 function selectCustomRange(e) {
825 $(
"#histDateRange").data(
"kendoDropDownList").value(
"");
826 $(
"#searchBtn").show();
829 function submitSearch(e) {
830 dsAcctHistory.read();
831 dsAcctHistory.page(0);
834 function changeAccount() {
835 var dropdownlist = $(
"#acctList").data(
"kendoDropDownList");
838 var dataItem = dropdownlist.dataItem();
839 var selAcct = dataItem.acctValue;
840 var histHref =
"<?php echo "{$HB_ENV[
'loginpath']}/hcuHistory.prg?{$HB_ENV[
'cuquery']}&a=
"?>" + selAcct;
846 window.document.location = histHref;
849 function onCheckSelect(arg) {
850 var cells = this.select();
852 var selectedItems = $(
'tr.k-state-selected');
855 for (var i = 0; i < selectedItems.length; i++) {
856 $(selectedItems[i]).removeClass(
"k-state-selected");
860 var cellIndex = cells[0].cellIndex;
861 if ( cellIndex === 1 ) {
863 var dataItem = this.dataItem(cells[0].parentNode);
865 if ( dataItem.ckitem && dataItem.ckitem.length > 0 &&
866 dataItem.ckhash && dataItem.ckhash.length > 0 )
867 createWindow(dataItem.ckitem, dataItem.ckhash);
873 var detailTemplate = kendo.template($(
"#templateDetail").html());
875 function onMobileRowSelect( arg ) {
876 var displayInfo = arg;
879 var grid = $(
"#hcuMobileLedger").data(
"kendoGrid");
880 var selectedItem = grid.dataItem(grid.select());
882 var selectedItems = $(
'tr.k-state-selected');
885 for (var i = 0; i < selectedItems.length; i++) {
886 $(selectedItems[i]).removeClass(
"k-state-selected");
890 wnd = $(
'#detailWindow').kendoWindow({
896 title:
"<?php echo $MC->msg('Details', HCU_DISPLAY_AS_JS); ?>",
897 activate:
function(e) {
898 var latestWindow = $(
"#detailWindow").data(
"kendoWindow");
899 openWindow.push( latestWindow );
905 }).data(
'kendoWindow');
909 wnd.content( detailTemplate( selectedItem ) );
911 wnd.center().open().toFront();
917 <?php
if (count($pendingItemsData) == 0): ?>
918 $(
'#divPendTrans').hide();
922 $(
"#downloadList").kendoDropDownList({
923 dataTextField:
"text",
924 dataValueField:
"value",
925 dataSource: formatListAry,
926 change: startDownload
928 $(
'#acctTitle').html($(
'#acctList').data(
'kendoDropDownList').text());
931 var detailsWindow = $(
"#details-container"),
932 detailsButton = $(
"#detailsButton");
934 detailsButton.click(
function() {
935 detailsWindow.data(
"kendoWindow").center().open();
938 detailsWindow.kendoWindow({
940 title:
"<?php echo $MC->msg('Details', HCU_DISPLAY_AS_JS); ?>",
947 activate:
function(e) {
948 var latestWindow = $(
"#details-container").data(
"kendoWindow");
949 openWindow.push( latestWindow );
955 }).data(
"kendoWindow");
959 $(
".initiallyHide").show();
961 $(document).on(
"click",
".k-overlay",
function () {
963 if ( openWindow.length > 0 ) {
964 openWindow[openWindow.length-1].close();
970 function createWindow(item, hash) {
971 $(
'#checkWindow').kendoWindow({
973 actions: [
"Print",
"Close" ],
976 title:
"<?php echo $MC->msg("View Check Image
", HCU_DISPLAY_AS_JS) ?>",
978 activate:
function(e) {
979 var latestWindow = $(
"#checkWindow").data(
"kendoWindow");
980 openWindow.push( latestWindow );
985 var winobj = openWindow.pop();
991 <?php
if (!$serviceViewFromCuAdmin): ?>
992 content:
"<?php echo $HB_ENV['homebankingpath'] ?>/ImageSOLO.prg?<?php echo $HB_ENV['cuquery'] ?>&CKITEM=" + item +
"&CKHASH=" + hash
994 content:
"<?php echo $HB_ENV['homebankingpath'] ?>/ImageSOLO.prg?<?php echo $HB_ENV['cuquery'] ?>&adm=1&CKITEM=" + item +
"&CKHASH=" + hash
998 var dialog = $(
"#checkWindow").data(
'kendoWindow');
999 dialog.center().open();
1001 printButton = dialog.wrapper.find(
".k-i-print");
1002 printButton.click(
function (e) {
1003 <?php
if (!$serviceViewFromCuAdmin): ?>
1004 window.open(
"<?php echo $HB_ENV['homebankingpath'] ?>/ImageSOLO.prg?<?php echo $HB_ENV['cuquery'] ?>&CKITEM=" + item +
"&CKHASH=" + hash,
"print_view" );
1006 window.open(
"<?php echo $HB_ENV['homebankingpath'] ?>/ImageSOLO.prg?<?php echo $HB_ENV['cuquery'] ?>&adm=1&CKITEM=" + item +
"&CKHASH=" + hash,
"print_view" );
1010 homecuTooltip.reset();
1011 homecuTooltip.custom.content =
"<?php echo $MC->msg('View/Print in new window', HCU_DISPLAY_AS_JS); ?>";
1012 printButton.kendoTooltip(homecuTooltip.custom).data(
"kendoTooltip");
1015 function showCheckImage( ckitem, ckhash ) {
1016 if ( ckitem && ckitem.length > 0 &&
1017 ckhash && ckhash.length > 0 )
1018 createWindow(ckitem, ckhash);
1021 function startDownload(e) {
1022 var value = $(
"#downloadList").val();
1027 document.downloadPost.downfmt.value = value;
1028 document.downloadPost.start.value = $(
"#histStartDate").val();
1029 document.downloadPost.end.value = $(
"#histEndDate").val();
1032 document.downloadPost.submit();
1035 var dropdownlist = $(
"#downloadList").data(
"kendoDropDownList");
1036 dropdownlist.value(
"");
1047 function toggleSearchOptionsAdvanced()
1049 var chevron = $(
'#search-chevron');
1051 if ($(
"#searchOptionsAdvanced").is(
":visible")) {
1052 $(
"#searchOptionsAdvanced").hide();
1053 $(chevron).removeClass(
'fa-chevron-up').addClass(
'fa-chevron-down');
1057 $(
"#searchOptionsAdvanced").show();
1058 $(chevron).removeClass(
'fa-chevron-down').addClass(
'fa-chevron-up');
1063 .k-i-expand:before {
1067 background: url(
'https://<?php echo $HB_ENV['cloudfrontDomainName
']; ?>/homecu/images/printer.png');
1068 background-position: 0px 0px;
1069 background-size: contain;
1070 background-repeat: no-repeat;
1072 .k-link:not(.k-state-disabled):hover > .k-i-expand,
1073 .k-state-hover .k-i-expand {
1074 background-position: 0px 0px;
1079 #details-container h2 1084 #details-container em 1089 #details-container dt 1094 #hcuTabledp .expandFactor {visibility: visible;} 1095 #hcuTabledp .smallFactor {visibility: hidden;} 1097 .summary-data-notify {
1105 display:<?php echo SetInitialHideProperty($mobileDetect); ?>
1109 .history-search-label {
1113 .history-search-control {
1134 @media (min-width: 768px) {
1135 .history-search-label {
1139 .history-search-control {
1158 #summary-info .summary-row:hover, 1159 #txnDetail .summary-row:hover { 1160 background-color: #eaeaea;
1162 #summary-info .summary-row, 1163 #txnDetail .summary-row { 1166 #summary-info .summary-desc, 1167 #txnDetail .summary-desc { 1172 border-bottom: 1px solid #ccc;
1174 #summary-info .summary-value, 1175 #txnDetail .summary-value { 1179 border-bottom: 1px solid #ccc;
1182 #summary-info .summary-row:last-of-type .summary-desc, 1183 #summary-info .summary-row:last-of-type .summary-value, 1184 #txnDetail .summary-row:last-of-type .summary-desc, 1185 #txnDetail .summary-row:last-of-type .summary-value { 1189 .summary-value .summary-notice,
1190 .summary-desc .summary-notice {
1197 .summary-data-notify {
1201 .local-field-margin {
1206 #searchOptionsAdvancedLabel { 1210 #search-chev:focus { 1211 outline: 2px solid #5E9ED6;
1222 outline: 2px solid #5E9ED6;
1225 .summary-row:focus {
1226 outline: 2px solid #5E9ED6;
1231 <form name=
"downloadPost" method=
"post" 1232 action=
"hcuDownload.prg?cu=<?php echo urlencode($HB_ENV['Cu']); ?>">
1233 <input type=
"hidden" name=
"action" value=
"download">
1234 <input type=
"hidden" name=
"cu" value=
"<?php echo $HB_ENV['HCUPOST']['cu']; ?>">
1235 <input type=
"hidden" name=
"downfmt" value=
"">
1236 <input type=
"hidden" name=
"start" value=
"">
1237 <input type=
"hidden" name=
"end" value=
"">
1238 <input type=
"hidden" name=
"selacct" value=
"<?php echo $HB_ENV['HCUPOST']['a']; ?>">
1240 <div
class=
"row initiallyHide">
1241 <div
class=
'col-xs-12 col-sm-4 col-md-3' style=
"text-align:left;">
1242 <input
id=
'acctList' value=
"<?php echo $HB_ENV['HCUPOST']['a']; ?>" style=
'width:100%; height:100%; text-align: left; margin-top:10px;'/>
1244 <div
class=
'col-xs-12 col-sm-4 col-md-3' style=
'text-align:left;'>
1245 <span
id=
"detailsButton" class=
"k-button" style=
"width:100%; height:100%; margin-top: 10px;" tabindex=
"0"><span
class=
"fa fa-crosshairs"></span> <?php echo $MC->msg(
'Open for Details', HCU_DISPLAY_AS_HTML); ?></span>
1247 <div
class=
'col-xs-12 col-sm-4 col-md-3' style=
'text-align:center;'>
1248 <span
class=
"hidden-xs" id=
"hideDownload"><input
id=
'downloadList' style=
"width:100%; height:100%; text-align: left; margin-top:10px;" /></span>
1253 if ( $curAcctInfo[
"restrictions"] ==
"R" ) {
1256 <div
class=
'col-xs-12 local-announce'>
1257 <span
class=
"local-readonly"><span
class=
"fa fa-flag-o" ></span> <?php echo $MC->msg(
'Account Readonly', HCU_DISPLAY_AS_HTML); ?></span>
1267 <div
id=
"details-container" class=
"initiallyHide">
1268 <div
class=
"panel panel-default container-fluid">
1269 <!--<div
class=
"row">
1270 <div
class=
'col-xs-12' style=
"text-align:center; padding:0;">
1271 <h4
id=
'acctTitle' style=
"margin-bottom:15px;"></h4>
1274 <?php
if (!$HB_ENV[
'live']): ?>
1275 <!--<div
class=
"row">
1276 <div
class=
'col-xs-12' style=
'text-align:center; padding:0;'>
1277 <?php echo $MC->msg(
'Account Status as of', HCU_DISPLAY_AS_HTML); ?>
1278 <span style=
'font-style:italic; margin-bottom: 5px;'><?php echo $HB_ENV[
'lastupdate']; ?></span>
1282 <div
id=
'summary-info'>
1283 <?php
if ( $curAcctInfo[
"restrictions"] ==
"R" ) { ?>
1285 <div
class=
'col-xs-12'>
1286 <span
class=
"local-readonly"><span
class=
"fa fa-flag-o" ></span> <?php echo $MC->msg(
'Account Readonly', HCU_DISPLAY_AS_HTML); ?></span>
1291 <?php
if (substr($curAcctInfo[
'acctId'], 0, 1) ==
'D'): ?>
1292 <?php
if (HCU_array_key_exists(
'description', $curAcctInfo)): ?>
1293 <div
class=
'summary-row' tabindex=
"0">
1294 <div
class=
'summary-desc'><?php echo $MC->msg(
'Description', HCU_DISPLAY_AS_HTML); ?></div>
1295 <div
class=
'summary-value'><?php echo $curAcctInfo[
'description']; ?></div>
1298 <?php
if (HCU_array_key_exists(
'currentbal', $curAcctInfo)): ?>
1299 <div
class=
'summary-row' tabindex=
"0">
1300 <div
class=
'summary-desc'><?php echo $MC->msg(
'Current Bal', HCU_DISPLAY_AS_HTML); ?></div>
1301 <div
class=
'summary-value'>$<?php echo hcuFormatNumber($curAcctInfo[
'currentbal']); ?></div>
1304 <?php
if (HCU_array_key_exists(
'availablebal', $curAcctInfo)): ?>
1305 <div
class=
'summary-row' tabindex=
"0">
1306 <div
class=
'summary-desc'><?php echo $MC->msg(
'Available', HCU_DISPLAY_AS_HTML); ?></div>
1307 <div
class=
'summary-value'>$<?php echo hcuFormatNumber($curAcctInfo[
'availablebal']); ?></div>
1310 <?php
if (HCU_array_key_exists(
'ytdinterest', $curAcctInfo)): ?>
1311 <div
class=
'summary-row' tabindex=
"0">
1312 <div
class=
'summary-desc'><?php echo $MC->msg(
'YTD Interest', HCU_DISPLAY_AS_HTML); ?></div>
1313 <div
class=
'summary-value'>$<?php echo hcuFormatNumber($curAcctInfo[
'ytdinterest']); ?></div>
1316 <?php
if (HCU_array_key_exists(
'lastyrinterest', $curAcctInfo)): ?>
1317 <div
class=
'summary-row' tabindex=
"0">
1318 <div
class=
'summary-desc'><?php echo $MC->msg(
'Prior Yr Interest', HCU_DISPLAY_AS_HTML); ?></div>
1319 <div
class=
'summary-value'>$<?php echo hcuFormatNumber($curAcctInfo[
'lastyrinterest']); ?></div>
1322 <?php elseif (substr($curAcctInfo[
'acctId'], 0, 1) ==
'L'): ?>
1324 <?php if (HCU_array_key_exists(
'currentbal', $curAcctInfo)): ?>
1325 <div class=
'summary-row' tabindex=
"0">
1326 <div class=
'summary-desc'><?php echo $MC->msg(
'Current Bal', HCU_DISPLAY_AS_HTML); ?></div>
1327 <div
class=
'summary-value'>$<?php echo hcuFormatNumber($curAcctInfo[
'currentbal']); ?></div>
1330 <?php
if (HCU_array_key_exists(
'paymentamount', $curAcctInfo)): ?>
1331 <div
class=
'summary-row' tabindex=
"0">
1332 <div
class=
'summary-desc'><?php echo $MC->msg(
'Payment', HCU_DISPLAY_AS_HTML); ?></div>
1333 <div
class=
'summary-value'><?php echo ($curAcctInfo[
'paymentamount'] ==
'N/A' ?
'N/A' :
'$' . hcuFormatNumber($curAcctInfo[
'paymentamount'])); ?></div>
1336 <?php
if (HCU_array_key_exists(
'nextduedate', $curAcctInfo)): ?>
1337 <div
class=
'summary-row' tabindex=
"0">
1338 <div
class=
'summary-desc'><?php echo $MC->msg(
'Next Due', HCU_DISPLAY_AS_HTML); ?></div>
1339 <div
class=
'summary-value <?php echo (($curAcctInfo['nextduedate
'] !== '' && $curAcctInfo['nextduedate
'] != 'N/A
') ? 'summary-notice
' : '' ); ?>'><?php echo hcuFormatDate($curAcctInfo[
'nextduedate']); ?></div>
1341 <?php
if (HCU_array_key_exists(
'pastdue', $curAcctInfo) && $curAcctInfo[
'pastdue'] ==
'1' && ($curAcctInfo[
'nextduedate'] !==
'' && $curAcctInfo[
'nextduedate'] !=
'N/A')): ?>
1342 <div
class=
'summary-row' tabindex=
"0">
1343 <div
class=
'col-xs-12 summary-notice' style=
"padding:0;"><?php echo $MC->msg(
'Payment Past Due', HCU_DISPLAY_AS_HTML); ?></div>
1347 <?php
if (HCU_array_key_exists(
'tenday', $curAcctInfo)): ?>
1348 <?php
if (HCU_array_key_exists(
'payoff', $curAcctInfo)): ?>
1349 <div
class=
'summary-row' tabindex=
"0">
1350 <div
class=
'summary-desc' style=
'padding-left:20px;'>Today
's Payoff</div> 1351 <div class='summary-value
'><?php echo ($curAcctInfo['payoff
'] == 'N/A
' ? 'N/A
' : '$
' . hcuFormatNumber($curAcctInfo['payoff
'])); ?></div> 1354 <div class='summary-row
' tabindex="0"> 1355 <div class='summary-desc
'style='padding-left:20px;
'><?php echo $MC->msg('Ten-days
', HCU_DISPLAY_AS_HTML) . ' ' . $MC->msg('Payoff
', HCU_DISPLAY_AS_HTML); ?></div> 1356 <div class='summary-value
'><?php echo ($curAcctInfo['tenday
'] == 'N/A
' ? 'N/A
' : '$
' . hcuFormatNumber($curAcctInfo['tenday
'])); ?></div> 1359 <?php if (HCU_array_key_exists('payoff
', $curAcctInfo)): ?> 1360 <div class='summary-row
' tabindex="0"> 1361 <div class='summary-desc
'><?php echo $MC->msg('Payoff
', HCU_DISPLAY_AS_HTML); ?></div> 1362 <div class='summary-value
'><?php echo ($curAcctInfo['payoff
'] == 'N/A
' ? 'N/A
' : '$
' . hcuFormatNumber($curAcctInfo['payoff
'])); ?></div> 1366 <?php if (HCU_array_key_exists('interestrate
', $curAcctInfo)): ?> 1367 <div class='summary-row
' tabindex="0"> 1368 <div class='summary-desc
'><?php echo $MC->msg('Interest Rate
', HCU_DISPLAY_AS_HTML); ?></div> 1369 <div class='summary-value
'><?php echo ($curAcctInfo['interestrate
'] == 'N/A
' ? 'N/A
' : hcuFormatNumber($curAcctInfo['interestrate
']) . '%
'); ?></div> 1372 <?php if (HCU_array_key_exists('creditlimit
', $curAcctInfo)): ?> 1373 <?php if (floatval($curAcctInfo['creditlimit
']) > 0): ?> 1374 <div class='summary-row
' tabindex="0"> 1375 <div class='summary-desc
'><?php echo $MC->msg('Limit
', HCU_DISPLAY_AS_HTML); ?></div> 1376 <div class='summary-value
'><?php echo ($curAcctInfo['creditlimit
'] == 'N/A
' ? 'N/A
' : '$
' . hcuFormatNumber($curAcctInfo['creditlimit
'])); ?></div> 1380 <?php if (HCU_array_key_exists('availablebal
', $curAcctInfo)): ?> 1381 <?php if (floatval($curAcctInfo['creditlimit
']) > 0): ?> 1382 <div class='summary-row
' tabindex="0"> 1383 <div class='summary-desc
'><?php echo $MC->msg('Available
', HCU_DISPLAY_AS_HTML); ?></div> 1384 <div class='summary-value
'><?php echo ($curAcctInfo['availablebal
'] == 'N/A
' ? 'N/A
' : '$
' . hcuFormatNumber($curAcctInfo['availablebal
'])); ?></div> 1388 <?php if (HCU_array_key_exists('ytdinterest
', $curAcctInfo)): ?> 1389 <div class='summary-row
' tabindex="0"> 1390 <div class='summary-desc
'><?php echo $MC->msg('YTD Interest
', HCU_DISPLAY_AS_HTML); ?></div> 1391 <div class='summary-value
'>$<?php echo hcuFormatNumber($curAcctInfo['ytdinterest
']); ?></div> 1394 <?php if (HCU_array_key_exists('lastyrinterest
', $curAcctInfo)): ?> 1395 <div class='summary-row
' tabindex="0"> 1396 <div class='summary-desc
'><?php echo $MC->msg('Prior Yr Interest
', HCU_DISPLAY_AS_HTML); ?></div> 1397 <div class='summary-value
'>$<?php echo hcuFormatNumber($curAcctInfo['lastyrinterest
']); ?></div> 1400 <?php elseif (substr($curAcctInfo['acctId
'], 0, 1) == 'C
'): ?> 1402 <?php if (HCU_array_key_exists('currentbal
', $curAcctInfo)): ?> 1403 <div class='summary-row
' tabindex="0"> 1404 <div class='summary-desc
'><?php echo $MC->msg('Current Bal
', HCU_DISPLAY_AS_HTML); ?></div> 1405 <div class='summary-value
'>$<?php echo hcuFormatNumber($curAcctInfo['currentbal
']); ?></div> 1408 <?php if (HCU_array_key_exists('lastpaymentdate
', $curAcctInfo)): ?> 1409 <div class='summary-row
' tabindex="0"> 1410 <div class='summary-desc
'><?php echo $MC->msg('Last Paid
', HCU_DISPLAY_AS_HTML); ?></div> 1411 <div class='summary-value
'><?php echo hcuFormatDate($curAcctInfo['lastpaymentdate
']); ?></div> 1414 <?php if (HCU_array_key_exists('paymentamount
', $curAcctInfo)): ?> 1415 <div class='summary-row
' tabindex="0"> 1416 <div class='summary-desc
'><?php echo $MC->msg('Payment
', HCU_DISPLAY_AS_HTML); ?></div> 1417 <div class='summary-value
'><?php echo ($curAcctInfo['paymentamount
'] == 'N/A
' ? 'N/A
' : '$
' . hcuFormatNumber($curAcctInfo['paymentamount
'])); ?></div> 1420 <?php if (HCU_array_key_exists('nextduedate
', $curAcctInfo)): ?> 1421 <div class='summary-row
' tabindex="0"> 1422 <div class='summary-desc
'><?php echo $MC->msg('Next Due
', HCU_DISPLAY_AS_HTML); ?></div> 1423 <div class='summary-value <?php echo (($curAcctInfo[
'nextduedate'] !==
'' && $curAcctInfo[
'nextduedate'] !=
'N/A') ?
'summary-notice' :
'' ); ?>
'><?php echo hcuFormatDate($curAcctInfo['nextduedate
']); ?></div> 1425 <?php if ($curAcctInfo['pastdue
'] == '1
' && ($curAcctInfo['nextduedate
'] !== '' && $curAcctInfo['nextduedate
'] != 'N/A
')): ?> 1427 <div class='col-xs-12 col-sm-5 summary-notice
'><?php echo $MC->msg('Payment Past Due
', HCU_DISPLAY_AS_HTML); ?></div> 1431 <?php if (HCU_array_key_exists('interestrate
', $curAcctInfo)): ?> 1432 <div class='summary-row
' tabindex="0"> 1433 <div class='summary-desc
'><?php echo $MC->msg('Interest Rate
', HCU_DISPLAY_AS_HTML); ?></div> 1434 <div class='summary-value
'><?php echo ($curAcctInfo['interestrate
'] == 'N/A
' ? 'N/A
' : hcuFormatNumber($curAcctInfo['interestrate
']) . '%
'); ?></div> 1437 <?php if (HCU_array_key_exists('creditlimit
', $curAcctInfo)): ?> 1438 <div class='summary-row
' tabindex="0"> 1439 <div class='summary-desc
'><?php echo $MC->msg('Limit
', HCU_DISPLAY_AS_HTML); ?></div> 1440 <div class='summary-value
'><?php echo ($curAcctInfo['creditlimit
'] == 'N/A
' ? 'N/A
' : '$
' . hcuFormatNumber($curAcctInfo['creditlimit
'])); ?></div> 1443 <?php if (($Fset2 & $GLOBALS['CU2_HIDE_CCAVAIL
']) != $GLOBALS['CU2_HIDE_CCAVAIL
']): ?> 1444 <?php if (HCU_array_key_exists('available
', $curAcctInfo)): ?> 1445 <div class='summary-row
' tabindex="0"> 1446 <div class='summary-desc
'><?php echo $MC->msg('Available
', HCU_DISPLAY_AS_HTML); ?></div> 1447 <div class='summary-value
'><?php echo ($curAcctInfo['available
'] == 'N/A
' ? 'N/A
' : (is_numeric($curAcctInfo['available
']) ? '$
' : '') . hcuFormatNumber($curAcctInfo['available
'])); ?></div> 1451 <?php if (HCU_array_key_exists('ytdinterest
', $curAcctInfo)): ?> 1452 <div class='summary-row
' tabindex="0"> 1453 <div class='summary-desc
'><?php echo $MC->msg('YTD Interest
', HCU_DISPLAY_AS_HTML); ?></div> 1454 <div class='summary-value
'>$<?php echo hcuFormatNumber($curAcctInfo['ytdinterest
']); ?></div> 1457 <?php if (HCU_array_key_exists('lastyrinterest
', $curAcctInfo)): ?> 1458 <div class='summary-row
' tabindex="0"> 1459 <div class='summary-desc
'><?php echo $MC->msg('Prior Yr Interest
', HCU_DISPLAY_AS_HTML); ?></div> 1460 <div class='summary-value
'>$<?php echo hcuFormatNumber($curAcctInfo['lastyrinterest
']); ?></div> 1467 <?php /* end of the details for the account */ ?> 1471 <div class='row initiallyHide
'> 1472 <div id='divPendTrans
'> 1473 <div class='col-xs-12
'> 1474 <h4 id='hcuPendingHdr
'><?php echo $MC->msg("Pending Transactions", HCU_DISPLAY_AS_HTML); ?></h4> 1476 <div class='col-xs-12
'> 1477 <div id="hcuTablePending" class="hcu-grid-style"></div> 1483 <div class='row initiallyHide
'> 1484 <div class='col-xs-12
' style="max-width: 500px;"> 1485 <form id="search-transactions" method="post" action="hcuHistory.data?cu=<?php echo $HB_ENV['cu
']; ?>"> 1486 <div class="well well-sm"> 1487 <h3><?php echo $MC->msg("Search Transactions", HCU_DISPLAY_AS_HTML) ?></h3> 1490 <div class="col-xs-12 col-sm-4 local-field-margin"> 1491 <select id="histDateRange" title="<?php echo $MC->msg("Search Transactions Date Range", HCU_DISPLAY_AS_HTML) ?>" class="hcu-all-100"> 1492 <option value="30">30 <?php echo $MC->msg("days", HCU_DISPLAY_AS_HTML); ?></option> 1493 <option value="45">45 <?php echo $MC->msg("days", HCU_DISPLAY_AS_HTML); ?></option> 1494 <option value="90">90 <?php echo $MC->msg("days", HCU_DISPLAY_AS_HTML); ?></option> 1495 <option value=""><?php echo $MC->msg("Custom", HCU_DISPLAY_AS_HTML); ?></option> 1498 <div class="col-xs-12 col-sm-8 local-field-margin"> 1499 <input id="histStartDate" type="text" title="<?php echo $MC->msg("Search History Start Date", HCU_DISPLAY_AS_HTML) ?>" value="" style="width: 110px;"> 1500 <?php echo $MC->msg( "To", HCU_DISPLAY_AS_HTML ); ?> 1501 <input id="histEndDate" type="text" title="<?php echo $MC->msg("Search History End Date", HCU_DISPLAY_AS_HTML) ?>" value="" style="width: 110px;"> 1504 <?php if ( $acctDispType == "D" ) { ?> 1505 <div class="row local-search-label"> 1506 <div class="col-xs-12 local-field-margin"> 1507 <h5 id="searchOptionsAdvancedLabel"> 1508 <span><?php echo $MC->msg("Advanced Search", HCU_DISPLAY_AS_HTML) ?> </span> 1509 <span class="fa fa-chevron-down" id="search-chev" tabindex="0" 1510 title="<?php echo $MC->msg("Open Advanced Search", HCU_DISPLAY_AS_HTML) ?>" 1511 aria-label="<?php echo $MC->msg("Open Advanced Instructions", HCU_DISPLAY_AS_HTML); ?>"></span> 1516 <div class="row" id="searchOptionsAdvanced"> 1517 <div class="col-xs-12 col-sm-4 local-field-margin"> 1518 <label><?php echo $MC->msg("Amount", HCU_DISPLAY_AS_HTML) ?></label> 1519 <input type="text" id="searchAmt" 1520 title="<?php echo $MC->msg("Search Transaction Amount", HCU_DISPLAY_AS_HTML) ?>" 1521 class="k-textbox hcu-all-100" value=""> 1523 <div class="col-xs-12 col-sm-8 local-field-margin"> 1524 <label><?php echo $MC->msg("Description Contains", HCU_DISPLAY_AS_HTML) ?></label> 1525 <input type="text" id="searchDesc" 1526 title="<?php echo $MC->msg("Search Transaction Description", HCU_DISPLAY_AS_HTML) ?>" 1527 class="k-textbox hcu-all-100" value=""> 1530 <?php if ( $hasCheckNumbers ) { ?> 1531 <div class="col-xs-12 col-sm-4 local-field-margin"> 1532 <label><?php echo $MC->msg("Check", HCU_DISPLAY_AS_HTML) ?> #</label> 1533 <input type="text" id="searchCheckNum" 1534 title="<?php echo $MC->msg("Search Check Number", HCU_DISPLAY_AS_HTML) ?>" 1535 class="k-textbox hcu-all-100" value=""> 1543 <div class="col-xs-12 local-field-margin"> 1544 <button type="button" id="searchBtn" 1545 aria-label="<?php echo $MC->msg("Search", HCU_DISPLAY_AS_HTML) ?>" class="k-button k-primary"> 1546 <span class="fa fa-search"></span> 1547 <span> <?php echo $MC->msg("Select", HCU_DISPLAY_AS_HTML) ?></span> 1555 <div class='col-xs-12
'> 1556 <div class="hidden-xs hcu-grid-style" id="hcuAcctLedgerDiv"> 1557 <div id="hcuAcctLedger"></div> 1559 <div class="visible-xs-block hcu-grid-style" id="hcuMobileLedgerDiv"> 1560 <div id="hcuMobileLedger"></div> 1562 <div id="detailWindow"></div> 1563 <div id="checkWindow"></div> 1566 <script type="text/x-kendo-template" id="toolbar-template"> 1568 <?php if (HCU_array_key_value('out_of_sync
', $curAcctInfo)): ?> 1569 <div class="local-sync-error" style='float:left
'> 1570 <span class="fa fa-exclamation-triangle"></span> 1571 <span><?php echo $MC->msg('Unable to load
'); ?></span> 1574 <button type="button" style='float:right
' class="k-button" id="printGrid"></button> 1577 <script type="text/x-kendo-template" id="pending-toolbar-template"> 1579 <div class="col-xs-12 local-sync-error"> 1580 <span class="fa fa-exclamation-triangle"></span> 1581 <span><?php echo $MC->msg('Unable to load
'); ?></span> 1585 <script type="text/x-kendo-template" id="templateDetail"> 1586 <div class="panel panel-default container-fluid" id="txnDetail"> 1587 <?php if ($acctDispType == 'L
'): ?> 1588 <div class="summary-row" tabindex="0"> 1589 <div class="summary-desc"><?php echo $MC->msg('Date
', HCU_DISPLAY_AS_JS); ?></div> 1590 <div class="summary-value">#= date #</div> 1592 <?php if (($HB_ENV['Fset
'] & GetFlagsetValue("CU_SHOWLNTXNDESC")) == GetFlagsetValue("CU_SHOWLNTXNDESC")): ?> 1593 <div class="summary-row" tabindex="0"> 1594 <div class="summary-desc"><?php echo $MC->msg('Description
', HCU_DISPLAY_AS_JS); ?></div> 1595 <div class="summary-value">#: description #</div> 1598 <?php if (($HB_ENV['Fset
'] & GetFlagsetValue("CU_SHOWLNTXNSPLIT")) == GetFlagsetValue("CU_SHOWLNTXNSPLIT")): ?> 1599 <div class="summary-row" tabindex="0"> 1600 <div class="summary-desc"><?php echo $MC->msg('Principal
', HCU_DISPLAY_AS_JS); ?></div> 1601 <div class="summary-value">#= kendo.toString(principal, "c") #</div> 1603 <div class="summary-row" tabindex="0"> 1604 <div class="summary-desc"><?php echo $MC->msg('Interest
', HCU_DISPLAY_AS_JS); ?></div> 1605 <div class="summary-value">#= kendo.toString(interest, "c") #</div> 1608 <?php if (($HB_ENV['Fset2
'] & GetFlagsetValue("CU2_ESCHEMA")) == GetFlagsetValue("CU2_ESCHEMA")): ?> 1609 <?php if (($HB_ENV['Fset2
'] & GetFlagsetValue("CU2_SHOW_LN_FEE")) == GetFlagsetValue("CU2_SHOW_LN_FEE")): ?> 1610 <div class="summary-row" tabindex="0"> 1611 <div class="summary-desc"><?php echo $MC->msg('Fee
', HCU_DISPLAY_AS_JS); ?></div> 1612 <div class="summary-value">#= kendo.toString(fee, "c") #</div> 1615 <?php if (($HB_ENV['Fset2
'] & GetFlagsetValue("CU2_SHOW_LN_ESCROW")) == GetFlagsetValue("CU2_SHOW_LN_ESCROW")): ?> 1616 <div class="summary-row" tabindex="0"> 1617 <div class="summary-desc"><?php echo $MC->msg('Escrow
', HCU_DISPLAY_AS_JS); ?></div> 1618 <div class="summary-value">#= kendo.toString(escrow, "c") #</div> 1622 <div class="summary-row" tabindex="0"> 1623 <div class="summary-desc"><?php echo ($HB_ENV['Fset
'] & GetFlagsetValue("CU_SHOWLNTXNSPLIT")) == GetFlagsetValue("CU_SHOWLNTXNSPLIT") ? $MC->msg('Amount
', HCU_DISPLAY_AS_JS) : $MC->msg('Payment
', HCU_DISPLAY_AS_JS); ?></div> 1624 <div class="summary-value">#= kendo.toString(totalpay, "c") #</div> 1626 <?php if (($HB_ENV['Fset
'] & GetFlagsetValue("CU_LNBALUNUSABLE")) != GetFlagsetValue("CU_LNBALUNUSABLE")): ?> 1627 <div class="summary-row" tabindex="0"> 1628 <div class="summary-desc"><?php echo $MC->msg('Balance
', HCU_DISPLAY_AS_JS); ?></div> 1629 <div class="summary-value">#= kendo.toString(balance, "c") #</div> 1632 <?php elseif ($acctDispType == 'C
'): ?> 1633 <div class="summary-row" tabindex="0"> 1634 <div class="summary-desc"><?php echo $MC->msg('Date
', HCU_DISPLAY_AS_JS); ?></div> 1635 <div class="summary-value">#= date #</div> 1637 <div class="summary-row" tabindex="0"> 1638 <div class="summary-desc"><?php echo $MC->msg('Description
', HCU_DISPLAY_AS_JS); ?></div> 1639 <div class="summary-value">#: description #</div> 1641 <?php if (($HB_ENV['Fset2
'] & GetFlagsetValue("CU2_ESCHEMA")) == GetFlagsetValue("CU2_ESCHEMA")): ?> 1642 <?php if (($HB_ENV['Fset2
'] & GetFlagsetValue("CU2_SHOW_LN_FEE")) == GetFlagsetValue("CU2_SHOW_LN_FEE")): ?> 1643 <div class="summary-row" tabindex="0"> 1644 <div class="summary-desc"><?php echo $MC->msg('Fee
', HCU_DISPLAY_AS_JS); ?></div> 1645 <div class="summary-value">#= kendo.toString(fee, "c") #</div> 1649 <div class="summary-row" tabindex="0"> 1650 <div class="summary-desc"><?php echo $MC->msg('Amount
', HCU_DISPLAY_AS_JS); ?></div> 1651 <div class="summary-value">#= kendo.toString(totalpay, "c") #</div> 1653 <?php if (($HB_ENV['Fset
'] & GetFlagsetValue("CU_LNBALUNUSABLE")) != GetFlagsetValue("CU_LNBALUNUSABLE")): ?> 1654 <div class="summary-row" tabindex="0"> 1655 <div class="summary-desc"><?php echo $MC->msg('Balance
', HCU_DISPLAY_AS_JS); ?></div> 1656 <div class="summary-value">#= kendo.toString(balance, "c") #</div> 1660 <div class="summary-row" tabindex="0"> 1661 <div class="summary-desc"><?php echo $MC->msg('Date
', HCU_DISPLAY_AS_JS); ?></div> 1662 <div class="summary-value">#= date #</div> 1664 <?php if ($curAcctInfo['deposittype
'] == 'Y
'): ?> 1666 <div class="summary-row" tabindex="0"> 1667 <div class="summary-desc"><?php echo $MC->msg('Check Number
', HCU_DISPLAY_AS_JS); ?></div> 1668 <div class="summary-value"> 1669 # if ( checkno !== null) { # 1670 # if ( checkno !== "0" && checkno.length > 0 ) { # 1671 <div onClick="showCheckImage('#= ckitem #
', '#= ckhash #
' );" > 1672 #= checkno # <?php if (($Fset & GetFlagsetValue("CU_SHOWIMAGES")) > 0) { ?> <span class='fa fa-eye
'></span> <?php } ?> 1679 <div class="summary-row" tabindex="0"> 1680 <div class="summary-desc"><?php echo $MC->msg('Description
', HCU_DISPLAY_AS_JS); ?></div> 1681 <div class="summary-value">#: description #</div> 1683 <div class="summary-row" tabindex="0"> 1684 <div class="summary-desc"><?php echo $MC->msg('Amount
', HCU_DISPLAY_AS_JS); ?></div> 1685 <div class="summary-value">#= kendo.toString(amount, "c") #</div> 1687 <div class="summary-row" tabindex="0"> 1688 <div class="summary-desc"><?php echo $MC->msg('Balance
', HCU_DISPLAY_AS_JS); ?></div> 1689 <div class="summary-value">#= kendo.toString(balance, "c") #</div> 1700 // ** INCLUDE POST CONTENT SCRIPT 1701 require_once(dirname(__FILE__) . '/../includes/hcuPostContent.i
'); 1716 function SetInitialHideProperty($detect) {
1717 if ($detect->isiOS() && ($detect->version('iPad
') == '9_3_5
')) {