[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * Header code file for the Address Book page 4 * 5 * @package page 6 * @copyright Copyright 2003-2005 Zen Cart Development Team 7 * @copyright Portions Copyright 2003 osCommerce 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: header_php.php 2944 2006-02-02 17:13:18Z wilt $ 10 */ 11 // This should be first line of the script: 12 $zco_notifier->notify('NOTIFY_HEADER_START_ADDRESS_BOOK'); 13 14 if (!$_SESSION['customer_id']) { 15 $_SESSION['navigation']->set_snapshot(); 16 zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL')); 17 } 18 require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); 19 $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_ACCOUNT, '', 'SSL')); 20 $breadcrumb->add(NAVBAR_TITLE_2); 21 22 $addresses_query = "SELECT address_book_id, entry_firstname as firstname, entry_lastname as lastname, 23 entry_company as company, entry_street_address as street_address, 24 entry_suburb as suburb, entry_city as city, entry_postcode as postcode, 25 entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id 26 FROM " . TABLE_ADDRESS_BOOK . " 27 WHERE customers_id = :customersID 28 ORDER BY firstname, lastname"; 29 30 $addresses_query = $db->bindVars($addresses_query, ':customersID', $_SESSION['customer_id'], 'integer'); 31 $addresses = $db->Execute($addresses_query); 32 33 while (!$addresses->EOF) { 34 $format_id = zen_get_address_format_id($addresses->fields['country_id']); 35 36 $addressArray[] = array('firstname'=>$addresses->fields['firstname'], 37 'lastname'=>$addresses->fields['lastname'], 38 'address_book_id'=>$addresses->fields['address_book_id'], 39 'format_id'=>$format_id, 40 'address'=>$addresses->fields); 41 42 43 44 $addresses->MoveNext(); 45 } 46 47 // This should be last line of the script: 48 $zco_notifier->notify('NOTIFY_HEADER_END_ADDRESS_BOOK'); 49 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |