<?php include ("_website_init.php"); ?>
<?php
   // error checking
  $errorsAndAlerts = alert();

   
 if (@$CURRENT_USER  )                                { $errorsAndAlerts .= "You are already logged in!<br /><br /><a class='special-link' href='{$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL']}'>Click/Tap here to continue</a><br /> or<br /><a class='special-link' href='?action=logoff'>Click/Tap here to Log Off</a><br/>\n"; }
 
 if (!$CURRENT_USER && @$_REQUEST['loginRequired']) { $errorsAndAlerts .= "Please login to continue.<br/>\n"; }

  if (!getPrefixedCookie('lastUrl')) { setPrefixedCookie('lastUrl', @$_SERVER['HTTP_REFERER'] ); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to<?php echo $organization_informationRecord['organization_name'] ?></title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<meta name="viewport" content="width=device-width, target-densitydpi=device-dpi, initial-scale=1">
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<link href="css/nawafl.css.php" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/fonts.css.php" />
<?php include ("_preload.php"); ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php 
    $output = ''; 
    foreach ($google_font_namesRecords as $record) { $record['name'] = preg_replace("/[, ]/", "+", $record['name']);
      $output .= $record['name'] . "|"; 
    } 
    $output = rtrim($output,"|"); // remove trailing pipe 
    print $output; 
?>">
</head>

<body >
<p>&nbsp;</p>
<table class="shadow3" bgcolor="#<?php echo $nawa_colorsRecord['main_box_background_color'] ?>" width="55%" border="0" align="center" cellpadding="0">
  <tr>
    <td  colspan="2" bgcolor="#<?php echo $nawa_colorsRecord['masthead_background_color'] ?>"><div class="under round-corner" align="left">
        <?php foreach ($common_informationRecord['masthead'] as $index => $upload): ?>
        <img src="<?php echo $upload['thumbUrlPath3'] ?>"   alt="N.A.W.A. Florida Masthead" />
        <?php endforeach ?>
      </div></td>
  </tr>
  <tr>
    <td class="shadow3"  width="20%" rowspan="4" align="right" valign="top" bgcolor="#<?php echo $nawa_colorsRecord['menu_background_color'] ?>" ><?php include ("_mainnavmenu.php"); ?></td>
    <td width="82%"><br />
      <br />
      <?php include ("_rotator.php"); ?>
      <br /></td>
  </tr>
  <tr>
    <td align="center" ><div align="center" style="width:80%; text-align:left"><span class="heading_font"><b><?php echo strtoupper($organization_informationRecord['organization_name']) ?> MEMBER LOG-IN</b></span></div>
      <br />
      
      <!-- USER LOGIN FORM -->
      
      <?php if (@$errorsAndAlerts): ?>
      <div class="text_font" align="center" style="color: #<?php echo $nawa_colorsRecord['menu_background_color'] ?>; font-weight: bold;"><?php echo $errorsAndAlerts; ?><br/>
        <?php //elseif (@$_POST['save'] && @$CURRENT_USER && (@$CURRENT_USER['first_time_login'] == '0' || @$CURRENT_USER['first_time_login'] == "")  ):?>
        <?php // redirectBrowserToURL("http://nawafl.com/cp.php"); exit;  ?>
      </div>
      <?php endif ?>
      <?php if (!@$CURRENT_USER): ?>
      <form action="?" method="post">
        <input type="hidden" name="action" value="login" />
        <input type="hidden" name="save" value="1" />
        <table align="center" border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="text_font"><b>Email or Username</b></td>
            <td class="text_font"><input type="text" name="username" value="<?php echo htmlencode(@$_REQUEST['username']); ?>" size="30" /></td>
          </tr>
          <tr>
            <td class="text_font"><b>Password</b></td>
            <td><input type="password" name="password" value="<?php echo htmlencode(@$_REQUEST['password']); ?>" size="30" /></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><br/>
              <input type="submit" name="submit" value="Login" />
              <br />
              <br />
              <span class="text_font"><b>Want to become a <?php echo $organization_informationRecord['organization_name'] ?> member?</b> </span><a class="special-link" href="<?php echo $GLOBALS['WEBSITE_LOGIN_SIGNUP_URL'] ?>">CLICK/TAP HERE</a><br/>
              <br/>
              <?php if (@$GLOBALS['FACEBOOKAPI_ENABLE_LOGIN']): // NOTE: This feature requires the Facebook Login plugin! ?>
              <a href="<?php echo facebookLogin_getFacebookLoginUrl();?>"
        onclick="<?php echo facebookLogin_getFacebookLoginUrl_popupOnClick(); ?>">Login with Facebook</a><br/>
              <br/>
              <?php endif ?>
              <?php if (@$GLOBALS['TWITTERAPI_ENABLE_LOGIN']): ?>
              <a href="<?php echo twitterLogin_getTwitterLoginUrl();?>"
      onclick="<?php echo twitterLogin_getTwitterLoginUrl_popupOnClick(); ?>">Login with Twitter</a><br/>
              <br/>
              <?php endif ?>
              <span class="text_font"><b>Forgot your password?</b> </span><a class="special-link" href="<?php echo $GLOBALS['WEBSITE_LOGIN_REMINDER_URL'] ?>">CLICK/TAP HERE</a></td>
          </tr>
        </table>
      </form>
      <?php endif ?>
      <?php // if (@$_POST['save'] && @$CURRENT_USER && (@$CURRENT_USER['first_time_login'] == '0' || @$CURRENT_USER['first_time_login'] == "")  ){redirectBrowserToURL(" http://nawafl.com/cp.php"); exit; }?>
      
      <!-- /USER LOGIN FORM --> 
      <br />
      <br />
      <br />
      <div align="center" style="width:80%; text-align:center"> <span class="text_font"> <b>NOT A MEMBER?</b><br>
        </span><span class="text_font">Subscribe to our Email list, and We'll make sure that you're kept informed
        about upcoming events and other happenings of interest.</span><br />
        <a class="special-link" href="email_signup.php">CLICK/TAP HERE TO SUBSCRIBE</a> <br>
        <br />
      </div></td>
  </tr>
  <tr>
    <td><p>&nbsp;</p>
      <br />
      <br />
      <?php include ("_footer.php"); ?></td>
  </tr>
</table>
</body>
</html>
