18 require_once(dirname(__FILE__) .
'/../library/permissions.i');
21 $serviceShowInfo =
true;
22 $serviceLoadMenu =
true;
23 $serviceShowMenu =
true;
24 $serviceLiveCheck =
true;
27 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
30 require_once(dirname(__FILE__) .
'/../library/hcuTransferScheduled.i');
33 require_once(dirname(__FILE__) .
'/../library/hcuACH.i');
35 $string= array(
"filter" => FILTER_SANITIZE_STRING);
38 $DATETIME_FORMAT =
'Y-m-d\TH:i:s.000P';
41 $dms_ok = array(
"security_email"=>$string,
"btnSubmit"=>$string,
42 "security_egenl"=>$string,
"security_valid"=>$string);
44 HCU_ImportVars($HB_ENV,
'HCUPOST', $dms_ok);
47 $today =
new DateTimeImmutable(
'now',
new DateTimeZone(trim($HB_ENV[
"tz"])));
54 PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_TRANSFERS,
'create');
58 $perTransactionLimits = array(
60 FEATURE_EXTERNAL_TRANSFERS,
63 $perTransactionAmounts = array();
65 foreach ($perTransactionLimits as $key => $value) {
66 $permissionInputs = array(
"feature" => $value);
67 $limits = Perm_GetValidationLimits( $dbh, $HB_ENV, $permissionInputs );
69 if ($limits ===
false) {
70 $perTransactionAmounts[$value] = 0;
72 $perTransactionAmounts[$value] = floatval( $limits[
"amount_per_transaction"] );
82 $allowScheduled = (($HB_ENV[
'flagset2'] & $GLOBALS[
'CU2_PROCRECUR']) && PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_SCHEDULED_TRANSFERS,
'',
false));
83 $disallowTransfersToDiffAccount = ($HB_ENV[
"flagset3"] & GetFlagsetValue(
"CU3_DISALLOW_MULT_ACCOUNTS_TRANSFER")) !== 0;
85 $transferFrequencyList = TxIntervalList($HB_ENV[
"MC"]);
86 $transferContinueList = TxContinueList($HB_ENV[
"MC"]);
89 $permissionInputs = array(
"feature" => FEATURE_M2M_TRANSFERS );
90 $permissionM2M = Perm_AccessRights( $dbh, $HB_ENV, $permissionInputs );
93 $isLive = $HB_ENV[
'live'] == 0 ? false :
true;
99 $Transfer_List_ary = TX_list($dbh, $HB_ENV);
102 setFmsgTxCookie($HB_ENV, $Transfer_List_ary);
105 $acctFromListAry[] = Array(
"acctText" =>
'',
"acctValue" =>
'',
"acctAvail" =>
'',
'acctClass' =>
'',
'acctGroup' =>
'',
'acctOrder'=>
'');
106 $acctToListAry[] = Array(
"acctText" =>
'',
"acctValue" =>
'',
"acctAvail" =>
'',
'acctClass' =>
'',
'acctGroup' =>
'',
'acctOrder'=>
'');
107 $acctFromListAry = Array();
108 $acctToListAry = Array();
118 $fromAccountCount = 0;
121 if (count($Transfer_List_ary[
'acctlist']) > 0) {
122 foreach ($Transfer_List_ary[
'acctlist'] as $acct_key => $acct_values) {
126 if ($acct_values[
'from'] ==
'Y' && !$acct_values[
'out_of_sync']) {
128 $historyAcct = explode(
'|', $acct_key);
129 switch ($historyAcct[0]) {
135 Array(
"desc" => $MC->msg(
'Available', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'available']),
136 Array(
"desc" => $MC->msg(
'Balance', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'balance'])
142 $acctFromListAry[] = Array(
143 "acctText" => htmlspecialchars_decode(mobile_displayhtml($acct_values[
'description']), ENT_QUOTES),
144 "acctValue" => mobile_displayhtml($acct_key),
145 "acctAvail" => $acct_values[
'available'],
146 "acctInfo" => $acctInfo,
147 'acctClass' => $acct_values[
'acctclass'],
148 'acctGroup' => $acct_values[
'item-group'],
149 'acctOrder' => $acctOrder,
150 "permissionAcct" => $acct_values[
"member"]
156 if ($acct_values[
'to'] ==
'Y' && !$acct_values[
'out_of_sync']) {
158 $historyAcct = explode(
'|', $acct_key);
161 if ($acct_values[
'acctclass'] ==
"M" && !($isLive && $permissionM2M[
'access'])) {
168 if ($acct_values[
'trust'] !=
'transfer' && $acct_values[
'view_balances'] ==
'Y') {
169 switch ($historyAcct[0]) {
172 Array(
"desc" => $MC->msg(
'Balance', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'balance'])
177 Array(
"desc" => $MC->msg(
'Payoff', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'payoff']),
178 Array(
"desc" => $MC->msg(
'Balance', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'balance']),
179 Array(
"desc" => $MC->msg(
'Payment', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'paymentdue'])
184 Array(
"desc" => $MC->msg(
'Payoff', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'payoff']),
185 Array(
"desc" => $MC->msg(
'Balance', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'balance']),
186 Array(
"desc" => $MC->msg(
'Payment', HCU_DISPLAY_AS_RAW),
"value" => $acct_values[
'paymentdue'])
191 $acctToListAry[] = Array(
192 "acctText" => htmlspecialchars_decode($acct_values[
'description'], ENT_QUOTES),
193 "acctValue" => mobile_displayhtml($acct_key),
194 "acctInfo" => $acctInfo,
195 'acctClass' => $acct_values[
'acctclass'],
196 'acctGroup' => $acct_values[
'item-group'],
197 'acctOrder' => $acctOrder,
198 "permissionAcct" => $acct_values[
"member"]
205 if ($isLive && $permissionM2M[
'access']) {
206 $acctToListAry[] = array(
207 "acctText" => $MC->msg(
"Transfer to another member", HCU_DISPLAY_AS_RAW),
208 "acctValue" =>
"M|" . $HB_ENV[
'Uid'] .
"|0",
209 "acctInfo" => array(),
211 "acctGroup" =>
"6 - " . $MC->msg(
"Other Member Accounts", HCU_DISPLAY_AS_RAW),
212 "acctOrder" => $acctOrder
218 $accountTypes = array(
219 array(
"type" => 10,
"display" => $MC->msg(
"ACH Checking", HCU_DISPLAY_AS_HTML) ),
220 array(
"type" => 20,
"display" => $MC->msg(
"ACH Savings", HCU_DISPLAY_AS_HTML) ));
233 WHERE cu = '{$HB_ENV['Cu']}' AND role = 'transfernotify'";
234 $em_rs = db_query($sql, $dbh);
235 list($notifyemail) = db_fetch_array($em_rs, 0);
236 db_free_result($em_rs);
244 $cuTransTypesAllowed = Get_HaveTrans($dbh, $HB_ENV);
246 if (($HB_ENV[
'Fset'] & $CU_MAILTXNS) && trim($notifyemail) ==
"") {
249 $serviceErrorMsg = $MC->msg(
'Option not set', HCU_DISPLAY_AS_HTML);
250 $serviceErrorCode =
'915';
252 require_once(dirname(__FILE__) .
'/../includes/hcuErrorPage.i');
255 } elseif ($HB_ENV[
'live'] && (($HB_ENV[
'Fset3'] & GetFlagsetValue(
'CU3_API_XAC')) && ($HB_ENV[
'Fmsg_tx'] & GetMsgTxValue(
'MSGTX_TMP_XAX_LD')) == 0)) {
257 $serviceErrorCode =
'911';
259 require_once(dirname(__FILE__) .
'/../includes/hcuErrorPage.i');
262 } elseif (count($acctFromListAry) < 1 || count($acctToListAry) <= 1) {
264 $serviceErrorMsg = $MC->msg(
"No valid accounts transfer", HCU_DISPLAY_AS_HTML);
265 $serviceErrorCode =
'915';
267 require_once(dirname(__FILE__) .
'/../includes/hcuErrorPage.i');
275 $noticesAry = Get_NoticeInfo($dbh, $HB_ENV, $MC,
"D",
"transferNotice",
true);
276 $hasNoticeTRN =
false;
277 $hasNoticePopupTRN =
false;
279 $noticeLinkDisplayTRN =
"";
281 if ( $noticesAry[
"status"][
"code"] ==
"000" && HCU_array_key_exists(
'0', $noticesAry[
'notice'])) {
282 if ($noticesAry[
"notice"][0][
"notice_id"] ) {
284 $hasNoticeTRN =
true;
285 $noticeOption = $noticesAry[
'notice'][0];
287 $noticeOptions = Array (
288 'docsid' => $noticeOption[
'notice_id'],
289 'docstype' => $noticeOption[
'notice_type'],
292 'expireTime' => mktime() + 86400
295 $encryptedDocDetails= HCU_PayloadEncode($HB_ENV[
'Cu'], $noticeOptions);
297 $noticeOptions[
'noticeOnly'] = 1;
299 $encryptedDocDetailsNoticeOnly= HCU_PayloadEncode($HB_ENV[
'Cu'], $noticeOptions);
303 if ($noticeOption[
'notice_popup'] > 0) {
304 $hasNoticePopupTRN =
true;
305 $noticeURLTRN = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetails);
308 $noticeURLNoticeOnly = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetailsNoticeOnly);
315 $noticesAry = Get_NoticeInfo($dbh, $HB_ENV, $MC,
"D",
"rptTransferTerms",
true);
317 $hasTermsRPT =
false;
318 $hasTermsPopupRPT =
false;
320 $termsLinkDisplayRPT =
"";
322 if ( $noticesAry[
"status"][
"code"] ==
"000" && HCU_array_key_exists(
'0', $noticesAry[
'notice'])) {
323 if ($noticesAry[
"notice"][0][
"notice_id"] ) {
325 $noticeOption = $noticesAry[
'notice'][0];
327 $noticeOptions = Array (
328 'docsid' => $noticeOption[
'notice_id'],
329 'docstype' => $noticeOption[
'notice_type'],
332 'expireTime' => mktime() + 86400
335 $encryptedDocDetails= HCU_PayloadEncode($HB_ENV[
'Cu'], $noticeOptions);
337 $noticeOptions[
'noticeOnly'] = 1;
339 $encryptedDocDetailsNoticeOnly= HCU_PayloadEncode($HB_ENV[
'Cu'], $noticeOptions);
343 $termsURLRPT = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetails);
346 $termsURLNoticeOnly = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetailsNoticeOnly);
349 $hasTermsPopupRPT = $noticeOption[
"notice_popup"] ? true :
false;
351 $termsButtonText = $noticeOption[
"notice_linkdisplay"];
358 $noticesAry = Get_NoticeInfo($dbh, $HB_ENV, $MC,
"D",
"m2mAccountTerms",
true);
360 $hasTermsM2M =
false;
361 $hasTermsPopupM2M =
false;
363 $termsLinkDisplayM2M =
"";
365 if ( $noticesAry[
"status"][
"code"] ==
"000" && HCU_array_key_exists(
'0', $noticesAry[
'notice'])) {
366 if ($noticesAry[
"notice"][0][
"notice_id"] ) {
368 $noticeOption = $noticesAry[
'notice'][0];
370 $noticeOptions = Array (
371 'docsid' => $noticeOption[
'notice_id'],
372 'docstype' => $noticeOption[
'notice_type'],
375 'expireTime' => mktime() + 86400
378 $encryptedDocDetails= HCU_PayloadEncode($HB_ENV[
'Cu'], $noticeOptions);
380 $noticeOptions[
'noticeOnly'] = 1;
382 $encryptedDocDetailsNoticeOnly= HCU_PayloadEncode($HB_ENV[
'Cu'], $noticeOptions);
386 $termsURLM2M = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetails);
389 $termsURLNoticeOnly = $HB_ENV[
'homebankingpath'] .
'/hcuViewNotice.prg?cu=' . $HB_ENV[
'cu'] .
'&x=' . urlencode($encryptedDocDetailsNoticeOnly);
392 $hasTermsPopupM2M = $noticeOption[
"notice_popup"] ? true :
false;
394 $termsButtonText = $noticeOption[
"notice_linkdisplay"];
402 $achCutoffMessageString = ACH_GetCutoffTimeMessage($HB_ENV);
405 require_once(dirname(__FILE__) .
'/../includes/hcuPreContent.i');
411 <script type=
"text/javascript">
413 var sourceFreqListAry = <?php echo HCU_JsonEncode($transferFrequencyList); ?>;
414 var sourceContListAry = <?php echo HCU_JsonEncode($transferContinueList); ?>;
415 var sourceAcctListAry = <?php print HCU_JsonEncode($acctFromListAry); ?>;
416 var targetAcctListAry = <?php print HCU_JsonEncode($acctToListAry); ?>;
417 var acctTypes = <?php print HCU_JsonEncode($accountTypes); ?>;
419 var sourceConfirmResp = [];
423 var noticeTRN = <?php echo HCU_JsonEncode($hasNoticeTRN && $hasNoticePopupTRN); ?>;
424 var termsRPT = <?php echo HCU_JsonEncode($hasTermsRPT && $hasTermsPopupRPT); ?>;
425 var termsM2M = <?php echo HCU_JsonEncode($hasTermsM2M && $hasTermsPopupM2M); ?>;
426 var allowScheduled = <?php echo HCU_JsonEncode($allowScheduled); ?>;
427 var allowMember2Member = <?php echo HCU_JsonEncode($isLive && $permissionM2M[
'access']); ?>;
428 var perTransactionAmounts = <?php echo HCU_JsonEncode($perTransactionAmounts); ?>;
431 var confirmWindow =
null;
432 var responseWindow =
null;
433 var dsTransfer =
null;
434 var dsTransferTo =
null;
435 var windowStack = [];
436 var printAction =
false;
438 function selectSourceAcct(e) {
440 var dropdownData = dropdown.dataItem(e.item.index() + 1);
442 if (dropdownData.acctAvail !== undefined) {
443 $(
'#txAmount').data(
"kendoNumericTextBox").max(dropdownData.acctAvail);
445 $(
'#txAmount').data(
"kendoNumericTextBox").max(0);
447 $(
'#txAmount').data(
"kendoNumericTextBox").value(
"");
452 dropdownData.acctInfo.acctClass = dropdownData.acctClass;
454 SetAcctInfo(
"txFromSuffixInfo", dropdownData.acctInfo);
456 $(
"[name='txFromMember']").val(dropdownData.permissionAcct); <?php
459 function selectTargetAcct(e) {
460 var dropdown = e.sender;
461 var dropdownData = e.dataItem;
462 var acctValueParts = dropdownData.acctValue.split(
"|");
467 if ((acctValueParts[0] ==
"O") || (acctValueParts[0] ===
"M" && acctValueParts[2] ==
"0")) {
469 if (allowScheduled) {
470 var today =
new Date(
'<?php echo $today->format($DATETIME_FORMAT); ?>');
472 $(
"#txDateStart").data(
"kendoDatePicker").min(today);
473 $(
"#txDateStart").data(
"kendoDatePicker").value(today);
474 $(
"#txDateEnd").data(
"kendoDatePicker").value(
null);
475 $(
"#txContinue").data(
"kendoDropDownList").value(
"continuous");
476 $(
"#txFrequency").data(
"kendoDropDownList").value(
"OneTime");
478 $(
"#transferDivContinue").hide();
479 $(
"#continueUntilSpan").hide();
480 $(
"#txScheduledFields").hide();
485 if (acctValueParts[0] ===
"M" && acctValueParts[2] ==
"0") {
487 $(
"#txMemAccount").attr(
"required",
"required");
488 $(
"#txMemName").attr(
"required",
"required");
489 $(
"#txMemType").attr(
"required",
"required");
490 $(
".local-hide-member-inp").show();
492 }
else if (acctValueParts[0] ==
"O") {
495 $(
"#txMemAccount").removeAttr(
"required");
496 $(
"#txMemName").removeAttr(
"required");
497 $(
"#txMemType").removeAttr(
"required");
498 $(
".local-hide-member-inp").hide();
500 $(
"#txMemAccount").removeAttr(
"required");
501 $(
"#txMemName").removeAttr(
"required");
502 $(
"#txMemType").removeAttr(
"required");
503 $(
".local-hide-member-inp").hide();
505 if (allowScheduled) {
507 $(
"#txFrequency").data(
"kendoDropDownList").enable(
true);
508 $(
"#txDateStart").data(
"kendoDatePicker").enable(
true);
509 $(
"#txScheduledFields").show();
513 if ( acctValueParts.length > 2 && acctValueParts[2].substr( 0, 1 ) ===
"P" && acctValueParts[0].substr( 0, 1 ) ===
'O') {
515 $(
"#reqComment").show();
516 $(
"#xferComment").hide();
517 $(
"#confPaymentComment").show();
518 $(
"#confTransferComment").hide();
519 $(
"#ccPayNote").show();
523 $(
"#reqComment").hide();
524 $(
"#xferComment").show();
525 $(
"#confPaymentComment").hide();
526 $(
"#confTransferComment").show();
527 $(
"#ccPayNote").hide();
533 dropdownData.acctInfo.acctClass = dropdownData.acctClass;
535 SetAcctInfo(
"txToSuffixInfo", dropdownData.acctInfo);
537 $(
"[name='txToMember']").val(dropdownData.permissionAcct); <?php
542 function checkTermsTargetAcct(e) {
543 var dropdown = e.sender;
544 var dropdownData = e.dataItem;
545 var dropdownValue = dropdown.value();
546 var acctValueParts = dropdownData.acctValue.split(
"|");
548 switch (acctValueParts[0]) {
551 ShowNotice(
"<?php echo $termsURLM2M; ?>",
"<?php echo $termsLinkDisplayM2M; ?>",
564 e.sender.value(dropdownValue);
578 function setDataAttributes(showContinue) {
580 $(
"label[for='txDateStart']").text(
"<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_JS); ?>");
581 $(
"#txDateStart").attr(
"data-required-msg",
582 "<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_HTML) ?>: " +
583 "<?php echo $MC->msg('is a Required Field', HCU_DISPLAY_AS_HTML); ?>");
584 $(
"#txDateStart").attr(
"data-homecuCustomMatch-msg",
585 "<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_HTML) ?>: " +
586 "<?php echo $MC->msg('is not a valid date', HCU_DISPLAY_AS_HTML); ?>");
587 $(
"#txDateStart").attr(
"data-homecuCustomDateGTValue-msg",
588 "<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_HTML) ?>: " +
589 "<?php echo $MC->msg('must be future date', HCU_DISPLAY_AS_HTML); ?>");
591 $(
"label[for='txDateStart']").text(
"<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_JS); ?>");
592 $(
"#txDateStart").attr(
"data-required-msg",
593 "<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: " +
594 "<?php echo $MC->msg('is a Required Field', HCU_DISPLAY_AS_HTML); ?>");
595 $(
"#txDateStart").attr(
"data-homecuCustomMatch-msg",
596 "<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: " +
597 "<?php echo $MC->msg('is not a valid date', HCU_DISPLAY_AS_HTML); ?>");
598 $(
"#txDateStart").attr(
"data-homecuCustomDateGTValue-msg",
599 "<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: " +
600 "<?php echo $MC->msg('must be future date', HCU_DISPLAY_AS_HTML); ?>");
604 function SetAcctInfo(pInfoName, pValues) {
605 var info = $(
"#" + pInfoName);
606 var infoTemplate = kendo.template($(
"#acctInfo").html());
607 var infoHtml = infoTemplate(pValues);
610 info.append(infoHtml);
612 function getAcctSeg(pField, pSeg) {
613 var fieldName = (pField ===
'from' ?
'txFromSuffix' :
'txToSuffix');
617 var listField = $(
'#' + fieldName).data(
'kendoDropDownList');
618 var dataItem = listField.dataItem(listField.select());
620 if (dataItem.acctValue !== undefined) {
621 var segments = dataItem.acctValue.split(
'|');
624 retVal = segments[0];
627 retVal = segments[1];
630 retVal = segments[2];
632 case "permissionAcct":
633 retVal = dataItem[
"permissionAcct"]; <?php
640 function InitDataSources() {
646 url:
'hcuTransfer.data?cu=<?php echo $HB_ENV['cu
']; ?>',
650 beforeSend:
function() {
651 ShowWaitWindow(
'<?php echo $MC->msg("Please Wait", HCU_DISPLAY_AS_JS); ?>...');
654 success:
function(result) {
656 error:
function(result) {
659 parameterMap:
function(data, operation) {
660 if (operation ===
'read') {
662 return $(
'#formTransfer').serialize();
667 errors:
function(response) {
672 if (response[
'Results']) {
674 if (response[
'Results'][0]) {
676 if (response[
'Results'][0][
'homecuErrors']) {
677 if (response[
'Results'][0][
'homecuErrors'].length > 0) {
678 return {error: response[
'Results'][0][
'homecuErrors']};
682 throw "<?php echo $MC->msg('Error parsing server', HCU_DISPLAY_AS_JS) ?>";
685 throw "<?php echo $MC->msg('Error parsing server', HCU_DISPLAY_AS_JS) ?>";
692 parse:
function(response) {
698 dataxyz:
function(response) {
700 var dataResponse = [];
701 var dataInfo = { homecuErrors:
'test', homecuInfo:
'Info Others', homecuData:
'Sample Data'};
702 dataResponse.push(dataInfo);
713 if (e.errors.error.length > 0) {
714 $.homecuValidator.displayMessage(e.errors.error, $.homecuValidator.settings.statusError);
718 $.homecuValidator.displayMessage(
'<?php echo $MC->msg('Transfer Error
', HCU_DISPLAY_AS_JS); ?>', $.homecuValidator.settings.statusError);
721 requestEnd:
function (e) {
727 dsTransfer =
new kendo.data.DataSource(definition);
729 var transferToDefinition = $.extend(
true, {}, definition);
730 transferToDefinition.transport.read.url =
'hcuTransfer.data?cu=<?php echo $HB_ENV['cu
']; ?>&action=GetTransferToOptions';
733 transferToDefinition.group = {field:
"acctGroup"};
734 transferToDefinition.sort = {field:
"acctOrder", dir:
"asc"};
736 transferToDefinition.schema.data =
function (response) {
737 var returnVal = response ==
null || response.Results ==
null || response.Results[0] ==
null ? [] : response.Results[0].homecuData;
740 if (returnVal.length == 0) {
741 var emptyToDialog = $(
"#emptyToDialog").data(
"kendoDialog");
742 if (emptyToDialog ==
null) {
743 emptyToDialog = $(
"<div id='emptyToDialog'></div>").appendTo(
"body").kendoDialog({
744 content: $(
"#emptyToTemplate").html(),
747 title:
"<?php echo $MC->msg('Feature Unavailable', HCU_DISPLAY_AS_HTML); ?>",
749 {text:
"<?php echo $MC->msg('Okay', HCU_DISPLAY_AS_JS); ?>", primary:
true}
752 windowStack.push(
this);
757 }).data(
"kendoDialog");
760 emptyToDialog.open();
765 dsTransferTo =
new kendo.data.DataSource(transferToDefinition);
768 function InitDataViews() {
769 confirmWindow = $(
"<div id='confirmTransfer'></div>").appendTo(
"body").kendoDialog({
770 content: $(
"#confirmTransferTemplate").html(),
774 title:
'<?php echo $MC->msg('CONFIRM TRANSACTION
', HCU_DISPLAY_AS_JS); ?>',
779 { text:
'<?php echo $MC->msg("Cancel", HCU_DISPLAY_AS_JS); ?>',
780 action:
function(e) { }
782 { text:
'<?php echo $MC->msg("Confirm", HCU_DISPLAY_AS_JS); ?>', primary:
true,
783 action:
function(e) {
785 dsTransfer.fetch(
function() {
786 var data = dsTransfer.data();
789 var javascriptTemplate = kendo.template($(
"#confirmationTemplate").html());
790 var javascriptData = {};
794 if (data[0].homecuData) {
795 javascriptData = {
"homecuData":data[0].homecuData};
797 javascriptData = {
"homecuData":
""};
800 responseWindow.html(javascriptTemplate(javascriptData));
801 winObject = responseWindow.kendoDialog({
805 title:
'<?php echo $MC->msg('Transfer Confirmation
', HCU_DISPLAY_AS_JS); ?>',
810 { text:
'<?php echo $MC->msg("Close", HCU_DISPLAY_AS_JS); ?>', primary:
true,
811 action:
function(e) { }
815 windowStack.push(
this);
821 document.location=
"<?php echo "{$HB_ENV[
'loginpath']}/hcuTransfer.prg?{$HB_ENV[
'cuquery']}
"; ?>";
823 }).data(
"kendoDialog").open();
830 windowStack.push(
this);
836 responseWindow = $(
'<div id="responseWindow"/>');
840 if (allowScheduled) {
841 $(
"#txScheduledFields").show();
843 $(
"#txScheduledFields").hide();
846 $(
'#txFromSuffix').kendoDropDownList({
847 dataTextField:
"acctText",
848 dataValueField:
"acctValue",
849 optionLabel:
'<?php echo $MC->msg('From Account
', HCU_DISPLAY_AS_JS); ?>',
850 OLDtdataSource: sourceAcctListAry,
852 data: sourceAcctListAry,
854 group: { field:
"acctGroup" },
855 sort: { field:
"acctOrder", dir:
"asc" }
857 fixedGroupTemplate:
"#: LocalShowGroupDescription(data) #",
858 groupTemplate:
"#: LocalShowGroupDescription(data) #",
859 select: selectSourceAcct,
860 change:
function (e) { <?php
862 if (this.value() ==
"") {
863 $(
"#txToSuffix").data(
"kendoDropDownList").value(
"");
864 $(
"#txToSuffix").data(
"kendoDropDownList").enable(
false);
866 $(
".local-hide-member-inp").hide();
867 $(
"#reqComment").hide();
868 $(
"#transferDivContinue").hide();
869 $(
"#continueUntilSpan").hide();
870 $(
"#txFromSuffixInfo").hide();
871 $(
"#txToSuffixInfo").hide();
873 $(
"#txFromSuffixInfo").show();
874 $(
"#txToSuffix").data(
"kendoDropDownList").dataSource.read();
877 template: kendo.template($(
'#acctFromTemplate').html())
880 $(
'#txToSuffix').kendoDropDownList({
881 dataTextField:
"acctText",
882 dataValueField:
"acctValue",
883 optionLabel:
'<?php echo $MC->msg('To Account
', HCU_DISPLAY_AS_JS); ?>',
884 dataSource: dsTransferTo,
885 fixedGroupTemplate:
"#: LocalShowGroupDescription(data) #",
886 groupTemplate:
"#: LocalShowGroupDescription(data) #",
887 select:
function(e) {
891 if (e.item.text() ==
"To Account") {
892 $(
".local-hide-member-inp").hide();
893 $(
"#reqComment").hide();
894 $(
"#transferDivContinue").hide();
895 $(
"#continueUntilSpan").hide();
896 $(
"#txToSuffixInfo").hide();
898 $(
"#txToSuffixInfo").show();
899 checkTermsTargetAcct(e);
902 template: kendo.template($(
'#acctToTemplate').html()),
905 dataBound:
function(e) {
906 this.enable(this.dataSource.data().length > 0);
912 if (this.value() ==
"") {
913 $(
".local-hide-member-inp").hide();
914 $(
"#reqComment").hide();
915 $(
"#transferDivContinue").hide();
916 $(
"#continueUntilSpan").hide();
917 $(
"#txToSuffixInfo").hide();
923 if (allowScheduled) {
924 $(
'#txFrequency').kendoDropDownList({
925 dataTextField:
"text",
926 dataValueField:
"value",
927 dataSource: sourceFreqListAry,
929 select: checkTermsScheduled
931 $(
'#txContinue').kendoDropDownList({
932 dataTextField:
"text",
933 dataValueField:
"value",
934 dataSource: sourceContListAry,
935 select: selectRepeatContinue
937 $(
'#txDateEnd').kendoDatePicker({
938 format:
'MM/dd/yyyy',
939 min:
new Date(
'<?php echo $today->add(new DateInterval('P2D
'))->format($DATETIME_FORMAT); ?>'),
941 $(
'#txDateStart').kendoDatePicker({
942 format:
'MM/dd/yyyy',
943 value:
new Date(
'<?php echo $today->format($DATETIME_FORMAT); ?>'),
944 min:
new Date(
'<?php echo $today->format($DATETIME_FORMAT); ?>'),
945 change: checkTermsScheduled
949 if (allowMember2Member) {
950 $(
"#txMemType").kendoDropDownList({
951 dataSource: acctTypes,
952 dataTextField:
"display",
953 dataValueField:
"type" 956 $(
"#txMemAccount").kendoMaskedTextBox({
957 mask:
"000000000000",
958 clearPromtChar:
true,
960 var value = this.value();
961 var valueStrip = value.replace(/_/g,
'');
964 for (var i = 0; i < (12 - valueStrip.length); i++) {
968 $(
"#txMemAccount").val(valueStrip + valueMask);
973 $(
"#txAmount").kendoNumericTextBox({
979 placeholder:
'<?php echo $MC->msg('Amount
', HCU_DISPLAY_AS_JS); ?>' 982 $.homecuValidator.setup({formValidate:
'formTransfer', validateOnClick:
'btnTransfer', formErrorTitle:
'<?php echo $MC->msg("Error Occurred", HCU_DISPLAY_AS_JS); ?>'});
984 $(
'#btnTransfer').click(
function() {
989 var otherErrors = Array();
992 fromAcctType = getAcctSeg (
'from',
'type');
993 toAcctType = getAcctSeg (
'to',
'type');
994 toAcctSfx = getAcctSeg (
'to',
'sfx');
995 if (fromAcctType ===
'L' && toAcctType ===
'L') {
996 otherErrors[otherErrors.length] =
'<?php echo $MC->msg('Loan Add-on cannot payment
', HCU_DISPLAY_AS_JS); ?>';
997 }
else if (fromAcctType ===
'X' || toAcctType ===
'X') {
999 if ( (fromAcctType !==
'D' && fromAcctType !==
'L' && toAcctType ===
'X') ||
1000 (toAcctType !==
'D' && toAcctType !==
'L' && fromAcctType ===
'X') ) {
1001 otherErrors[otherErrors.length] =
'<?php echo $MC->msg('Transfer Error external
', HCU_DISPLAY_AS_JS); ?>';
1006 var txAmount = $(
"#txAmount").data(
"kendoNumericTextBox").value();
1009 if (fromAcctType ==
"X" || toAcctType ==
"X") {
1010 txLimit = perTransactionAmounts.TRNEXT;
1011 }
else if (fromAcctType ==
"M" || toAcctType ==
"M") {
1012 txLimit = perTransactionAmounts.TRNM2M;
1014 txLimit = perTransactionAmounts.TRN;
1017 if ( txAmount > txLimit ) {
1018 otherErrors[otherErrors.length] =
'<?php echo $MC->msg('Transfer Amount over allowed
', HCU_DISPLAY_AS_JS); ?>';
1021 <?php
if (!HCU_array_key_exists(
'LC', $cuTransTypesAllowed)): ?>
1022 if (fromAcctType ===
'L' && toAcctSfx ===
'CW') {
1023 otherErrors[otherErrors.length] =
'<?php echo $MC->msg('Loan Add-on cannot check withdrawal
', HCU_DISPLAY_AS_JS); ?>';
1027 if (allowScheduled) {
1028 var transFreq = $(
'#txFrequency').data(
'kendoDropDownList');
1029 if (transFreq.select() > 0) {
1030 if (fromAcctType ===
'L' || toAcctSfx ===
'CW' || toAcctType ==
'O') {
1031 otherErrors[otherErrors.length] =
"<?php echo $MC->msg('Repeating transfer not available', HCU_DISPLAY_AS_JS); ?>";
1035 if ($(
'#txFrequency').data(
'kendoDropDownList').value() ===
'SemiMonthly') {
1036 var repeatDay = $(
'#txDateStart').data(
'kendoDatePicker').value().getDate();
1037 if (repeatDay.toString() !==
'15') {
1039 var lastDayOfMonth =
new Date($(
'#txDateStart').data(
'kendoDatePicker').value().getFullYear(), $(
'#txDateStart').data(
'kendoDatePicker').value().getMonth() + 1, 0);
1040 var lastDay = lastDayOfMonth.getDate();
1041 if (repeatDay !== lastDay) {
1042 otherErrors[otherErrors.length] =
'<?php echo $MC->msg('Repeating Transfer - SemiMonthly Invalid
', HCU_DISPLAY_AS_JS); ?>';
1049 if ($disallowTransfersToDiffAccount) { ?>
1050 var fromAcct = getAcctSeg (
'from',
'permissionAcct');
1051 var toAcct = getAcctSeg (
'to',
'permissionAcct');
1052 var typesRelevant = [
"D",
"L"];
1054 if (typesRelevant.indexOf(fromAcctType) != -1 && typesRelevant.indexOf(toAcctType) != -1 && fromAcct != toAcct) {
1055 otherErrors.push(
'<?php echo $MC->msg('Transfers between accounts are prohibited
', HCU_DISPLAY_AS_JS); ?>');
1060 if (otherErrors.length > 0) {
1061 $.homecuValidator.homecuResetMessage = $.homecuValidator.homecuValidate;
1062 $.homecuValidator.displayMessage(otherErrors, $.homecuValidator.settings.statusError);
1063 $.homecuValidator.homecuResetMessage =
true;
1064 $.homecuValidator.homecuValidate =
false;
1068 if ($.homecuValidator.homecuValidate) {
1070 var txFromSuffixList = $(
"#txFromSuffix").data(
"kendoDropDownList");
1071 $(
'#confFrom').text(txFromSuffixList.text());
1072 var txToSuffixList = $(
"#txToSuffix").data(
"kendoDropDownList");
1073 $(
'#confTo').text(txToSuffixList.text());
1075 $(
'#confAmount').text(
"$" + txAmount.toFixed( 2 ) );
1077 var dropdownlist = $(
"#txToSuffix").data(
"kendoDropDownList");
1078 var dataItem = dropdownlist.dataItem();
1079 var acctValueParts = dataItem.acctValue.split(
"|");
1082 if ( acctValueParts.length > 2 && acctValueParts[2].substr( 0, 1 ) ===
"P" && acctValueParts[0].substr( 0, 1 ) ===
'O' ) {
1086 $(
'#confInfo').html(
'<?php echo $MC->msg("Confirm payment request", HCU_DISPLAY_AS_HTML); ?>');
1091 if ($(
'#paymentComment').length > 0) {
1092 if ($(
'#paymentComment').val() ===
'') {
1093 $(
'#confComment').text(
'');
1094 $(
"#confPaymentComment").hide();
1096 $(
"#confPaymentComment").show();
1097 $(
'#confComment').text($(
"#paymentComment").val());
1100 $(
'#confComment').text(
'');
1101 $(
"#confPaymentComment").hide();
1103 $(
"#confTransferComment").hide();
1109 if ($(
'#txMemo').length > 0) {
1110 if ($(
'#txMemo').val() ===
'') {
1111 $(
'#confComment').text(
'');
1112 $(
"#confTransferComment").hide();
1114 $(
"#confTransferComment").show();
1115 $(
'#confComment').text($(
'#txMemo').val());
1118 $(
'#confComment').text(
'');
1119 $(
"#confTransferComment").hide();
1121 $(
"#confPaymentComment").hide();
1123 if (allowScheduled) {
1125 var dropdownFrequency = $(
"#txFrequency").data(
"kendoDropDownList");
1126 var valueFrequency = $(
"#txFrequency").data(
"kendoDropDownList").value();
1127 var valueContinue = $(
"#txContinue").data(
"kendoDropDownList").value();
1128 var valueStart = $(
"#txDateStart").data(
"kendoDatePicker").value();
1129 var valueEnd = $(
"#txDateEnd").data(
"kendoDatePicker").value();
1131 var messageConfirm =
"";
1132 var messageRepeat =
"";
1134 if (valueFrequency ==
"OneTime") {
1135 messageConfirm =
"<?php echo $MC->msg("Confirm transfer
", HCU_DISPLAY_AS_HTML); ?>";
1136 $(
"#confInfo").html(messageConfirm);
1137 $(
"#confirmRepeatTransfer").empty();
1138 $(
"#confirmRepeatTransfer").hide();
1140 messageRepeat +=
"<?php echo $MC->msg("Transfer will repeat
", HCU_DISPLAY_AS_HTML); ?> ";
1141 messageRepeat += dropdownFrequency.text() +
" ";
1142 messageRepeat +=
"<?php echo $MC->msg("starting on
", HCU_DISPLAY_AS_HTML); ?> ";
1143 messageRepeat += kendo.toString(valueStart,
"MM/dd/yyyy") +
". ";
1145 if (valueContinue ==
"continuous") {
1146 messageRepeat +=
"<?php echo $MC->msg("Transfer does not stop
", HCU_DISPLAY_AS_HTML); ?>";
1148 messageRepeat +=
"<?php echo $MC->msg("stops after
", HCU_DISPLAY_AS_HTML); ?> ";
1149 messageRepeat += kendo.toString(valueEnd,
"MM/dd/yyyy") +
". ";
1152 $(
"#confirmRepeatTransfer").html(messageRepeat);
1153 $(
"#confirmRepeatTransfer").show();
1156 $(
'#confInfo').html(
'<?php echo $MC->msg("Confirm transfer immediate", HCU_DISPLAY_AS_HTML); ?>');
1159 confirmWindow.data(
"kendoDialog").open();
1166 function InitScreen() {
1171 function LocalShowGroupDescription(pString) {
1175 retVal = pString.substring(3);
1183 <?php
if ($allowScheduled): ?>
1186 function checkTermsScheduled(e) {
1188 ShowNotice(
"<?php echo $termsURLRPT; ?>",
"<?php echo $termsLinkDisplayRPT; ?>",
1194 if (e.sender.element[0].id ==
"txFrequency") {
1195 selectRepeatFreq(e);
1204 $(
"#txFrequency").data(
"kendoDropDownList").value(
"OneTime");
1207 $(
"#txDateStart").data(
"kendoDatePicker").value(
1208 new Date(
'<?php echo $today->format($DATETIME_FORMAT); ?>')
1213 if (e.sender.element[0].id ==
"txFrequency") {
1214 selectRepeatFreq(e);
1219 function selectRepeatFreq(e) {
1220 var dropdown = e.sender;
1221 var dropdownData = e.dataItem;
1222 var dropdownValue = dropdownData.value;
1223 var dropdownContinue = $(
"#txContinue").data(
"kendoDropDownList");
1224 var dropdownContinueValue = dropdownContinue.value();
1227 dropdownValue !=
"OneTime";
1230 dropdownContinueValue !=
"continuous";
1232 var labelStart = $(
"label[for='txDateStart']");
1233 var labelStartText = dropdownValue ==
'OneTime' ?
1234 "<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_JS); ?>" :
1235 "<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_JS); ?>";
1238 $(
"#transferDivContinue").show();
1239 $(
"#txDateStart").data(
"kendoDatePicker").min(
1240 new Date(
'<?php echo $today->add(new DateInterval('P1D
'))->format($DATETIME_FORMAT); ?>')
1243 $(
"#transferDivContinue").hide();
1244 $(
"#txDateStart").data(
"kendoDatePicker").min(
1245 new Date(
'<?php echo $today->format($DATETIME_FORMAT); ?>')
1250 $(
"#continueUntilSpan").show();
1251 $(
'#txDateEnd').attr(
'required',
true);
1253 $(
"#continueUntilSpan").hide();
1254 $(
'#txDateEnd').removeAttr(
'required');
1255 $(
"#txDateEnd").data(
"kendoDatePicker").value(
"");
1259 var startVal = $(
"#txDateStart").data(
"kendoDatePicker").value();
1260 var startMin = $(
"#txDateStart").data(
"kendoDatePicker").min();
1261 if (startVal < startMin) {
1262 $(
"#txDateStart").data(
"kendoDatePicker").value(startMin);
1265 setDataAttributes(showContinue);
1267 labelStart.text(labelStartText);
1270 function selectRepeatContinue(e) {
1271 var dropdown =
this;
1272 var dropdownData = dropdown.dataItem(e.item.index());
1273 var dropdownValue = dropdownData.value;
1275 var showEnd = dropdownValue !=
"continuous";
1278 $(
"#continueUntilSpan").show();
1279 $(
'#txDateEnd').attr(
'required',
true);
1281 $(
"#continueUntilSpan").hide();
1282 $(
'#txDateEnd').removeAttr(
'required');
1283 $(
"#txDateEnd").data(
"kendoDatePicker").value(
"");
1287 function setDataAttributes(showContinue) {
1289 $(
"label[for='txDateStart']").text(
"<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_JS); ?>");
1290 $(
"#txDateStart").attr(
"data-required-msg",
1291 "<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_HTML) ?>: " +
1292 "<?php echo $MC->msg('is a Required Field', HCU_DISPLAY_AS_HTML); ?>");
1293 $(
"#txDateStart").attr(
"data-homecuCustomMatch-msg",
1294 "<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_HTML) ?>: " +
1295 "<?php echo $MC->msg('is not a valid date', HCU_DISPLAY_AS_HTML); ?>");
1296 $(
"#txDateStart").attr(
"data-homecuCustomDateGTValue-msg",
1297 "<?php echo $MC->msg('Transfer Start On', HCU_DISPLAY_AS_HTML) ?>: " +
1298 "<?php echo $MC->msg('must be future date', HCU_DISPLAY_AS_HTML); ?>");
1300 $(
"label[for='txDateStart']").text(
"<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_JS); ?>");
1301 $(
"#txDateStart").attr(
"data-required-msg",
1302 "<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: " +
1303 "<?php echo $MC->msg('is a Required Field', HCU_DISPLAY_AS_HTML); ?>");
1304 $(
"#txDateStart").attr(
"data-homecuCustomMatch-msg",
1305 "<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: " +
1306 "<?php echo $MC->msg('is not a valid date', HCU_DISPLAY_AS_HTML); ?>");
1307 $(
"#txDateStart").attr(
"data-homecuCustomDateGTValue-msg",
1308 "<?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: " +
1309 "<?php echo $MC->msg('must be future date', HCU_DISPLAY_AS_HTML); ?>");
1315 $(document).ready(
function() {
1319 ShowNotice(
'<?php echo $noticeURLTRN; ?>',
"<?php echo $noticeLinkDisplayTRN ?>");
1323 $(document).on(
"click",
".k-overlay",
function () {
1324 if(windowStack.length > 0) {
1325 var open = windowStack[windowStack.length-1];
1336 .local-hide-member-inp {
1340 .local-transfer-msg {
1344 .local-transfer-button {
1359 .k-dropdown .k-input,.k-selectbox .k-input {
1360 white-space: normal;
1363 .k-window.transferResponse .k-icon {
1364 background-image: url(
'https://d1kryjpwpzirc7.cloudfront.net/homecu/images/printer.png');
1366 .k-window.transferResponse .k-i-custom,
1367 .k-window.transferResponse .k-state-hover .k-i-custom {
1368 background-position: 0px 0px;
1371 #confirmTransferRows .row:nth-child(odd) { 1372 background-color: #ddd;
1375 .container-fluid-margin {
1379 .k-block > .k-header {
1380 white-space: normal;
1384 .hcu-info-margin, .hcu-error-margin {
1388 .hcu-info-padding, .hcu-error-padding {
1396 .hcu-container-margin {
1400 .local-adjust-container-bottom {
1401 margin-bottom: -15px;
1404 .local-inside-well {
1410 <div
class=
"container-fluid">
1411 <div
class=
'well well-sm col-xs-12' id=
"hcuTransferBlock">
1413 <h3><?php echo $MC->msg(
"Transfer Funds", HCU_DISPLAY_AS_HTML); ?></h3>
1415 <form
id=
'formTransfer' name=
'formTransfer'>
1416 <input type=
'hidden' name=
'txFromMember'> <?php
1417 <input type=
'hidden' name=
'txToMember'>
1419 <div
class=
"col-xs-12 hcu-container-margin">
1420 <label
for=
"txFromSuffix" class=
"hcu-all-100">
1421 <?php echo $MC->msg(
'From', HCU_DISPLAY_AS_HTML); ?>:
1424 <input
id=
'txFromSuffix' name=
'txFromSuffix' class=
'distinctAcct hcu-all-100' 1425 required data-required-msg=
"<?php echo $MC->msg('Select From', HCU_DISPLAY_AS_HTML);?>"/>
1427 <span
class=
"k-invalid-msg" title=
"" 1428 data-
for=
"txFromSuffix">
1430 <span
class=
"k-icon k-warning " ></span>
1433 <div
class=
"col-xs-12" id=
"txFromSuffixInfo"></div>
1436 <div
class=
"col-xs-12">
1437 <label
for=
"txToSuffix" class=
"hcu-all-100">
1438 <?php echo $MC->msg(
'To', HCU_DISPLAY_AS_HTML); ?>:
1441 <input
id=
'txToSuffix' name=
'txToSuffix' class=
'distinctAcct hcu-all-100' 1442 required data-required-msg=
"<?php echo $MC->msg('Select To', HCU_DISPLAY_AS_HTML);?>" 1443 homecu-distinct=
"distinctAcct" 1444 data-homecuCustomDistinct-msg=
'<?php echo $MC->msg('Selected the Same Accounts
', HCU_DISPLAY_AS_HTML); ?>'/>
1445 <span
class=
"k-invalid-msg" title=
"" 1446 data-
for=
"txToSuffix">
1447 <span
class=
"k-icon k-warning"></span>
1450 <div
class=
"col-xs-12" id=
"txToSuffixInfo"></div>
1454 <?php
if ($isLive && $permissionM2M[
'access']) { ?>
1455 <fieldset
class=
"local-hide-member-inp">
1456 <div
class=
"col-sm-12">
1457 <div
class=
"well well-sm local-inside-well">
1458 <div
class=
"row local-adjust-container-bottom">
1459 <div
class=
"col-sm-12 hcu-secondary">
1460 <small
class=
"hcu-secondary-text"><?php echo $MC->msg(
"Transfer Funds sec", HCU_DISPLAY_AS_HTML); ?></small>
1462 <div
class=
"col-xs-12 col-md-4 hcu-container-margin">
1463 <label
for=
"txMemName">
1464 <?php echo $MC->msg(
"Last Name", HCU_DISPLAY_AS_HTML); ?>
1466 <input type=
"" name=
"txMemName" class=
"k-textbox hcu-all-100" 1468 data-required-msg=
"<?php echo $MC->msg("EXT Name On Account required
", HCU_DISPLAY_AS_HTML); ?>">
1470 <div
class=
"col-xs-12 col-md-4 hcu-container-margin">
1471 <label
for=
"txMemAccount">
1472 <?php echo $MC->msg(
"ACH Account", HCU_DISPLAY_AS_HTML) ?>
1474 <input type=
"" name=
"txMemAccount" class=
"hcu-all-100" 1477 data-required-msg=
"<?php echo $MC->msg('ACH Need remote account', HCU_DISPLAY_AS_HTML); ?>">
1479 <div
class=
"col-xs-12 col-md-4 hcu-container-margin">
1480 <label
for=
"txMemType">
1481 <?php echo $MC->msg(
'Account Type', HCU_DISPLAY_AS_HTML); ?>
1483 <input type=
"" name=
"txMemType" class=
"hcu-all-100" 1486 data-required-msg=
"<?php echo $MC->msg('ACH Need remote account type', HCU_DISPLAY_AS_HTML) ?>">
1495 <div
class=
"col-xs-12 col-md-4 hcu-container-margin">
1496 <label
for=
"txAmount" class=
"hcu-all-100">
1497 <?php echo $MC->msg(
'Amount', HCU_DISPLAY_AS_HTML); ?>
1500 <input type=
"number" id=
"txAmount" name=
"txAmount" max=
"0" class=
"hcu-all-100" 1501 placeholder=
"<?php echo $MC->msg('Amount', HCU_DISPLAY_AS_HTML); ?>" 1502 required data-bind=
"value: txAmount" 1503 data-required-msg=
"<?php echo $MC->msg('Enter Amount', HCU_DISPLAY_AS_HTML);?>" 1504 data-max-msg=
"<?php echo $MC->msg('Requested transfer exceeds available funds', HCU_DISPLAY_AS_HTML); ?>"/>
1506 <span
class=
"k-invalid-msg" 1507 data-
for=
"txAmount"></span>
1510 <?php
if (intval($HB_ENV[
'trmemomaxlen']) > 0): ?>
1511 <div
id=
"xferComment" class=
"col-xs-12 col-md-8 hcu-container-margin">
1512 <label
for=
"txMemo" class=
"hcu-all-100">
1513 <?php echo $MC->msg(
'Transfer Comment', HCU_DISPLAY_AS_HTML); ?>
1516 <input type=
"text" id=
"txMemo" name=
"txMemo" class=
"k-textbox hcu-all-100" 1517 placeholder=
"<?php echo $MC->msg('Transfer Comment', HCU_DISPLAY_AS_HTML); ?>" 1518 maxlength=
"<?php echo $HB_ENV['trmemomaxlen']; ?>" 1519 data-bind=
"value: txMemo" 1520 homecu-maxlen=
"<?php echo $HB_ENV['trmemomaxlen']; ?>" 1521 data-homecuCustomMaxLen-msg=
" 1522 <?php echo $MC->msg('Transfer Comment', HCU_DISPLAY_AS_HTML); ?>: 1523 <?php echo $MC->msg('exceeds max length', HCU_DISPLAY_AS_HTML); ?>"/>
1528 <fieldset
id=
'reqComment' style=
"display: none;">
1529 <div
class=
"col-xs-12 hcu-container-margin">
1530 <label
for=
"paymentComment" class=
"hcu-all-100">
1531 <?php echo $MC->msg(
'Comments', HCU_DISPLAY_AS_HTML); ?>
1534 <textarea rows=
'5' cols=
'50' id=
"paymentComment" name=
"paymentComment" class=
"k-textarea hcu-all-100" 1535 data-bind=
"value: txMemo"></textarea>
1537 <div
id=
'reqCCNote' class=
"col-xs-12">
1538 <?php echo $MC->msg(
"NOTE", HCU_DISPLAY_AS_HTML); ?> <?php echo $MC->msg(
"CCPayNote", HCU_DISPLAY_AS_HTML); ?>
1542 <?php
if ($allowScheduled): ?>
1543 <div
id=
'txScheduledFields'>
1544 <!-- DO NOT ALLOW THE SETTING FOR REPEATING A TRANSFER -->
1545 <!-- They must have repeating setup to use the FUTURE transfer feature -->
1547 <div
class=
"col-xs-12 col-md-6 hcu-container-margin">
1548 <label
for=
"txFrequency" class=
"hcu-all-100">
1549 <?php echo $MC->msg(
'Repeat', HCU_DISPLAY_AS_HTML); ?>
1552 <input
id=
'txFrequency' name=
'txFrequency' class=
"hcu-all-100" 1553 data-bind=
'value: txFrequency' required/>
1555 <span
class=
"k-invalid-msg" data-
for=
"txFrequency"></span>
1558 <div
id=
"transferDivDate" class=
"col-xs-12 col-md-6 hcu-container-margin"><!-- DISPLAY NONE -->
1559 <label
for=
"txDateStart" class=
"hcu-all-100">
1560 <?php echo $MC->msg(
'Transfer On', HCU_DISPLAY_AS_HTML); ?>
1563 <input type=
"text" id=
"txDateStart" name=
"txDateStart" class=
"hcu-all-100" 1564 placeholder=
"eg. MM/DD/YYYY" 1566 homecu-dategtvalue=
"<?php echo $today->format('m/d/Y'); ?>" 1568 <?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: 1569 <?php echo $MC->msg('is a Required Field', HCU_DISPLAY_AS_HTML); ?>" 1570 data-homecuCustomMatch-msg=
" 1571 <?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: 1572 <?php echo $MC->msg('is not a valid date', HCU_DISPLAY_AS_HTML); ?>" 1573 data-homecuCustomDateGTValue-msg=
" 1574 <?php echo $MC->msg('Transfer On', HCU_DISPLAY_AS_HTML) ?>: 1575 <?php echo $MC->msg('must be future date', HCU_DISPLAY_AS_HTML); ?>" 1580 <span
class=
"k-invalid-msg" data-
for=
"txDateStart"></span>
1584 <div
id=
"transferDivContinue" class=
"col-xs-12 col-md-6 hcu-container-margin" style=
"display: none;"><!-- DISPLAY NONE -->
1585 <input
id=
"txContinue" name=
"txContinue" class=
"hcu-all-100"/>
1588 <div
id=
"continueUntilSpan" class=
"col-xs-12 col-md-6 hcu-container-margin" style=
"display: none;"><!-- DISPLAY NONE -->
1589 <input type=
"text" id=
"txDateEnd" name=
"txDateEnd" class=
"hcu-all-100" 1590 placeholder=
"eg. MM/DD/YYYY" 1591 data-bind=
"value: txDateEnd" 1593 homecu-dategtvalue=
"txDateStart" 1594 homecu-dategttype=
"field" 1595 data-required-msg=
"<?php echo $MC->msg('Continue Until must be entered', HCU_DISPLAY_AS_HTML); ?>" 1596 data-homecuCustomMatch-msg=
"<?php echo $MC->msg('Transfer Continue Until', HCU_DISPLAY_AS_HTML) . ' ' . $MC->msg('is not a valid date', HCU_DISPLAY_AS_HTML); ?>" 1597 data-homecuCustomDateGTValue-msg=
"<?php echo $MC->msg('Stop date after transfer', HCU_DISPLAY_AS_HTML); ?>" 1600 <span
class=
"k-invalid-msg" data-
for=
"txDateEnd"></span>
1607 <div
class=
"col-xs-12 col-sm-6 hcu-container-margin">
1608 <button
id=
"btnTransfer" name=
'btnTransfer' type=
"button" class=
"k-button k-primary hcu-all-100">
1609 <span
class=
"fa fa-arrow-right"></span>
1610 <?php print $MC->msg(
'Continue Transfer', HCU_DISPLAY_AS_HTML); ?>
1617 <script
id=
'acctFromTemplate' type=
'text/x-kendo-tmpl'>
1619 # if ( data.acctClass == 'X' ) { # 1620 <div
class=
"col-xs-12"><strong>#: data.acctText #</strong></div>
1621 # } else if (data.acctValue == '') { # 1622 <div
class=
"col-xs-12">#: data.acctText #</div>
1624 <div
class=
"col-xs-12"><strong>#: data.acctText #</strong></div>
1625 <div
class=
"col-xs-12">
1626 <div
class=
"col-xs-6 text-left">
1627 <span><?php print trim($MC->msg(
'Available', HCU_DISPLAY_AS_JS)); ?>:</span>
1629 <div
class=
"col-xs-6 text-right">
1630 <span>$#: data.acctAvail #</span>
1636 <script
id=
'acctToTemplate' type=
'text/x-kendo-tmpl'>
1638 <div
class=
"col-xs-12"><strong>#: data.acctText #</strong></div>
1639 # if (data.acctValue != '') { # 1640 <div
class=
"col-xs-12">
1641 # var acctInfo = data.acctInfo; # 1642 # for (i=0; i<acctInfo.length; i++ ) { # 1643 <div
class=
"col-xs-6 text-left">
1645 #: acctInfo[i].desc #: <!-- display data --> 1648 <div
class=
"col-xs-6 text-right">
1650 # if (acctInfo[i]['value'] != "N/A") { # 1651 $#: acctInfo[i].value # <!-- display data -->
1653 #: acctInfo[i].value # <!-- display data --> 1663 <script type=
"text/x-kendo-tmpl" id=
"acctInfo">
1664 # if (data.acctClass == 'X') { # 1665 <div
class=
"col-xs-12 hcu-secondary">
1666 <span
class=
"hcu-secondary-alt-text"><?php echo $achCutoffMessageString; ?></span>
1669 # for (var i = 0; i < data.length; i++) { # 1670 # if (i % 2 == 0) { # 1671 <div
class=
"col-xs-6 text-left">#: data[i].desc #</div>
1672 <div
class=
"col-xs-6 text-right">
1673 # if (data[i].value != "N/A") { # 1674 $#: data[i].value # <!-- display data -->
1676 #: data[i].value # <!-- display data --> 1680 <div
class=
"col-xs-6 text-left" style=
"background-color: \#ddd;">#: data[i].desc #</div>
1681 <div
class=
"col-xs-6 text-right" style=
"background-color: \#ddd;">
1682 # if (data[i].value != "N/A") { # 1683 $#: data[i].value # <!-- display data -->
1685 #: data[i].value # <!-- display data --> 1692 <script
id=
"confirmTransferTemplate" type=
"text/x-kendo-tmpl">
1693 <div style=
"background-color:white;">
1695 <div
id=
"confirmTransferRows">
1696 <fieldset
class=
"row hcu-container-padding">
1697 <div
class=
"col-sm-4 nopadding">
1698 <strong><?php echo $MC->msg(
'Transfer Title From Account', HCU_DISPLAY_AS_HTML); ?>:</strong>
1701 <div
class=
"col-sm-6 nopadding">
1702 <p
id=
'confFrom'></p>
1706 <fieldset
class=
"row hcu-container-padding">
1707 <div
class=
"col-sm-4 nopadding">
1708 <strong><?php echo $MC->msg(
'Transfer Title To Account', HCU_DISPLAY_AS_HTML); ?>:</strong>
1711 <div
class=
"col-sm-6 nopadding">
1716 <fieldset
class=
"row hcu-container-padding">
1717 <div
class=
"col-sm-4 nopadding">
1718 <strong><?php echo $MC->msg(
'Amount', HCU_DISPLAY_AS_HTML); ?>:</strong>
1721 <div
class=
"col-sm-6 nopadding">
1722 <p
id=
'confAmount' ></p>
1726 <fieldset
class=
"row hcu-container-padding">
1727 <div
id=
'confPaymentComment' class=
"col-sm-4 nopadding">
1728 <strong><?php echo $MC->msg(
'Comments', HCU_DISPLAY_AS_HTML); ?>:</strong>
1731 <div
id=
'confTransferComment' class=
"col-sm-4 nopadding">
1732 <strong><?php echo $MC->msg(
'Transfer Comment', HCU_DISPLAY_AS_HTML); ?>:</strong>
1735 <div
class=
"col-sm-6 nopadding">
1736 <p
id=
'confComment'></p>
1740 <fieldset
id=
"ccPayNote" class=
"row hcu-container-padding">
1741 <div
class=
"col-sm-4 nopadding">
1742 <strong><?php echo $MC->msg(
"NOTE", HCU_DISPLAY_AS_HTML); ?></strong>
1745 <div
class=
"col-sm-6 nopadding">
1746 <p><?php echo $MC->msg(
"CCPayNote", HCU_DISPLAY_AS_HTML); ?></p>
1750 <fieldset
id=
'confirmRepeatTransfer' class=
" hcu-container-padding">
1757 <script
id=
"emptyToTemplate" type=
"text/k-kendo-template">
1758 <?php echo $MC->msg(
'No valid accounts transfer', HCU_DISPLAY_AS_JS); ?>
1761 <script
id=
"confirmationTemplate" type=
"text/x-kendo-tmpl">
1762 <div
id=
"responseDiv">
1763 <div
class=
"local-transfer-msg">
1764 <?php echo $MC->msg(
'Transfer posted', HCU_DISPLAY_AS_JS); ?>
1767 # if (homecuData) { # 1768 # if (homecuData['transfer']) { # 1769 # for (i=0; i < homecuData['transfer'].length; i++ ) { # 1771 <div
class=
"col-xs-6 text-right">
1772 <span
class=
"response-label">#= homecuData[
'transfer'][i][
'label'] #:</span>
1774 <div
class=
"col-xs-6">
1775 <span
class=
"response-field">#= homecuData[
'transfer'][i][
'caption'] #</span>
1781 # if (homecuData['repeat']) { # 1782 # if (typeof homecuData['repeat'] === 'object') { # 1784 <div
class=
'k-block k-error-colored'>
1785 # for (i=0; i < homecuData['repeat'].length; i++ ) { # 1786 #= homecuData['repeat'][i] #<br/> 1790 <div
class=
'local-transfer-msg k-block k-success-colored'>
1791 #= homecuData['repeat'] # 1795 # if (homecuData['posted']) { # 1796 <div
class=
"local-transfer-msg">
1797 #= homecuData['posted'] # 1811 require_once(dirname(__FILE__) .
'/../includes/hcuPostContent.i');