[ Index ]
 

Code source de osCommerce 2.2ms2-060817

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/catalog/ -> checkout_payment_address.php (source)

   1  <?php
   2  /*
   3    $Id: checkout_payment_address.php,v 1.14 2003/06/09 23:03:53 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    require ('includes/application_top.php');
  14  
  15  // if the customer is not logged on, redirect them to the login page
  16    if (!tep_session_is_registered('customer_id')) {
  17      $navigation->set_snapshot();
  18      tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  19    }
  20  
  21  // if there is nothing in the customers cart, redirect them to the shopping cart page
  22    if ($cart->count_contents() < 1) {
  23      tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  24    }
  25  
  26  // needs to be included earlier to set the success message in the messageStack
  27    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT_ADDRESS);
  28  
  29    $error = false;
  30    $process = false;
  31    if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'submit')) {
  32  // process a new billing address
  33      if (tep_not_null($HTTP_POST_VARS['firstname']) && tep_not_null($HTTP_POST_VARS['lastname']) && tep_not_null($HTTP_POST_VARS['street_address'])) {
  34        $process = true;
  35  
  36        if (ACCOUNT_GENDER == 'true') $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
  37        if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
  38        $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
  39        $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
  40        $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);
  41        if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);
  42        $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);
  43        $city = tep_db_prepare_input($HTTP_POST_VARS['city']);
  44        $country = tep_db_prepare_input($HTTP_POST_VARS['country']);
  45        if (ACCOUNT_STATE == 'true') {
  46          if (isset($HTTP_POST_VARS['zone_id'])) {
  47            $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);
  48          } else {
  49            $zone_id = false;
  50          }
  51          $state = tep_db_prepare_input($HTTP_POST_VARS['state']);
  52        }
  53  
  54        if (ACCOUNT_GENDER == 'true') {
  55          if ( ($gender != 'm') && ($gender != 'f') ) {
  56            $error = true;
  57  
  58            $messageStack->add('checkout_address', ENTRY_GENDER_ERROR);
  59          }
  60        }
  61  
  62        if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
  63          $error = true;
  64  
  65          $messageStack->add('checkout_address', ENTRY_FIRST_NAME_ERROR);
  66        }
  67  
  68        if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
  69          $error = true;
  70  
  71          $messageStack->add('checkout_address', ENTRY_LAST_NAME_ERROR);
  72        }
  73  
  74        if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
  75          $error = true;
  76  
  77          $messageStack->add('checkout_address', ENTRY_STREET_ADDRESS_ERROR);
  78        }
  79  
  80        if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
  81          $error = true;
  82  
  83          $messageStack->add('checkout_address', ENTRY_POST_CODE_ERROR);
  84        }
  85  
  86        if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {
  87          $error = true;
  88  
  89          $messageStack->add('checkout_address', ENTRY_CITY_ERROR);
  90        }
  91  
  92        if (ACCOUNT_STATE == 'true') {
  93          $zone_id = 0;
  94          $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'");
  95          $check = tep_db_fetch_array($check_query);
  96          $entry_state_has_zones = ($check['total'] > 0);
  97          if ($entry_state_has_zones == true) {
  98            $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name like '" . tep_db_input($state) . "%' or zone_code like '%" . tep_db_input($state) . "%')");
  99            if (tep_db_num_rows($zone_query) == 1) {
 100              $zone = tep_db_fetch_array($zone_query);
 101              $zone_id = $zone['zone_id'];
 102            } else {
 103              $error = true;
 104  
 105              $messageStack->add('checkout_address', ENTRY_STATE_ERROR_SELECT);
 106            }
 107          } else {
 108            if (strlen($state) < ENTRY_STATE_MIN_LENGTH) {
 109              $error = true;
 110  
 111              $messageStack->add('checkout_address', ENTRY_STATE_ERROR);
 112            }
 113          }
 114        }
 115  
 116        if ( (is_numeric($country) == false) || ($country < 1) ) {
 117          $error = true;
 118  
 119          $messageStack->add('checkout_address', ENTRY_COUNTRY_ERROR);
 120        }
 121  
 122        if ($error == false) {
 123          $sql_data_array = array('customers_id' => $customer_id,
 124                                  'entry_firstname' => $firstname,
 125                                  'entry_lastname' => $lastname,
 126                                  'entry_street_address' => $street_address,
 127                                  'entry_postcode' => $postcode,
 128                                  'entry_city' => $city,
 129                                  'entry_country_id' => $country);
 130  
 131          if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
 132          if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company;
 133          if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb;
 134          if (ACCOUNT_STATE == 'true') {
 135            if ($zone_id > 0) {
 136              $sql_data_array['entry_zone_id'] = $zone_id;
 137              $sql_data_array['entry_state'] = '';
 138            } else {
 139              $sql_data_array['entry_zone_id'] = '0';
 140              $sql_data_array['entry_state'] = $state;
 141            }
 142          }
 143  
 144          if (!tep_session_is_registered('billto')) tep_session_register('billto');
 145  
 146          tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
 147  
 148          $billto = tep_db_insert_id();
 149  
 150          if (tep_session_is_registered('payment')) tep_session_unregister('payment');
 151  
 152          tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 153        }
 154  // process the selected billing destination
 155      } elseif (isset($HTTP_POST_VARS['address'])) {
 156        $reset_payment = false;
 157        if (tep_session_is_registered('billto')) {
 158          if ($billto != $HTTP_POST_VARS['address']) {
 159            if (tep_session_is_registered('payment')) {
 160              $reset_payment = true;
 161            }
 162          }
 163        } else {
 164          tep_session_register('billto');
 165        }
 166  
 167        $billto = $HTTP_POST_VARS['address'];
 168  
 169        $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "' and address_book_id = '" . $billto . "'");
 170        $check_address = tep_db_fetch_array($check_address_query);
 171  
 172        if ($check_address['total'] == '1') {
 173          if ($reset_payment == true) tep_session_unregister('payment');
 174          tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 175        } else {
 176          tep_session_unregister('billto');
 177        }
 178  // no addresses to select from - customer decided to keep the current assigned address
 179      } else {
 180        if (!tep_session_is_registered('billto')) tep_session_register('billto');
 181        $billto = $customer_default_address_id;
 182  
 183        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 184      }
 185    }
 186  
 187  // if no billing destination address was selected, use their own address as default
 188    if (!tep_session_is_registered('billto')) {
 189      $billto = $customer_default_address_id;
 190    }
 191  
 192    $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 193    $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
 194  
 195    $addresses_count = tep_count_customer_address_book_entries();
 196  ?>
 197  <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
 198  <html <?php echo HTML_PARAMS; ?>>
 199  <head>
 200  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
 201  <title><?php echo TITLE; ?></title>
 202  <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
 203  <link rel="stylesheet" type="text/css" href="stylesheet.css">
 204  <script language="javascript"><!--
 205  var selected;
 206  
 207  function selectRowEffect(object, buttonSelect) {
 208    if (!selected) {
 209      if (document.getElementById) {
 210        selected = document.getElementById('defaultSelected');
 211      } else {
 212        selected = document.all['defaultSelected'];
 213      }
 214    }
 215  
 216    if (selected) selected.className = 'moduleRow';
 217    object.className = 'moduleRowSelected';
 218    selected = object;
 219  
 220  // one button is not an array
 221    if (document.checkout_address.address[0]) {
 222      document.checkout_address.address[buttonSelect].checked=true;
 223    } else {
 224      document.checkout_address.address.checked=true;
 225    }
 226  }
 227  
 228  function rowOverEffect(object) {
 229    if (object.className == 'moduleRow') object.className = 'moduleRowOver';
 230  }
 231  
 232  function rowOutEffect(object) {
 233    if (object.className == 'moduleRowOver') object.className = 'moduleRow';
 234  }
 235  
 236  function check_form_optional(form_name) {
 237    var form = form_name;
 238  
 239    var firstname = form.elements['firstname'].value;
 240    var lastname = form.elements['lastname'].value;
 241    var street_address = form.elements['street_address'].value;
 242  
 243    if (firstname == '' && lastname == '' && street_address == '') {
 244      return true;
 245    } else {
 246      return check_form(form_name);
 247    }
 248  }
 249  //--></script>
 250  <?php require(DIR_WS_INCLUDES . 'form_check.js.php'); ?>
 251  </head>
 252  <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
 253  <!-- header //-->
 254  <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
 255  <!-- header_eof //-->
 256  
 257  <!-- body //-->
 258  <table border="0" width="100%" cellspacing="3" cellpadding="3">
 259    <tr>
 260      <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
 261  <!-- left_navigation //-->
 262  <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
 263  <!-- left_navigation_eof //-->
 264      </table></td>
 265  <!-- body_text //-->
 266      <td width="100%" valign="top"><?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'), 'post', 'onSubmit="return check_form_optional(checkout_address);"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
 267        <tr>
 268          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
 269            <tr>
 270              <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
 271              <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
 272            </tr>
 273          </table></td>
 274        </tr>
 275        <tr>
 276          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 277        </tr>
 278  <?php
 279    if ($messageStack->size('checkout_address') > 0) {
 280  ?>
 281        <tr>
 282          <td><?php echo $messageStack->output('checkout_address'); ?></td>
 283        </tr>
 284        <tr>
 285          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 286        </tr>
 287  <?php
 288    }
 289  
 290    if ($process == false) {
 291  ?>
 292        <tr>
 293          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 294            <tr>
 295              <td class="main"><b><?php echo TABLE_HEADING_PAYMENT_ADDRESS; ?></b></td>
 296            </tr>
 297          </table></td>
 298        </tr>
 299        <tr>
 300          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 301            <tr class="infoBoxContents">
 302              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 303                <tr>
 304                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 305                  <td class="main" width="50%" valign="top"><?php echo TEXT_SELECTED_PAYMENT_DESTINATION; ?></td>
 306                  <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
 307                    <tr>
 308                      <td class="main" align="center" valign="top"><?php echo '<b>' . TITLE_PAYMENT_ADDRESS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
 309                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 310                      <td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
 311                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 312                    </tr>
 313                  </table></td>
 314                </tr>
 315              </table></td>
 316            </tr>
 317          </table></td>
 318        </tr>
 319        <tr>
 320          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 321        </tr>
 322  <?php
 323      if ($addresses_count > 1) {
 324  ?>
 325        <tr>
 326          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 327            <tr>
 328              <td class="main"><b><?php echo TABLE_HEADING_ADDRESS_BOOK_ENTRIES; ?></b></td>
 329            </tr>
 330          </table></td>
 331        </tr>
 332        <tr>
 333          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 334            <tr class="infoBoxContents">
 335              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 336                <tr>
 337                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 338                  <td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_OTHER_PAYMENT_DESTINATION; ?></td>
 339                  <td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
 340                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 341                </tr>
 342  <?php
 343        $radio_buttons = 0;
 344  
 345        $addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");
 346        while ($addresses = tep_db_fetch_array($addresses_query)) {
 347          $format_id = tep_get_address_format_id($addresses['country_id']);
 348  ?>
 349                <tr>
 350                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 351                  <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 352  <?php
 353         if ($addresses['address_book_id'] == $billto) {
 354            echo '                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
 355          } else {
 356            echo '                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
 357          }
 358  ?>
 359                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 360                      <td class="main" colspan="2"><b><?php echo $addresses['firstname'] . ' ' . $addresses['lastname']; ?></b></td>
 361                      <td class="main" align="right"><?php echo tep_draw_radio_field('address', $addresses['address_book_id'], ($addresses['address_book_id'] == $billto)); ?></td>
 362                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 363                    </tr>
 364                    <tr>
 365                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 366                      <td colspan="3"><table border="0" cellspacing="0" cellpadding="2">
 367                        <tr>
 368                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 369                          <td class="main"><?php echo tep_address_format($format_id, $addresses, true, ' ', ', '); ?></td>
 370                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 371                        </tr>
 372                      </table></td>
 373                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 374                    </tr>
 375                  </table></td>
 376                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 377                </tr>
 378  <?php
 379          $radio_buttons++;
 380        }
 381  ?>
 382              </table></td>
 383            </tr>
 384          </table></td>
 385        </tr>
 386        <tr>
 387          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 388        </tr>
 389  <?php
 390      }
 391    }
 392  
 393    if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) {
 394  ?>
 395        <tr>
 396          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 397            <tr>
 398              <td class="main"><b><?php echo TABLE_HEADING_NEW_PAYMENT_ADDRESS; ?></b></td>
 399            </tr>
 400          </table></td>
 401        </tr>
 402        <tr>
 403          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 404            <tr class="infoBoxContents">
 405              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 406                <tr>
 407                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 408                  <td class="main" width="100%" valign="top"><?php echo TEXT_CREATE_NEW_PAYMENT_ADDRESS; ?></td>
 409                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 410                </tr>
 411                <tr>
 412                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 413                  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 414                    <tr>
 415                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 416                      <td><?php require(DIR_WS_MODULES . 'checkout_new_address.php'); ?></td>
 417                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 418                    </tr>
 419                  </table></td>
 420                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 421                </tr>
 422              </table></td>
 423            </tr>
 424          </table></td>
 425        </tr>
 426  <?php
 427    }
 428  ?>
 429        <tr>
 430          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 431        </tr>
 432        <tr>
 433          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 434            <tr class="infoBoxContents">
 435              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 436                <tr>
 437                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 438                  <td class="main"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
 439                  <td class="main" align="right"><?php echo tep_draw_hidden_field('action', 'submit') . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
 440                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 441                </tr>
 442              </table></td>
 443            </tr>
 444          </table></td>
 445        </tr>
 446  <?php
 447    if ($process == true) {
 448  ?>
 449        <tr>
 450          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 451        </tr>
 452        <tr>
 453          <td><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
 454        </tr>
 455  <?php
 456    }
 457  ?>
 458        <tr>
 459          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 460        </tr>
 461        <tr>
 462          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
 463            <tr>
 464              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 465                <tr>
 466                  <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 467                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 468                </tr>
 469              </table></td>
 470              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 471                <tr>
 472                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 473                  <td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
 474                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 475                </tr>
 476              </table></td>
 477              <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 478              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 479                <tr>
 480                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 481                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 482                </tr>
 483              </table></td>
 484            </tr>
 485            <tr>
 486              <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
 487              <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
 488              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
 489              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
 490            </tr>
 491          </table></td>
 492        </tr>
 493      </table></form></td>
 494  <!-- body_text_eof //-->
 495      <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
 496  <!-- right_navigation //-->
 497  <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
 498  <!-- right_navigation_eof //-->
 499      </table></td>
 500    </tr>
 501  </table>
 502  <!-- body_eof //-->
 503  
 504  <!-- footer //-->
 505  <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
 506  <!-- footer_eof //-->
 507  <br>
 508  </body>
 509  </html>
 510  <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


Généré le : Mon Nov 26 19:48:25 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics