Odyssey
lnapperror.i
1 <?php
2 
3  // ** Try and determine where we are to set the error.
4  $showCloseButton = true;
5 
6  if ($id_status < 0) {
7  // ** THIS IS GENERAL FAILURE -- NO RECOVERY --
8  switch ($id_status) {
9  case -1:
10  $form_disp_error = "Problem locating the application you want to load.<br>Please be sure to follow the links to get to this site.<br>Please close browser and try your request again.";
11  break;
12  case -2:
13  $form_disp_error = "Problem loading form.<br>You appear to be previously setup for a different institution.<br>Please close browser and follow the links again.";
14  break;
15  case -3:
16  $form_disp_error = "<i class='fa fa-exclamation-triangle fa-2x' aria-hidden='true'></i> Loan Application Service is currently offline.<br/>" . $DMSAPP_MODE_ARY['offlineDesc'] . "";
17  break;
18 
19  }
20  } elseif ($form2load = 'lnappintro' && $DMSAPP_SSOONLY == 1) {
21  // ** DO NOT ALLOW the member to go to lnappintro, IF the CU is setup for SSOONLY
22  $showCloseButton = false;
23  $form_disp_error = "<i class='fa fa-exclamation-triangle fa-2x' aria-hidden='true'></i> Loan Application Service is only accessible from Home Banking.";
24 
25  } else {
26  // ** This could be a form based error
27  switch ($form_code) {
28  default:
29  $form_disp_error = "A problem has occurred processing your request. Please close your browser and try the request again.";
30  }
31  }
32 ?>
33 
34 <div class="col-lg-4">
35  <section id="profile" class="well">
36  <h2 class="ra-well-title"></h2>
37  <div class="row">
38  <div>
39  <span><?php echo $form_disp_error; ?> {<?php echo $id_status; ?>}</span>
40  </div>
41  <div>
42  <?php if ($showCloseButton): ?>
43  <button name="btnCloseWindow" class="k-button" onclick="self.close();">Close Window</button>
44  <?php endif; ?>
45  </div>
46  </div>
47  </section>
48 </div>