18 background-color: #f7f7f9;
19 border: 1px solid #e1e1e8;
28 background-color: #FFFFFF;
29 border: 1px solid #FDFDFD;
40 background-color: transparent;
56 #lnapp-nonmember-first-input { 60 .validity-summary-container {
64 #lnapp-nonmember-return, 65 #lnapp-nonmember-first, 73 @media only screen and (max-width: 479px) {
74 .passwordrequirements {display:
inline-block; float:none; margin-left:30px;}
82 #lnapp-member-select-title .title { 96 border: 1px solid #eee;
97 border-left-width: 5px;
104 .bs-callout p:last-child {
112 .bs-callout + .bs-callout {
118 border-left-color: #ce4844;
120 .bs-callout-danger h4 {
123 .bs-callout-warning {
124 border-left-color: #aa6708;
126 .bs-callout-warning h4 {
130 border-left-color: #1b809e;
132 .bs-callout-info h4 {
136 @media only screen and (max-width: 767px) {
137 .topbar, .mainbar, .sidebar {
142 @media only screen and (min-width: 768px) {
158 $loadedValues[
'lnappintro'] = Array();
159 HCU_ImportVars($loadedValues,
"lnappintro", array(
"status" => HCUFILTER_INPUT_STRING));
168 if (isset( $configOptions ) && is_array( $configOptions ) && key_exists(
"configPassword", $configOptions)) {
169 $pwdRules = json_decode($configOptions[
'configPassword'],
true);
171 $pwdRules[
"len"] = 8;
172 $pwdRules[
"upper"] = 1;
173 $pwdRules[
"lower"] = 1;
174 $pwdRules[
"spec"] = 0;
175 $pwdRules[
"digit"] = 1;
178 $passwordRequirements =
"";
179 $passwordRequirements .=
"• At least {$pwdRules["len
"]} characters<br>";
180 if ( $pwdRules[
"upper"] > 0 ) {
181 $plural = $pwdRules[
"upper"] > 1 ?
"s" :
"";
182 $passwordRequirements .=
"• At least {$pwdRules["upper
"]} UPPER CASE character$plural<br>";
184 if ( $pwdRules[
"lower"] > 0 ) {
185 $plural = $pwdRules[
"lower"] > 1 ?
"s" :
"";
186 $passwordRequirements .=
"• At least {$pwdRules["lower
"]} lower case character$plural<br>";
188 if ( $pwdRules[
"spec"] > 0 ) {
189 $specialCharList = Get_PwdSpecialCharacters();
190 $plural = $pwdRules[
"spec"] > 1 ?
"s" :
"";
191 $passwordRequirements .=
"• At least {$pwdRules["spec
"]} special character$plural ($specialCharList)<br>";
193 if ( $pwdRules[
"digit"] > 0 ) {
194 $plural = $pwdRules[
"digit"] > 1 ?
"s" :
"";
195 $passwordRequirements .=
"• At least {$pwdRules["digit
"]} digit$plural<br>";
199 $testAliasOK = $DMSAPP_CUFLAGSET2 & $CU2_ALIAS_OK;
200 $testAliasReq = $DMSAPP_CUFLAGSET2 & $CU2_ALIAS_REQ;
202 if ( $testAliasOK || $testAliasReq ) {
203 $hbPhrase =
"Login ID";
204 $aliasWarning =
"If you have set up a User Name in Home Banking you must use that to log in to this system.";
206 $hbPhrase =
"Account Number";
209 $hbLabel = $DMSAPP_PRODUCTNAME .
" " . $hbPhrase;
213 <div
class=
"container-fluid">
216 <div
class=
"lnapp-form-section lnapp-summary-wrap col-xs-12 col-md-offset-3 col-md-6" style=
"">
217 <div
id=
"summary-container" class=
"validity-summary-container errors" >
218 <div
class=
"alert alert-danger">
219 <p><em>You may not
continue. The following errors were encountered:</em></p>
221 <?php
switch (filter_input(INPUT_GET,
"status", FILTER_SANITIZE_NUMBER_INT)):
223 <li>email is already registered</li>
224 <?php
break;
case "2":?>
225 <li>email was not found</li>
226 <?php
break;
case "3": ?>
227 <li>Session has expired. Please confirm password to
continue.</li>
228 <?php
break;
case "4": ?>
229 <li><?php echo $DMSAPP_PRODUCTNAME; ?> Account Number was not found.</li>
230 <?php
break;
case "5": ?>
231 <li>Your challenge question answer did not match what we have on our records.</li>
232 <?php
break;
case "6": ?>
233 <li>Your password entered did not match what we have on our records.</li>
234 <?php
break;
case "7": ?>
235 <li>You must complete your <?php echo $DMSAPP_PRODUCTNAME; ?> Account Number registration before you may use
this method to log in.</li>
236 <?php
break;
case "8": ?>
237 <li>Your account has been locked from too many failed attempts. Contact the Credit Union
for assistance.</li>
238 <?php
break;
case "9": ?>
239 <li>Loan Application Service is currently offline.<br/><?php echo $DMSAPP_MODE_ARY[
'offlineDesc']; ?></li>
240 <?php
break;
case "10": ?>
241 <li>Unable to authenticate your <?php echo $DMSAPP_PRODUCTNAME; ?> account number. Please use
this screen to log in.</li>
242 <?php
break;
case "11":
243 $msg = filter_input(INPUT_GET,
"msg", FILTER_SANITIZE_STRING);
245 <li>Password requirements not met: <br><?php echo $msg?><br> Please
try again.</li>
246 <?php
break;
default: ?>
247 <li>an unknown error was encountered</li>
257 <div
id=
"lnapp-body" >
259 <?php
if ($DMSAPP_ALLOW_HB_LOGIN): ?>
260 <!-- Select Member Section -->
262 <div
id=
"lnapp-member-select" class=
"bs-callout bs-callout-info col-xs-12 col-md-offset-3 col-md-6 lnapp-form-section">
263 <!-- <div
id=
"lnapp-member-select" class=
"jumbotron col-xs-12 col-md-offset-3 col-md-6 "> -->
265 <div
id=
"lnapp-member-select-title" class=
"col-xs-12">
266 <h4
class=
"title">Already a <?php echo $DMSAPP_CUNAME; ?> member?</h4>
271 <div
class=
"col-xs-11 col-xs-offset-1"><p
class=
"h4">I am:</p></div>
274 <div
class=
"col-xs-11 col-xs-offset-1">
275 <div
id=
"lnapp-member-select-input" class=
"member_chooser radio">
276 <?php
if ($DMSAPP_DISABLEEMAIL != 1): ?>
277 <label><input type=
"radio" class=
'testRadio' id=
"r0" name=
"radioGroup"> Not a <?php echo $DMSAPP_CUNAME; ?> member</label><br>
279 <label><input type=
"radio" class=
'testRadio' id=
"r1" name=
"radioGroup"> An enrolled <?php echo $DMSAPP_CUNAME; ?> Home
Banking user</label><br>
280 <label><input type=
"radio" class=
"testRadio" id=
"r2" name=
"radioGroup"> A member with <?php echo $DMSAPP_CUNAME; ?> but not enrolled in Home
Banking</label>
289 <div
id=
"lnapp-nonmember" class=
"">
291 <div
id=
"lnapp-nonmember-select" class=
"bs-callout bs-callout-info col-xs-12 col-md-offset-3 col-md-6 lnapp-form-section">
294 <div
class=
"col-xs-12 ">
295 <div
id=
"lnapp-nonmember-select-info">
296 <h4
class=
"title">Are you a returning applicant?</h4>
301 <div
class=
"col-xs-12">
302 <label><input type=
"radio" class=
"nonMemberRadio" id=
"opt-return" name=
"radioGroupNonMember"> A returning loan applicant </label><br>
303 <label><input type=
"radio" class=
"nonMemberRadio" id=
"opt-new" name=
"radioGroupNonMember"> A
new loan applicant </label>
308 <div
id=
"lnapp-nonmember-first" class=
"row">
309 <div
class=
" col-xs-12 col-md-offset-3 col-md-6">
310 <div
class=
"panel panel-default">
311 <div
id=
"lnapp-nonmember-first-info" class=
"panel-body">
312 <div
class=
"alert alert-info">
313 <p>The online loan application process will take 5-10 minutes. However, you can always save your application data and
return at a later time to finish your application, check on your loan status, or submit additional loan applications.</p>
315 <form
id=
"newlogin" class=
"" name=
"newlogin" method=
"post" action=
"<?php echo $self; ?>f=newuser">
316 <input type=
"hidden" name=
"f" value=
"newuser">
317 <input type=
"hidden" name=
"newlogin" value=
"Sign Up">
319 <div
class=
"form-group">
320 <label
for=
"appemail">Email address</label><br>
321 <input type=
"text" id=
"appemail" name =
"appemail" class=
"newemail k-textbox hcu-all-100" value=
"" size=30 placeholder=
"Email"/><br>
323 <div
class=
"form-group">
324 <label
for=
"confirmemail">Confirm Email</label><br>
325 <input type=
"text" id=
"confirmemail" name=
"confirmemail" class=
"newemail k-textbox hcu-all-100" value=
"" size=30 placeholder=
"Confirm Email" />
329 <div
class=
"col-xs-12 col-sm-6">
330 <div
class=
"form-group">
331 <label
for=
"apppasswd">Password</label><br>
332 <input type=
"password" id=
"apppasswd" class=
"password k-textbox" name=
"apppasswd" value=
"" size=15 placeholder=
"Password"/><br>
334 <div
class=
"form-group">
335 <label
class=
"confirmpasswd">Confirm</label><br>
336 <input type=
"password" id=
"confirmpasswd" class=
"password k-textbox" name=
"confirmpasswd" value=
"" size=15 placeholder=
"Confirm Password"/>
339 <div
class=
"col-xs-12 col-sm-6">
341 <div
class=
"alert alert-info ">
342 <div style=
"color:red; margin-top:5px;">Password Requirements</div>
343 <?php echo $passwordRequirements ?>
348 <a
class=
"submit k-button k-primary" href=
"#" id=
'linkNewPost' label=
'Submit'><span>Sign Up</span></a>
360 <div
id=
"lnapp-nonmember-return" class=
"row">
361 <div
class=
" col-xs-12 col-md-offset-3 col-md-6">
363 <div
class=
"panel panel-default">
365 <div
class=
"panel-body">
366 <div
class=
"alert alert-info">
367 <p>If you want to complete a loan application, check your loan status, or apply
for a
new loan, you may login here.</p>
370 <form
id=
"confirmlogin" class=
"formNoLabels" method=
"post" action=
"<?php echo $self; ?>f=confirmuser">
371 <input type=
"hidden" name=
"f" value=
"confirmuser">
372 <input type=
"hidden" name=
"returnlogin" value=
"Login">
373 <div
class=
"form-group">
374 <label
for=
"loginemail">Email address</label>
375 <input type=
"text" id=
"loginemail" name=
"loginemail" class=
"loginemail k-textbox hcu-all-100" value=
"" size=
"30" placeholder=
"Email"/>
377 <a
class=
"k-button k-primary" href=
"#" id=
'linkConfirmPost' label=
'Submit'><span>Login</span></a>
385 <div
id=
"lnapp-nonmember-info" class=
"bs-callout bs-callout-warning col-xs-12 col-md-offset-3 col-md-6 lnapp-form-section">
386 <h4
class=
"title">You are NOT a <?php echo $DMSAPP_CUNAME; ?> member?</h4>
389 <?php
if ($DMSAPP_NONMBRMSG !=
''):
390 echo $DMSAPP_NONMBRMSG;
392 You may still access
this loan site
if you are not currently registered
393 with <?php echo $DMSAPP_CUNAME; ?> Home
Banking OR you are not currently a member. In order to qualify
for a loan
394 you must meet membership requirements of <?php echo $DMSAPP_CUNAME; ?>.
395 If you meet the requirements you can simply enter a valid email address and password below to start.
403 <!-- Shown
for CU members with and without Home
Banking logins -->
404 <div
id=
"lnapp-member-main" class=
"row">
405 <div
class=
" col-xs-12 col-md-offset-3 col-md-6">
406 <div
class=
"panel panel-default">
407 <div
class=
"panel-body">
408 <!-- Shown
for Home
Banking members only -->
409 <div
id=
"lnapp-member-login" class=
"lnapp-form-section">
410 <p
class=
"hbUser" x-style=
"display:none;">
411 <?php
if ($DMSAPP_MBRMSG !=
''):
414 Are you currently enrolled with <?php echo $DMSAPP_CUNAME; ?> Home
Banking? If so, you may log in
using your <?php echo $DMSAPP_PRODUCTNAME .
" " . $hbPhrase; ?> without
415 having to create a separate login
id. You will have full access to all online loan features.<br>
416 <?php echo $aliasWarning ?>
421 <!-- Shown
for cu members without Home
Banking -->
422 <div
id=
"lnapp-member-acct" class=
"bar-section lnapp-form-section" style=
"clear:both;">
423 <p
class=
"hbUserNot" x-style=
"display:none;">
424 <?php
if ( $DMSAPP_FETCHMIR ):
425 if ($DMSAPP_NON_HB_MBR_MSG !=
''):
426 echo $DMSAPP_NON_HB_MBR_MSG;
428 Are you currently a member with <?php echo $DMSAPP_CUNAME; ?> but not enrolled in Home
Banking? If so, you may log in
using your <?php echo $DMSAPP_CUNAME; ?> Account Number.
429 You will have full access to all online loan features.
434 Please use the alternate login to access the loan application system.
439 <!-- Shown
for Home
Banking members and non Home
Banking members with MIR packets -->
440 <div
id=
"lnapp-banking-input" class=
"bar-section lnapp-form-section">
441 <form
id=
"homebankinglogin" class=
"" method=
"post" action=
"<?php echo $self; ?>f=cuuser">
442 <input type=
"hidden" name=
"f" value=
"cuuser">
443 <input type=
"hidden" name=
"applogin" value=
"1">
445 <div
class=
"entry member_entry " >
447 <div
class=
"col-xs-offset-1 col-xs-11">
448 <label
for=
"hbusername" class=
"hbusername_label"><?php echo $hbLabel; ?></label>
452 <div
class=
"col-xs-offset-1 col-xs-11">
453 <input type=
"text" id=
"hbusername" name=
"hbusername" class=
"k-textbox" value=
"" size=
"35" placeholder=
"<?php echo $hbLabel; ?>"/>
458 <div
class=
"col-xs-12">
463 <div
class=
"col-xs-offset-1 col-xs-11">
464 <a
class=
"k-button k-primary" href=
"#" id=
'linkHBPost' label=
'Submit'><span>Login w/ <span
class=
"hbusername_label"><?php echo $hbLabel ?></a>
473 </div> <!-- lnapp-body -->
475 </div> <!-- container-fluid -->
478 $(document).ready(
function () {
480 <?php
if (filter_input(INPUT_GET,
"status", FILTER_SANITIZE_NUMBER_INT) !=
''): ?>
481 $(
'#summary-container').css(
'display',
'block');
485 $(
"form").bind(
"keydown",
function(event) {
487 var keycode = (
event.keyCode ?
event.keyCode : (
event.which ?
event.which :
event.charCode));
489 $(
'#' + this.id).submit();
502 $(
".testRadio").change(
function () {
503 if ($(
"#r0").prop(
"checked")) {
505 resetScreenOptions();
507 $(
'#lnapp-nonmember').show();
509 }
else if ($(
"#r1").prop(
"checked")) {
511 resetScreenOptions();
513 $(
'#lnapp-member-main').show();
514 $(
'#lnapp-member-login').show();
515 $(
'#lnapp-banking-input').show();
517 }
else if ($(
"#r2").prop(
"checked")) {
519 resetScreenOptions();
521 $(
'#lnapp-member-main').show();
522 $(
'#lnapp-member-acct').show();
525 <?php
if ( $DMSAPP_FETCHMIR ) { ?>
526 $(
'#lnapp-banking-input').show();
531 resetScreenOptions();
537 $(
".nonMemberRadio").change(
function () {
538 if ($(
"#opt-return").prop(
"checked")) {
539 resetScreenOptions(
"nonmember");
540 $(
'#lnapp-nonmember-return').show();
541 }
else if ($(
"#opt-new").prop(
"checked")) {
542 resetScreenOptions(
"nonmember");
543 $(
'#lnapp-nonmember-first').show();
551 $(
'#linkConfirmPost').click(
function() {
552 $(
"#confirmlogin").submit();
555 $(
'#linkHBPost').click(
function() {
556 $(
"#homebankinglogin").submit();
560 $(
'#linkNewPost').click(
function() {
561 $(
"#newlogin").submit();
571 if ($DMSAPP_DISABLEEMAIL != 1 && $DMSAPP_ALLOW_HB_LOGIN == 0) { ?>
572 $(
'#lnapp-member-select').hide();
573 $(
'#lnapp-nonmember').show();
580 function resetScreenOptions(pSection) {
583 pSection = (pSection == undefined ?
"" : pSection);
585 <?php
if ($DMSAPP_DISABLEEMAIL != 1): ?>
587 if (pSection ==
"nonmember" || pSection ==
"") {
588 $(
'#lnapp-nonmember-first').hide();
589 $(
'#lnapp-nonmember-return').hide();
591 if (pSection ==
"") {
592 $(
'#lnapp-nonmember').hide();
593 $(
'#lnapp-member-login').hide();
594 $(
'#lnapp-member-acct').hide();
595 $(
'#lnapp-banking-input').hide();
596 $(
'#lnapp-member-main').hide();
607 $(
"#newlogin").validity(
function() {
610 .require(
'#{field} is required')
611 .match(
'email',
'#{field} must be formatted as an email.')
612 .equal(
"Email fields do not match.")
617 .require(
'#{field} is required')
618 .equal(
"Password fields do not match.")
625 $(
"#confirmlogin").validity(
function() {
626 $(
'input.loginemail')
627 .require(
"Email is required to login to your account")
628 .match(
'email',
'#{field} must be formatted as an email.');
632 $(
"#homebankinglogin").validity(
function() {
634 .require(
"<?php echo $DMSAPP_PRODUCTNAME; ?> Account Number is required to login with this method.");
640 $.validity.setup({ outputMode:
"summary" });
641 $.validity.setup({ defaultFieldName:
"This Field" });