<?php
/*
  $Id: login.php,v 1.1 2006/07/16 05:09:34 ryu Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
  
  modified for Koshoten.net2
  http://www.koshoten.net/
*/
?>
<?php
if ((!strstr($PHP_SELF, FILENAME_LOGIN)) and (!strstr($PHP_SELF, FILENAME_CREATE_ACCOUNT)) and !tep_session_is_registered('customer_id')) {
?>
<!-- loginBox -->
<?php
  $cssid = 'loginBox';
  $infobox_header = BOX_HEADING_LOGIN;
  $infobox_footer = '<a href="' . tep_href_link(FILENAME_LOGIN) . '">' . BOX_LOGIN_GOTO . '</a>';

  $loginbox_contents = '<p>' . BOX_LOGIN_EMAIL . "</p>\n" . 
                              '<p>' . tep_draw_input_field('email_address', '', 'class="inputText"') . "</p>\n" . 
                              '<p>' . BOX_LOGIN_PASSWORD . "</p>\n" . 
                              '<p>' . tep_draw_input_field('password', '', 'class="inputText"') . "</p>\n" . 
                              '<p>' . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . "</p>";

  $infobox_contents = array();
  $infobox_contents[] = array('form' => tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')),
                               'text' => $loginbox_contents);

  new infoBox($cssid, $infobox_contents, $infobox_header, $infobox_footer);
?>
<!-- /loginBox -->
<?php
}
?>
