[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1      <?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_hidden_field('action', 'process'); ?><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        <tr>
  14          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  15            <tr>
  16              <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td>
  17            </tr>
  18          </table></td>
  19        </tr>
  20        <tr>
  21          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  22            <tr class="infoBoxContents">
  23              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  24                <tr>
  25                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  26                  <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_DESTINATION . '<br><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
  27                  <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
  28                    <tr>
  29                      <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>
  30                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  31                      <td class="main" valign="top"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>
  32                      <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  33                    </tr>
  34                  </table></td>
  35                </tr>
  36              </table></td>
  37            </tr>
  38          </table></td>
  39        </tr>
  40        <tr>
  41          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  42        </tr>
  43  <?php
  44    if (tep_count_shipping_modules() > 0) {
  45  ?>
  46        <tr>
  47          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  48            <tr>
  49              <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></b></td>
  50            </tr>
  51          </table></td>
  52        </tr>
  53        <tr>
  54          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  55            <tr class="infoBoxContents">
  56              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  57  <?php
  58      if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
  59  ?>
  60                <tr>
  61                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  62                  <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td>
  63                  <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>
  64                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  65                </tr>
  66  <?php
  67      } elseif ($free_shipping == false) {
  68  ?>
  69                <tr>
  70                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  71                  <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></td>
  72                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  73                </tr>
  74  <?php
  75      }
  76  
  77      if ($free_shipping == true) {
  78  ?>
  79                <tr>
  80                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  81                  <td colspan="2" width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  82                    <tr>
  83                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  84                      <td class="main" colspan="3"><b><?php echo FREE_SHIPPING_TITLE; ?></b>&nbsp;<?php echo $quotes[$i]['icon']; ?></td>
  85                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  86                    </tr>
  87                    <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)">
  88                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  89                      <td class="main" width="100%"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?></td>
  90                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  91                    </tr>
  92                  </table></td>
  93                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  94                </tr>
  95  <?php
  96      } else {
  97        $radio_buttons = 0;
  98        for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
  99  ?>
 100                <tr>
 101                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 102                  <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 103                    <tr>
 104                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 105                      <td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b>&nbsp;<?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>
 106                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 107                    </tr>
 108  <?php
 109          if (isset($quotes[$i]['error'])) {
 110  ?>
 111                    <tr>
 112                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 113                      <td class="main" colspan="3"><?php echo $quotes[$i]['error']; ?></td>
 114                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 115                    </tr>
 116  <?php
 117          } else {
 118            for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
 119  // set the radio button to be checked if it is the method chosen
 120              $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);
 121  
 122              if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
 123                echo '                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
 124              } else {
 125                echo '                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
 126              }
 127  ?>
 128                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 129                      <td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td>
 130  <?php
 131              if ( ($n > 1) || ($n2 > 1) ) {
 132  ?>
 133                      <td class="main"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td>
 134                      <td class="main" align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td>
 135  <?php
 136              } else {
 137  ?>
 138                      <td class="main" align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td>
 139  <?php
 140              }
 141  ?>
 142                      <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 143                    </tr>
 144  <?php
 145              $radio_buttons++;
 146            }
 147          }
 148  ?>
 149                  </table></td>
 150                  <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
 151                </tr>
 152  <?php
 153        }
 154      }
 155  ?>
 156              </table></td>
 157            </tr>
 158          </table></td>
 159        </tr>
 160        <tr>
 161          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 162        </tr>
 163  <?php
 164    }
 165  ?>
 166        <tr>
 167          <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 168            <tr>
 169              <td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
 170            </tr>
 171          </table></td>
 172        </tr>
 173        <tr>
 174          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 175            <tr class="infoBoxContents">
 176              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 177                <tr>
 178                  <td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
 179                </tr>
 180              </table></td>
 181            </tr>
 182          </table></td>
 183        </tr>
 184        <tr>
 185          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 186        </tr>
 187        <tr>
 188          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 189            <tr class="infoBoxContents">
 190              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 191                <tr>
 192                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 193                  <td class="main"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
 194                  <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
 195                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 196                </tr>
 197              </table></td>
 198            </tr>
 199          </table></td>
 200        </tr>
 201        <tr>
 202          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 203        </tr>
 204        <tr>
 205          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
 206            <tr>
 207              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 208                <tr>
 209                  <td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
 210                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 211                </tr>
 212              </table></td>
 213              <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 214              <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 215              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 216                <tr>
 217                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 218                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 219                </tr>
 220              </table></td>
 221            </tr>
 222            <tr>
 223              <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_DELIVERY; ?></td>
 224              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
 225              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
 226              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
 227            </tr>
 228          </table></td>
 229        </tr>
 230      </table></form>
 231  


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