[ Index ] |
|
Code source de osCommerce 2.2ms2-060817 |
1 <?php 2 /* 3 $Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $ 4 5 osCommerce, Open Source E-Commerce Solutions 6 http://www.oscommerce.com 7 8 Copyright (c) 2003 osCommerce 9 10 Released under the GNU General Public License 11 */ 12 ?> 13 <!-- shopping_cart //--> 14 <tr> 15 <td> 16 <?php 17 $info_box_contents = array(); 18 $info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART); 19 20 new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART)); 21 22 $cart_contents_string = ''; 23 if ($cart->count_contents() > 0) { 24 $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; 25 $products = $cart->get_products(); 26 for ($i=0, $n=sizeof($products); $i<$n; $i++) { 27 $cart_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">'; 28 29 if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { 30 $cart_contents_string .= '<span class="newItemInCart">'; 31 } else { 32 $cart_contents_string .= '<span class="infoBoxContents">'; 33 } 34 35 $cart_contents_string .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">'; 36 37 if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { 38 $cart_contents_string .= '<span class="newItemInCart">'; 39 } else { 40 $cart_contents_string .= '<span class="infoBoxContents">'; 41 } 42 43 $cart_contents_string .= $products[$i]['name'] . '</span></a></td></tr>'; 44 45 if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { 46 tep_session_unregister('new_products_id_in_cart'); 47 } 48 } 49 $cart_contents_string .= '</table>'; 50 } else { 51 $cart_contents_string .= BOX_SHOPPING_CART_EMPTY; 52 } 53 54 $info_box_contents = array(); 55 $info_box_contents[] = array('text' => $cart_contents_string); 56 57 if ($cart->count_contents() > 0) { 58 $info_box_contents[] = array('text' => tep_draw_separator()); 59 $info_box_contents[] = array('align' => 'right', 60 'text' => $currencies->format($cart->show_total())); 61 } 62 63 new infoBox($info_box_contents); 64 ?> 65 </td> 66 </tr> 67 <!-- shopping_cart_eof //-->
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 19:48:25 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |