<?php
/*
  www.oscGold.com (C) Kamelia-Net Jacek Krysiak
  modul oscGold wer 4.0
*/
?>

<?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'),'post',' onsubmit="return check_form();"') . tep_draw_hidden_field('action', 'process'); ?>

<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 (isset($_GET['error_checkout']) && tep_not_null($_GET['error_checkout'])) {
 ?>
 <tr>
  <td><script type="text/javascript" language="javascript">okno('<?php echo tep_db_prepare_input($_GET['error_checkout']); ?>')</script></td>
 </tr>
 <?php
 }
?>

  <?php
  if ($module_darmo == true) {
	require(DIR_WS_MODULES . 'gratis_products_variables.php');
	require(DIR_WS_MODULES . 'gratis_products.php'); 
  }
  ?>


  <?php
  if ((TEXT_PARAGON != '') && (TEXT_FAKTURA != '')) {
    ?>
    <tr>
    <td>
        <fieldset>
        <legend><?php echo TABLE_HEADING_DOKUMENT_SPRZEDAZY; ?></legend>
        <table border="0" width="100%" cellspacing="0" cellpadding="3">
            <?php
            if (CZY_PARAGON != '0' || !defined('CZY_PARAGON')) {
              ?>
              <tr id="fakt1" class="moduleRowSelected" onmouseover="if (this.className!='moduleRowSelected') { this.className='moduleRowOver'; }" onmouseout="if (this.className!='moduleRowSelected') { this.className='moduleRow'; }" onclick="javascript:this.className='moduleRowSelected';document.getElementById('fakt2').className='moduleRow';document.forms['checkout_address'].paragon[0].checked=true">
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td class="main"><b><?php echo TEXT_PARAGON; ?></b></td>
                <td class="main" align="right"><input type="radio" name="paragon" value="paragon" checked></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
              <?php
            }
            $sprawdz_nip = mysql_query("select entry_nip, entry_company from address_book where address_book_id = '" . (int)$billto . "' && entry_nip = '' && entry_company != ''");
            if (mysql_num_rows($sprawdz_nip) > 0) {
              ?>
              <tr id="fakt2" class="moduleRow">
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td class="main"><b><?php echo TEXT_FAKTURA; ?></b><br>
                  <span class="smallText"></span><?php echo FAKTURA_NIP; ?></td>
                <td class="main" align="right"><input type="radio" name="paragon" value="faktura" disabled></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
              <?php
            } else {
              ?>
              <tr id="fakt2" class="moduleRow" onmouseover="if (this.className!='moduleRowSelected') { this.className='moduleRowOver'; }" onmouseout="if (this.className!='moduleRowSelected') { this.className='moduleRow'; }" onclick="javascript:this.className='moduleRowSelected';document.getElementById('fakt1').className='moduleRow';document.forms['checkout_address'].paragon[1].checked=true">
                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  <td class="main"><b><?php echo TEXT_FAKTURA; ?></b></td>
                  <?php
                  if (CZY_PARAGON == '0' && defined('CZY_PARAGON')) { $pole = 'checked'; }
                  ?>
                  <td class="main" align="right"><input type="radio" name="paragon" value="faktura" <?php echo $pole; ?>></td>
                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
              <?php
            }
            ?>
        </table>
      </fieldset>
    </td>
  </tr>
  <?php
  }
  ?>

 <?php
 if ($billto == $sendto) {
    $ten_sam_adres = true;
   } else {
    $ten_sam_adres = false;
 }
 ?>

 <tr>
  <td>
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%" align="left" valign="top">
          <fieldset>
          <legend><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></legend>
          <table border="0" width="100%" cellspacing="0" cellpadding="3">
            <tr>
              <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              <td class="main" width="40%" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
              <td class="main" width="60%" align="right" valign="top">
               <script type="text/javascript" language="javascript">
               function adres_dostawy() {
               var elem = document.getElementById('adres_wysylki');
               if (document.checkout_address.inny_adres.checked == false) { elem.style.display = 'block'; } else { elem.style.display = 'none'; } }
               </script>
               <table border="0" cellspacing="0" cellpadding="3">
                <?php
                if (!tep_session_is_registered('customer_is_guest')) {
                  echo '<tr><td class="main" align="right">';
                  echo TEXT_SELECTED_BILLING_DESTINATION;
                  echo '</td></tr>';
                  echo '<tr><td class="main" align="right">';
                  echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>';
                  echo '</td></tr>';
                  if ($ten_sam_adres) {
                    echo '<tr><td class="main" align="right">';
                    echo '<input type="checkbox" value="1" name="inny_adres" onClick="adres_dostawy()" '.(($ten_sam_adres==true) ? 'checked' : '').'><b> '.TEXT_ADRES_TEN_SAM.'</b>';
                    echo '</td></tr>';
                  }
                } else {
                  if ($ten_sam_adres && (!tep_session_is_registered('customer_is_guest') || (defined('PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING') && PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING=='true'))) {
                    echo '<tr><td class="main" align="right">';
                    echo '<input type="checkbox" value="1" name="inny_adres" onClick="adres_dostawy()" '.(($ten_sam_adres==true) ? 'checked' : '').'><b> '.TEXT_ADRES_TEN_SAM.'</b>';
                    echo '</td></tr>';
                    } else {
                    echo '<tr><td class="main">&nbsp;</td></tr>';
                  }
                }
                ?>
               </table>
              </td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
            </tr>
          </table>
        </fieldset>
      </td>
    </tr>
    <?php
    if (tep_count_shipping_modules() > 0) {
    ?>
    <tr>
      <td width="100%" align="left" valign="top">
         <div id="adres_wysylki" style="display:<?php echo (($ten_sam_adres==true) ? 'none' : 'block'); ?>">
         <fieldset>
         <legend><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></legend>
          <table border="0" width="100%" cellspacing="0" cellpadding="3">
           <tr>
          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              <td class="main" width="40%" valign="top"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>
              <td class="main" width="60%" align="right" valign="top">
             <table border="0" cellspacing="0" cellpadding="3">
              <?php
              if (!tep_session_is_registered('customer_is_guest') || (defined('PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING') && PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING=='true')) {
                echo '<tr><td class="main" align="right">';
                echo TEXT_CHOOSE_SHIPPING_DESTINATION;
                echo '</td></tr>';
                echo '<tr><td class="main" align="right">';
                echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>';
                echo '</td></tr>';
              } else {
                echo '<tr><td class="main">&nbsp;</td></tr>';
              }
              ?>
             </table>
          </td>
          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
           </tr>
            </table>
         </fieldset>
         </div>
      </td>
    </tr>
    <?php
    }
    ?>
  </table>
  </td>
 </tr>

 <?php
 if (tep_count_giftwrap_modules() > 0) {
 ?>
 <tr>
  <td>
   <fieldset>
   <legend><?php echo TEXT_CHOOSE_GIFTWRAP_METHOD; ?></legend>
    <table border="0" width="100%" cellspacing="0" cellpadding="3">
       <?php
       $quotes1_size = sizeof($quotes1);

       $radio_buttons = 0;
       for ($i=0; $i<$quotes1_size; $i++) {
       ?>
     <tr><td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td></tr>
       <tr>
        <td align="left">
     <table border="0" width="100%" cellspacing="0" cellpadding="1">
          <?php
          if (isset($quotes1[$i]['error'])) {
          ?>
          <tr>
           <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
           <td class="main" colspan="3" align="left"><?php echo $quotes1[$i]['error']; ?></td>
           <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
          </tr>
          <?php
          } else {
          $size = sizeof($quotes1[$i]['methods']);
          for ($j=0, $n2=$size; $j<$n2; $j++) {
           // set the radio button to be checked if it is the method chosen
       $checked == false;
       if (($giftwrap_info == false) && ($checked == false)) {
          $checked = true;
       } else {
              $checked = (($quotes1[$i]['id'] . '_' . $quotes1[$i]['methods'][$j]['id'] == $giftwrap_info['id']) ? true : false);
       }

           if ( ($quotes1[$i]['id'] . '_' . $quotes1[$i]['methods'][$j]['id'] == $giftwrap_info['id']) || (tep_count_giftwrap_modules() == (int)1) || ($giftwrap_info == false && $checked == true)  ) {
           echo '<tr id="defaultSelected_Gift" class="moduleRowSelected" onmouseover="rowOverEffect_Gift(this)" onmouseout="rowOutEffect_Gift(this)" onclick="selectRowEffect_Gift(this, ' . $radio_buttons . ')">' . "\n";
           } else {
           echo ' <tr class="moduleRow" onmouseover="rowOverEffect_Gift(this)" onmouseout="rowOutEffect_Gift(this)" onclick="selectRowEffect_Gift(this, ' . $radio_buttons . ')">' . "\n";
           }
           ?>
            <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
            <td class="main" width="75%" align="left"><?php echo $quotes1[$i]['methods'][$j]['title']; ?></td>
            <?php
            if ( ($quotes1_size > 1) || ($n2 > 1) ) {
            ?>
            <td class="main"><?php echo $currencies->format($quotes1[$i]['methods'][$j]['cost']); ?></td>
            <td class="main" align="right"><?php echo tep_draw_radio_field('giftwrap', $quotes1[$i]['id'] . '_' . $quotes1[$i]['methods'][$j]['id'], $checked); ?></td>
            <?php
            } else {
            ?>
            <td class="main" align="right" colspan="2"><?php echo $currencies->format($quotes1[$i]['methods'][$j]['cost']) . tep_draw_hidden_field('giftwrap', $quotes1[$i]['id'] . '_' . $quotes1[$i]['methods'][$j]['id']); ?></td>
            <?php
            }
            ?>
            <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
           </tr>
           <?php
          $radio_buttons++;
         }
        }
        ?>
        </table>
     </td>
      </tr>
      <?php
      }
      ?>
      </table>
   </fieldset>
  </td>
 </tr>
 <?php
 }
 ?>

 <?php
 if (tep_count_shipping_modules() > 0) {
 ?>
 <tr>
    <td align="center">
      <fieldset>
        <legend><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></legend>
        <table border="0" width="100%" cellspacing="0" cellpadding="3">
          <?php
            $radio_buttons = 0;
            for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
              ?>
              <tr><td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td></tr>
              <tr>
                <td align="left">
                  <table border="0" width="100%" cellspacing="0" cellpadding="1">
                    <tr>
                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                      <td class="main" colspan="3" align="left"><b><?php echo $quotes[$i]['module']; ?></b>&nbsp;<?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>
                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    </tr>
                    <?php
                    if (isset($quotes[$i]['error'])) {
                      ?>
                      <tr>
                        <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                        <td class="main" colspan="3" align="left"><?php echo $quotes[$i]['error']; ?></td>
                        <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                      </tr>
                      <?php
                    } else {
                      for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
                        // set the radio button to be checked if it is the method chosen
                        $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);

                        if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
                          echo '<tr id="defaultSelected_Shipping" class="moduleRowSelected" onmouseover="rowOverEffect_Shipping(this)" onmouseout="rowOutEffect_Shipping(this)" onclick="selectRowEffect_Shipping(this, ' . $radio_buttons . ');pobierz_platnosc()">' . "\n";
                        } else {
                          echo '<tr class="moduleRow" onmouseover="rowOverEffect_Shipping(this)" onmouseout="rowOutEffect_Shipping(this)" onclick="selectRowEffect_Shipping(this, ' . $radio_buttons . ');pobierz_platnosc();">' . "\n";
                        }
                        ?>
                        <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                        <td class="main" width="75%" align="left"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td>
                        <?php
                        if ( ($n > 1) || ($n2 > 1) ) {
                          $wartosc = tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0));
                          if ((float)$wartosc > 0) {
                            $rka = $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0)));
                          } else {
                            $rka = '';
                          }
                          ?>
                          <td class="main"><?php echo $rka; ?></td>
                          <td class="main" align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, ' onClick="pobierz_platnosc()"'); ?></td>
                          <?php
                        } else {
                          $wartosc = tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']);
                          if ((float)$wartosc > 0) {
                            $rka = $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']));
                          } else {
                            $rka = '';
                          }
                          ?>
                          <td class="main" align="right" colspan="2"><?php echo $rka . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td>
                          <?php
                        }
                        ?>
                        <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                        </tr>
                        <?php
                        $radio_buttons++;
                      }
                    }
                    ?>
                  </table>
                </td>
              </tr>
              <?php
            }
          ?>
        </table>
      </fieldset>
    </td>
  </tr>
  <?php
 }
 ?>

</table>

<script type="text/javascript" language="javascript">
// Points/Rewards Module V2.1rc2a bof*/
var submitter = 0;
function submitFunction() {
   if (document.checkout_address.customer_shopping_points_spending.checked == false) {
  submitter = 1;
  } else {
  submitter = 0;
   }
}
// Points/Rewards Module V2.1rc2a eof*/
</script>

<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">

<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">

<!-- TRESC STRONY START -->

  <?php
  if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
  ?>
     <tr>
      <td><script type="text/javascript" language="javascript">okno('<b><?php echo tep_output_string_protected($error['title']); ?></b><br><br><?php echo tep_output_string_protected($error['error']); ?>')</script></td>
     </tr>
  <?php
  }
  ?>

    <tr>
    <td>
        <fieldset>
        <legend><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></legend>
        <div id="wynik">
        <table border="0" width="100%" cellspacing="0" cellpadding="3">
          <?php
          $selection = $payment_modules->selection();

          $radio_buttons = 0;
          for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
            ?>
            <tr><td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td></tr>
            <tr>
              <td align="left">
                <table border="0" width="100%" cellspacing="0" cellpadding="1">
                  <?php
                  if (sizeof($selection) > 1) {
                    echo '<tr id="tr_'.$selection[$i]['id'].'" class="moduleRow" onmouseover="rowOverEffect_Peyment(this)" onmouseout="rowOutEffect_Peyment(this)" onclick="selectRowEffect_Peyment(this, ' . $radio_buttons . ');'.(($selection[$i]['id'] != 'platnosci') ? 'wylacz_platnosci()' : '').'">' . "\n";
                   } else {
                    echo '<tr id="tr_'.$selection[$i]['id'].'" onclick="'.(($selection[$i]['id'] != 'platnosci') ? 'wylacz_platnosci()' : '').'">' . "\n";
                  }
                  ?>
                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  <td class="main" width="75%" align="left"><b><?php echo $selection[$i]['module']; ?></b></td>
                  <td class="main" align="right">
                    <?php
                    if (sizeof($selection) > 1) {
                      echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment) , (($selection[$i]['id'] != 'platnosci') ? ' onclick="wylacz_platnosci()"' : '') . ' id="'.$selection[$i]['id'].'"');
                    } else {
                      echo tep_draw_hidden_field('payment', $selection[$i]['id']);
                    }
                    ?>
                  </td>
                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
                  <?php
                  if (isset($selection[$i]['error'])) {
                    ?>
                    <tr>
                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                      <td class="main" colspan="2"><?php echo $selection[$i]['error']; ?></td>
                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    </tr>
                    <?php
                  } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
                    ?>
                    <tr>
                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                      <td colspan="2">
                        <table border="0" cellspacing="4" cellpadding="2">
                          <?php
                          for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
                            ?>
                            <td class="TableFrame" align="center" onmouseover="this.style.borderColor='#CACACA'" onmouseout="this.style.borderColor='#e7e7e7'">
                              <table border="0" cellspacing="0" cellpadding="0">
                                <tr><td class="main" height="65" valign="middle"><?php echo $selection[$i]['fields'][$j]['title']; ?></td></tr>
                                <tr><td class="main" align="center"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
                              </tr></table>
                            </td>
                            <?php
                            if ( $j == 3 || $j == 7 || $j == 11 || $j == 15 || $j == 19 ) {
                              echo '</tr><tr>';
                            }
                          }
                          ?>
                        </table>
                      </td>
                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    </tr>
                    <?php
                  }
                  ?>
                </table>
              </td>
            </tr>
            <?php
            $radio_buttons++;
          }
          ?>
        </table>
        </div>
      </fieldset>
    </td>
  </tr>

  <?php
    if (!tep_session_is_registered('customer_is_guest')) {
      if ((USE_POINTS_SYSTEM == 'true') && (USE_REDEEM_SYSTEM == 'true')) {
        echo points_selection();
        if (tep_not_null(USE_REFERRAL_SYSTEM) && (tep_count_customer_orders() == 0)) {
          echo referral_input();
        }
      }
    }
  ?>

  <tr>
    <td>
        <fieldset>
        <legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
        <table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td align="center"><?php echo tep_draw_textarea_field('comments', 'soft', '90', '5', $comments); ?></td>
          </tr>
        </table>
      </fieldset>
    </td>
    </tr>

  <?php
  /* kgt - discount coupons */
  if ( !tep_session_is_registered('customer_is_guest') ) {
  if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) {
    ?>
    <tr>
    <td>
        <fieldset>
        <legend><?php echo TABLE_HEADING_COUPON; ?></legend>
        <table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
            <td class="main"><?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"'); ?></td>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
          </tr>
        </table>
      </fieldset>
    </td>
    </tr>
    <?php
  }
}
  /* end kgt - discount coupons */
  ?>

  <!-- Przyciski BOF -->
  <tr>
    <td>
      <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '10'); ?></td>
          <td class="main" align="left"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
          <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        </tr>
      </table>
    </td>
  </tr>
  <!-- Przyciski EOF -->


<!-- TRESC STRONY KONIEC -->

</table>
</td>
</tr>

 <tr>
  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 </tr>
 <tr>
  <td>
   <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
     <td width="33%">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
       <tr>
        <td width="50%" align="right"><?php echo tep_image(DIR_WS_TEMPLATES . 'images/misc/checkout_bullet.gif'); ?></td>
        <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
       </tr>
      </table>
   </td>
     <td width="33%">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
       <tr>
        <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
        <td><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
    <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
       </tr>
      </table>
     </td>
     <td width="33%">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
       <tr>
        <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
        <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_SHIPPEY . '</a>'; ?></td>
     <td align="center" width="33%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
     <td align="center" width="33%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
    </tr>
   </table>
  </td>
 </tr>

</table>
</form>