[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/templates/fallback/content/ -> checkout_shipping_address.tpl.php (source)

   1      <?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'), 'post', 'onSubmit="return check_form_optional(checkout_address);"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
   2        <tr>
   3          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
   4            <tr>
   5              <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
   6              <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
   7            </tr>
   8          </table></td>
   9        </tr>
  10        <tr>
  11          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  12        </tr>
  13  <?php
  14    if ($messageStack->size('checkout_address') > 0) {
  15  ?>
  16        <tr>
  17          <td><?php echo $messageStack->output('checkout_address'); ?></td>
  18        </tr>
  19        <tr>
  20          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  21        </tr>
  22  <?php
  23    }
  24  
  25    if ($process == false) {
  26  ?>
  27        <tr>
  28          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  29            <tr>
  30              <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td>
  31            </tr>
  32          </table></td>
  33        </tr>
  34        <tr>
  35          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  36            <tr class="infoBoxContents">
  37              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  38                <tr>
  39                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  40                  <td class="main" width="50%" valign="top"><?php echo TEXT_SELECTED_SHIPPING_DESTINATION; ?></td>
  41                  <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
  42                    <tr>
  43                      <td class="main" align="center" valign="top"><?php echo '<b>' . TITLE_SHIPPING_ADDRESS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
  44                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  45                      <td class="main" valign="top"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>
  46                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  47                    </tr>
  48                  </table></td>
  49                </tr>
  50              </table></td>
  51            </tr>
  52          </table></td>
  53        </tr>
  54        <tr>
  55          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  56        </tr>
  57  <?php
  58      if ($addresses_count > 1) {
  59  ?>
  60        <tr>
  61          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  62            <tr>
  63              <td class="main"><b><?php echo TABLE_HEADING_ADDRESS_BOOK_ENTRIES; ?></b></td>
  64            </tr>
  65          </table></td>
  66        </tr>
  67        <tr>
  68          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  69            <tr class="infoBoxContents">
  70              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  71                <tr>
  72                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  73                  <td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_OTHER_SHIPPING_DESTINATION; ?></td>
  74                  <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>
  75                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  76                </tr>
  77  <?php
  78        $radio_buttons = 0;
  79  
  80        $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 = '" . (int)$customer_id . "'");
  81        while ($addresses = tep_db_fetch_array($addresses_query)) {
  82          $format_id = tep_get_address_format_id($addresses['country_id']);
  83  ?>
  84                <tr>
  85                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  86                  <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  87  <?php
  88         if ($addresses['address_book_id'] == $sendto) {
  89            echo '                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
  90          } else {
  91            echo '                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
  92          }
  93  ?>
  94                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  95                      <td class="main" colspan="2"><b><?php echo tep_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?></b></td>
  96                      <td class="main" align="right"><?php echo tep_draw_radio_field('address', $addresses['address_book_id'], ($addresses['address_book_id'] == $sendto)); ?></td>
  97                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  98                    </tr>
  99                    <tr>
 100                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 101                      <td colspan="3"><table border="0" cellspacing="0" cellpadding="2">
 102                        <tr>
 103                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 104                          <td class="main"><?php echo tep_address_format($format_id, $addresses, true, ' ', ', '); ?></td>
 105                          <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 106                        </tr>
 107                      </table></td>
 108                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 109                    </tr>
 110                  </table></td>
 111                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 112                </tr>
 113  <?php
 114          $radio_buttons++;
 115        }
 116  ?>
 117              </table></td>
 118            </tr>
 119          </table></td>
 120        </tr>
 121        <tr>
 122          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 123        </tr>
 124  <?php
 125      }
 126    }
 127  
 128    if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) {
 129  ?>
 130        <tr>
 131          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 132            <tr>
 133              <td class="main"><b><?php echo TABLE_HEADING_NEW_SHIPPING_ADDRESS; ?></b></td>
 134            </tr>
 135          </table></td>
 136        </tr>
 137        <tr>
 138          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 139            <tr class="infoBoxContents">
 140              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 141                <tr>
 142                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 143                  <td class="main" width="100%" valign="top"><?php echo TEXT_CREATE_NEW_SHIPPING_ADDRESS; ?></td>
 144                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 145                </tr>
 146                <tr>
 147                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 148                  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 149                    <tr>
 150                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 151                      <td><?php require (DIR_WS_MODULES . 'checkout_new_address.php'); ?></td>
 152                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 153                    </tr>
 154                  </table></td>
 155                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 156                </tr>
 157              </table></td>
 158            </tr>
 159          </table></td>
 160        </tr>
 161  <?php
 162    }
 163  ?>
 164        <tr>
 165          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 166        </tr>
 167        <tr>
 168          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 169            <tr class="infoBoxContents">
 170              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 171                <tr>
 172                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 173                  <td class="main"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
 174                  <td class="main" align="right"><?php echo tep_draw_hidden_field('action', 'submit') . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
 175                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 176                </tr>
 177              </table></td>
 178            </tr>
 179          </table></td>
 180        </tr>
 181  <?php
 182    if ($process == true) {
 183  ?>
 184        <tr>
 185          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 186        </tr>
 187        <tr>
 188          <td><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
 189        </tr>
 190  <?php
 191    }
 192  ?>
 193        <tr>
 194          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 195        </tr>
 196        <tr>
 197          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
 198            <tr>
 199              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 200                <tr>
 201                  <td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
 202                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 203                </tr>
 204              </table></td>
 205              <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 206              <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 207              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 208                <tr>
 209                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 210                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 211                </tr>
 212              </table></td>
 213            </tr>
 214            <tr>
 215              <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_DELIVERY; ?></td>
 216              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
 217              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
 218              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
 219            </tr>
 220          </table></td>
 221        </tr>
 222      </table></form>
 223  


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7