<?php
/*
  $Id: checkout_method_form.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com

  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/

  $address = $osC_ShoppingCart->getBillingAddress();
  $email_address = isset($address['email_address']) ? $address['email_address'] : null;
?>
<div class="moduleBox" style="width: 49%;float: left;background: url('../../templates/cn_default/images/head_bg.jpg') no-repeat left top;">

  <form name="login" action="<?php echo osc_href_link(FILENAME_ACCOUNT, 'login=process', 'SSL'); ?>" method="post">
  <h6><?php echo $osC_Language->get('login_returning_customer_heading');?></h6>

  <div class="content">
    <table cellspacing="0px" cellpadding="0px" class="checkformLogintable">
      <tr> 
        <td align="right" > <?php echo $osC_Language->get('field_customer_email_address');?></td>
        <td class="lastcol"><?php echo osc_draw_input_field('email_address', $email_address);?></td>
      </tr>
      <tr>
        <td align="right"><?php echo $osC_Language->get('field_customer_password');?></td>
        <td class="lastcol"><?php echo osc_draw_password_field('password');?></td>
      </tr>
      <tr>
        <td colspan="2" align="center" class="lastcol"><?php echo sprintf($osC_Language->get('login_returning_customer_password_forgotten'), osc_href_link(FILENAME_ACCOUNT, 'password_forgotten', 'SSL'));?></td>
      </tr>
      <tr>
        <td colspan="2" align="right" class="lastrow lastcol"><?php echo osc_draw_image_submit_button('button_login.gif', null, 'id="btnLogin"'); ?></td>
      </tr>
    </table>
  </div>
  </form>    
</div>

<div class="moduleBox" style="width: 49%;float: right;background: url('../../templates/cn_default/images/head_bg.jpg') no-repeat left top;">
  <div class="outsideHeading">
    <h6><?php echo $osC_Language->get('login_new_customer_heading');?></h6>
  </div>

  <div class="content">
    <p class="checkformregist"><?php echo $osC_Language->get('login_new_customer_text');?></p>

    <div class="submitFormButtons" style="text-align: right;padding:30px 0 25px;">
      <?php echo osc_draw_image_button('regist.gif', null, 'id="btnNewCustomer" style="cursor: pointer"'); ?>
    </div>
  </div>            
</div>

<div style="clear: both; margin: 0"></div>    