<?php
/*
  $Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $

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

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
?>
<!-- shopping_cart //-->
          <tr>
            <td>
			<table width="182"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="13" height="20"><div align="center"><img src="images/index/cart_left.gif"></div></td>
          <td width="155" class="infoBoxHeadingnew"><img src="images/index/arrow_catalog_white.gif" width="7" height="8">&nbsp; <?php echo BOX_HEADING_SHOPPING_CART ?></td>
          <td width="13" height="20" ><img src="images/index/cart_right.gif"></td>
        </tr>
      </table>
	  <table width="182"  border="0" cellpadding="2" cellspacing="1" class="infoBoxContentsnew">
        <tr>
          <td width="191" height="65" bgcolor="#FFFFFF" valign="top">
		  <table width="100%"  border="0" cellspacing="1" cellpadding="1">
<!--              <tr>
                <td><span class="cart_zi_title_big"><?php //echo SHOPPING_CART_TEXT_1 ?></span></td>
              </tr>
              <tr>
                <td><?php //echo SHOPPING_CART_TEXT_2 ?></td>
              </tr>
-->			  
              <tr>
                <td height="23">
                  <?php echo SHOPPING_CART_TEXT_3_OUTPUT ?></td>
              </tr>
			  
            </table>
			
              <table width="100%"  border="0" cellspacing="0" cellpadding="1">
                <tr>
                 
                  <td width="94%" class="text_4"><div align="center"><?php


  $cart_contents_string = '';
  if ($cart->count_contents() > 0) {
    $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0" >';
    $products = $cart->get_products();
    for ($i=0, $n=sizeof($products); $i<$n; $i++) {
      $cart_contents_string .= '<tr><td align="right" valign="top" class="catalog_zi_link_cart_qu">';

      if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
        $cart_contents_string .= '<span class="newItemInCart">';
      } else {
        $cart_contents_string .= '<span class="catalog_zi_link_cart_qu">';
      }

      $cart_contents_string .= $products[$i]['quantity'] . '&nbsp;x&nbsp;</span></td><td valign="top" class="catalog_zi_link_cart_qu"><a href="' . "./products/".soobic_get_RootcategoryName(soobic_get_p_categoryid($products[$i]['id']))."/".soobic_get_productName($products[$i]['id']).".html" . '">';

      if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
        $cart_contents_string .= '<span class="newItemInCart">';
      } else {
        $cart_contents_string .= '<span class="catalog_zi_link_cart">';
      }

      $cart_contents_string .= $products[$i]['name'] . '</span></a></td></tr>';

      if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
        tep_session_unregister('new_products_id_in_cart');
      }
    }
    $cart_contents_string .= '</table>';
  } else {
    $cart_contents_string .= BOX_SHOPPING_CART_EMPTY;
  }
   echo $cart_contents_string;?>


  
  



</div></td>
                </tr>

                <tr>
                  <td  ><div align="right" class="text_price_total"><?php
 if ($cart->count_contents() > 0) { 

   echo $currencies->format($cart->show_total());}?></div></td>
                </tr>
          </table>          </td>
        </tr>
      </table>
            <table width="182"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="196" height="10" ></td>
              </tr>
            </table></td>
          </tr>
<!-- shopping_cart_eof //-->
