[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1      <?php
   2                    if (isset($$payment->form_action_url)) {
   3                    $form_action_url = $$payment->form_action_url;
   4                      } else {
   5                        $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
   6                      }
   7                    
   8                      echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
   9         ?>
  10      <table border="0" width="100%" cellspacing="0" cellpadding="0">
  11        <tr>
  12          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  13            <tr>
  14              <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
  15              <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_confirmation.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
  16            </tr>
  17          </table></td>
  18        </tr>
  19        <tr>
  20          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  21        </tr>
  22        <tr>
  23          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  24            <tr class="infoBoxContents">
  25  <?php
  26    if ($sendto != false) {
  27  ?>
  28              <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  29                <tr>
  30                  <td class="main"><?php echo '<b>' . HEADING_DELIVERY_ADDRESS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  31                </tr>
  32                <tr>
  33                  <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td>
  34                </tr>
  35  <?php
  36      if ($order->info['shipping_method']) {
  37  ?>
  38                <tr>
  39                  <td class="main"><?php echo '<b>' . HEADING_SHIPPING_METHOD . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  40                </tr>
  41                <tr>
  42                  <td class="main"><?php echo $order->info['shipping_method']; ?></td>
  43                </tr>
  44  <?php
  45      }
  46  ?>
  47              </table></td>
  48  <?php
  49    }
  50  ?>
  51              <td width="<?php echo (($sendto != false) ? '70%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  52                <tr>
  53                  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  54  <?php
  55    if (sizeof($order->info['tax_groups']) > 1) {
  56  ?>
  57                    <tr>
  58                      <td class="main" colspan="2"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  59                      <td class="smallText" align="right"><b><?php echo HEADING_TAX; ?></b></td>
  60                      <td class="smallText" align="right"><b><?php echo HEADING_TOTAL; ?></b></td>
  61                    </tr>
  62  <?php
  63    } else {
  64  ?>
  65                    <tr>
  66                      <td class="main" colspan="3"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  67                    </tr>
  68  <?php
  69    }
  70  
  71    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
  72      echo '          <tr>' . "\n" .
  73           '            <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
  74           '            <td class="main" valign="top">' . $order->products[$i]['name'];
  75  
  76      if (STOCK_CHECK == 'true') {
  77  //++++ QT Pro: Begin Changed code
  78        echo $check_stock[$i];
  79  //++++ QT Pro: End Changed Code
  80      }
  81  
  82      if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
  83        for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
  84          echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
  85        }
  86      }
  87  
  88      echo '</td>' . "\n";
  89  
  90      if (sizeof($order->info['tax_groups']) > 1) echo '            <td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
  91  
  92      echo '            <td class="main" align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
  93           '          </tr>' . "\n";
  94    }
  95  ?>
  96                  </table></td>
  97                </tr>
  98              </table></td>
  99            </tr>
 100          </table></td>
 101        </tr>
 102        <tr>
 103          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 104        </tr>
 105        <tr>
 106          <td class="main"><b><?php echo HEADING_BILLING_INFORMATION; ?></b></td>
 107        </tr>
 108        <tr>
 109          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 110        </tr>
 111        <tr>
 112          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 113            <tr class="infoBoxContents">
 114              <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 115                <tr>
 116                  <td class="main"><?php echo '<b>' . HEADING_BILLING_ADDRESS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
 117                </tr>
 118                <tr>
 119                  <td class="main"><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'); ?></td>
 120                </tr>
 121                <tr>
 122                  <td class="main"><?php echo '<b>' . HEADING_PAYMENT_METHOD . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
 123                </tr>
 124                <tr>
 125                  <td class="main"><?php echo $order->info['payment_method']; ?></td>
 126                </tr>
 127              </table></td>
 128              <td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">
 129  <?php
 130    if (MODULE_ORDER_TOTAL_INSTALLED) {
 131      $order_total_modules->process();
 132      echo $order_total_modules->output();
 133    }
 134  ?>
 135              </table></td>
 136            </tr>
 137          </table></td>
 138        </tr>
 139  <?php
 140    if (is_array($payment_modules->modules)) {
 141      if ($confirmation = $payment_modules->confirmation()) {
 142  ?>
 143        <tr>
 144          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 145        </tr>
 146        <tr>
 147          <td class="main"><b><?php echo HEADING_PAYMENT_INFORMATION; ?></b></td>
 148        </tr>
 149        <tr>
 150          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 151        </tr>
 152        <tr>
 153          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 154            <tr class="infoBoxContents">
 155              <td><table border="0" cellspacing="0" cellpadding="2">
 156                <tr>
 157                  <td class="main" colspan="4"><?php echo $confirmation['title']; ?></td>
 158                </tr>
 159  <?php
 160        for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
 161  ?>
 162                <tr>
 163                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 164                  <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
 165                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 166                  <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
 167                </tr>
 168  <?php
 169        }
 170  ?>
 171              </table></td>
 172            </tr>
 173          </table></td>
 174        </tr>
 175  <?php
 176      }
 177    }
 178  ?>
 179        <tr>
 180          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 181        </tr>
 182  <?php
 183    if (tep_not_null($order->info['comments'])) {
 184  ?>
 185        <tr>
 186          <td class="main"><?php echo '<b>' . HEADING_ORDER_COMMENTS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
 187        </tr>
 188        <tr>
 189          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 190        </tr>
 191        <tr>
 192          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 193            <tr class="infoBoxContents">
 194              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 195                <tr>
 196                  <td class="main"><?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?></td>
 197                </tr>
 198              </table></td>
 199            </tr>
 200          </table></td>
 201        </tr>
 202        <tr>
 203          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 204        </tr>
 205  <?php
 206    }
 207  ?>
 208        <tr>
 209          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
 210            <tr>
 211              <td align="right" class="main">
 212  <?php
 213  
 214    if (is_array($payment_modules->modules)) {
 215      echo $payment_modules->process_button();
 216    }
 217  
 218    echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";
 219  ?>
 220              </td>
 221            </tr>
 222          </table></td>
 223        </tr>
 224        <tr>
 225          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 226        </tr>
 227        <tr>
 228          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
 229            <tr>
 230              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 231                <tr>
 232                  <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 233                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 234                </tr>
 235              </table></td>
 236              <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 237              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 238                <tr>
 239                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 240                  <td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
 241                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 242                </tr>
 243              </table></td>
 244              <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 245                <tr>
 246                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
 247                  <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
 248                </tr>
 249              </table></td>
 250            </tr>
 251            <tr>
 252              <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>
 253              <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
 254              <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
 255              <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
 256            </tr>
 257          </table></td>
 258        </tr>
 259      </table></form>


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