<?php
/*
  www.oscGold.com (C) Kamelia-Net Jacek Krysiak
  modul oscGold wer 4.0
*/
?>
 <?php
 if ($messageStack->size('login') > 0) {
  echo $messageStack->output('login');
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <!-- Naglowek BOF -->
 <tr>
  <td>
   <?php
   $info_box_contents = array();
   $info_box_contents[] = array('text' => sprintf(HEADING_TITLE));
   new contentBoxHeading($info_box_contents);
   ?>
  </td>
 </tr>
 <tr>
  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td>
 </tr>
 <!-- Naglowek EOF -->
 <?php
 if ($cart->count_contents() > 0) {
 ?>
 <tr>
  <td class="smallText" style="padding:5px"><?php echo TEXT_VISITORS_CART; ?></td>
 </tr>
 <?php
 }
 ?>
 <?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
 <tr>
  <td>
   <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
     <td width="100%" height="100%" valign="top">
	   <fieldset>
	   <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>
		 <table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr>
				<td align="left" valign="top" width="80%">
				 <table border="0" cellspacing="0" cellpadding="2">
				  <tr>
				   <td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>
				  </tr>
				  <tr>
				   <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
				  </tr>
				  <tr>
				   <td class="main"><b><?php echo ENTRY_EMAIL_NICK; ?></b></td>
				   <td class="main"><?php echo tep_draw_input_field('email_address', '', ' size="30"'); ?></td>
				  </tr>
				  <tr>
				   <td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>
				   <td class="main"><?php echo tep_draw_input_field('password', '', ' size="30" maxlength="40"', false, 'password', false); ?></td>
				  </tr>
				  <tr>
				   <td class="smallText" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>
				  </tr>
				  <tr>
				 </table>
				</td>
				<td align="right" valign="bottom" width="20%"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>
			</tr>
		 </table>
	   </fieldset>
     </td>
    </tr>
   </table>
  </td>
 </tr>
 <tr>
  <td width="100%" valign="top">
	  <fieldset>
	  <legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>
		 <table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr>
				<td align="left" valign="top" width="80%">
				 <table border="0" width="100%" cellspacing="0" cellpadding="2">
				   <tr>
					<td class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER . '<br><br>' . TEXT_NEW_CUSTOMER_INTRODUCTION; ?></td>
				   </tr>
				 </table>
				</td>
				<td align="right" valign="bottom" width="20%">
				<?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, ((!isset($HTTP_GET_VARS['act'])) ? '' : 'act='.$HTTP_GET_VARS['act']), 'SSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?>
				</td>
		    </tr>
		 </table>
	  </fieldset>
  </td>
 </tr>
 <?php
 // PWA BOF
 if (defined('PURCHASE_WITHOUT_ACCOUNT') && ($cart->count_contents() > 0) && (PURCHASE_WITHOUT_ACCOUNT == 'true')) {
 ?>
 <tr>
  <td colspan="2" width="100%">
	  <fieldset>
	  <legend><?php echo HEADING_PWA; ?></legend>
		 <table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr>
				<td align="left" valign="top" width="80%">
				 <table border="0" width="100%" cellspacing="0" cellpadding="2">
				   <tr>
					<td class="main"><?php echo TEXT_GUEST_INTRODUCTION; ?></td>
				   </tr>
				 </table>
				</td>
				<td align="right" valign="bottom" width="20%">
				<?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?>
				</td>
		    </tr>
		 </table>
	  </fieldset>
  </td>
 </tr>
 <?php
 }
 // PWA EOF
 ?>
</form>

 <?php
 if (strstr(MODULE_PAYMENT_INSTALLED, "ppec.php") !== false) {

   if ( $cart->count_contents() > 0) {

    require('ppesetup.php');
    $ppesetup = new ppesetup($language);
    ?>

    <tr>
    <td width="100%" valign="top">
      <fieldset>
      <legend><?php echo TABLE_PAYPAL_EC_HEADING; ?></legend>
       <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td align="left" valign="top" width="80%">
           <table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td>
             </tr>
             <tr>
            <td class="main" valign="top"><?php echo TABLE_PAYPAL_EC_INTRODUCTION; ?></td>
             </tr>
           </table>
          </td>
          <td align="right" valign="bottom" width="20%">
          <?php echo '<a href="'.tep_href_link('ppeb.php', 'shec=a', 'SSL').'">'.$ppesetup->ima.'</a>'; ?>
          </td>
          </tr>
       </table>
      </fieldset>
    </td>
    </tr>
   <?php
   }
 }
 ?>

</table>
