11 $serviceShowInfo =
true;
12 $serviceLoadMenu =
true;
13 $serviceShowMenu =
true;
14 $serviceAllowReadonly =
false;
17 require_once(dirname(__FILE__) .
'/../library/hcuService.i');
23 PermCheckFeatureScreen($dbh, $HB_ENV, $MC, FEATURE_BASIC);
27 require_once(dirname(__FILE__) .
'/../includes/hcuPreContent.i');
32 $chome = $HB_ENV[
"chome"];
33 $Flang = $HB_ENV[
"Flang"];
36 $dms_ok = array(
"target" =>
"string",
"x" =>
"string" );
38 dms_import_v2($HB_ENV,
'HCUPOST', $dms_ok);
41 $Flang = (trim($Flang) ==
"" ?
"en_US" : trim($Flang));
43 if ( $HB_ENV[
'offline'] !=
"N" ) {
44 $thisPageErrors = $HB_ENV[
"offlinemsg"];
45 throw new Exception( json_encode( $thisPageErrors ) );
53 $target = $HB_ENV[
"HCUPOST"][
"target"];
54 if ( strlen( $target ) ) {
56 $formFileName = basename(trim($target));
57 $formFileDir =
"/home/{$HB_ENV['chome']}/public_html/bankingIncludes/";
63 if (is_readable($formFileDir .
"/" . $Flang .
"/" . $formFileName)) {
64 $formFilePath = $formFileDir .
"/" . $Flang .
"/" . $formFileName;
65 }
else if (is_readable($formFileDir .
"/en_US/" . $formFileName)) {
66 $formFilePath = $formFileDir .
"/en_US/" . $formFileName;
71 if ( $formFilePath !=
"" && is_readable($formFilePath)) {
72 $displayContent = file_get_contents($formFilePath);
75 if ( $displayContent ==
"" ) {
76 $displayContent = $MC->msg(
"Not Found", HCU_DISPLAY_AS_HTML );
79 }
else if ( strlen( $HB_ENV[
"HCUPOST"][
"x"] ) ) {
84 $valuesJsonString = hcu_decrypturl($HB_ENV[
'HCUPOST'][
'x'], $GLOBALS[
'hcuViewNoticeKey']);
85 $formValues = json_decode($valuesJsonString,
true);
86 $formFileName = basename(trim($formValues[
"target"]));
87 $formFileDir =
"/home/{$HB_ENV['chome']}/public_html/";
88 $formFileDir =
"/fi/{$HB_ENV['chome']}";
90 print
"Form Name: $formFileName<br>";
95 $formFilePath = $formFileDir .
"/" . $formFileName;
97 if ( $formFilePath !=
"" ) {
100 $displayContent =
"<iframe src=\"$formFilePath\" width='700px' height='200px' id='iframe1' marginheight='0' frameborder='0' onLoad=\"autoResize('iframe1');\"></iframe>";
103 if ( $displayContent ==
"" ) {
104 $displayContent = $MC->msg(
"Not Found", HCU_DISPLAY_AS_HTML );
108 $formFileName = basename( HCU_array_key_value(
"PATH_INFO", $_SERVER) );
111 if ( strlen( $formFileName ) && $formFileName != __FILE__ ) {
112 $formFileDir =
"/home/{$HB_ENV['chome']}/public_html/";
115 $tryingBankingIncludes = strstr( HCU_array_key_value(
"PATH_INFO", $_SERVER),
"bankingIncludes" );
119 $displayContent =
"";
122 $formFilePath = $formFileDir .
"/" . $formFileName;
123 if ( $formFilePath !=
"" && !$tryingBankingIncludes && is_readable($formFilePath)) {
124 $displayContent = file_get_contents($formFilePath);
127 if ( $displayContent ==
"" || $tryingBankingIncludes ) {
128 $displayContent = $MC->msg(
"Not Found", HCU_DISPLAY_AS_HTML );
131 $formsContentAry = Get_NoticeInfo($dbh, $HB_ENV, $MC,
"R",
"SecureForms",
true);
133 $displayContent =
"";
134 if ( $formsContentAry[
"status"][
"code"] ==
"000" && $formsContentAry[
"notice"][0][
"notice_id"] ) {
135 $displayContent = $formsContentAry[
'notice'][0][
"notice_text"];
138 if ( $displayContent ==
"" ) {
139 $displayContent = $MC->msg(
"Verify routing no match", HCU_DISPLAY_AS_HTML );
165 <!-- prevents zoom on mobile that covers up submit buttons -->
166 <meta name=
"viewport" content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> <!--320-->
170 list-style-type: none;
177 <div
class=
"k-content" style=
'font-size:12px;'>
179 <div
class=
"container-fluid">
181 <?php echo $displayContent; ?>
190 function ShowSecureForm(noticeContent) {
192 var filePath = arguments[0];
194 if ( arguments.length > 1 ) {
197 noticeTitle = arguments[1];
201 var windowWidth = 700;
202 if ( arguments.length > 2 ) {
205 windowWidth = arguments[2];
211 var windowHeight = 300;
212 if ( arguments.length > 3 ) {
215 windowHeight = arguments[3];
218 windowHeight =
"85%";
221 $(document.body).append(
'<div id="formWindow" ></div>');
227 $(
'#formWindow').kendoWindow({
230 height: windowHeight,
235 refresh:
function() {
239 var dialog = $(
"#formWindow").data(
"kendoWindow");
242 activate:
function(e) {
245 content: noticeContent
249 var dialog = $(
"#formWindow").data(
'kendoWindow');
250 dialog.center().open();
260 }
catch (Exception $ex) {
262 $thisPageErrors = json_decode($ex->getMessage());
264 $serviceErrorCode =
'917';
265 $serviceErrorMsgs = $thisPageErrors;
267 require_once(dirname(__FILE__) .
'/../includes/hcuErrorPage.i');
272 require_once(dirname(__FILE__) .
'/../includes/hcuPostContent.i');