<?php
/**
 *\licence GPL 2005-2010  The osCSS developers - osCSS Open Source E-commerce
 *\portion code Copyright (c) 2002 osCommerce
 *\package osCSS-2 <www http://www.oscss.org>
 *\version 2.1.0
 *\date  16/09/10, 21:55
 *\author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
 *\encode UTF-8
 *\group content
 *\file
 *\dir includes/content/
 *\brief Page display for login
*/
?>
<div id="login">
  <?php $page->messageStack->_draw('login');?>
    <h2 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE; ?></h2>

<?php if($cart->count_contents() > 0)
        if ( ($replace=$page->prop_ctrl('text_visitor_cart', 'text_visitor_cart')) !=false) $replace();
        else { echo '<p id="text_visitor_cart" class="infoText">'. TEXT_VISITORS_CART .'</p>'; }
?>

  <h3><?php echo HEADING_NEW_CUSTOMER; ?></h3>

  <div class="contentBox newCustomer">
    <h4><?php echo TEXT_NEW_CUSTOMER ; ?></h4>
    <div class="infoText"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>

    <div class="navBt">
     <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . IMAGE_BUTTON_CONTINUE . '</a>'; ?>
     </div>
   </div>


  <h3><?php echo HEADING_RETURNING_CUSTOMER; ?></h3>

  <?php echo tep_draw_form('login_form', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>

    <fieldset class="returningCustomer">
      <legend><?php echo TEXT_RETURNING_CUSTOMER; ?></legend>

      <p>
        <label for="email_address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
        <?php echo tep_draw_input_field('email_address','email_address'); ?>
      </p>

      <p>
        <label for="password"><?php echo ENTRY_PASSWORD; ?></label>
        <?php echo tep_draw_password_field('password'); ?>
      </p>

      <p class="infoText">
        <?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?>
      </p>

      <p class="formBt">
        <input type="submit" class="submitBt" value="<?php echo IMAGE_BUTTON_LOGIN; ?>"  />
      </p>
    </fieldset>
  </form>

</div>