[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

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

   1      <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_history.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" colspan="2"><b><?php echo sprintf(HEADING_ORDER_NUMBER, $HTTP_GET_VARS['order_id']) . ' <small>(' . $order->info['orders_status'] . ')</small>'; ?></b></td>
  17            </tr>
  18            <tr>
  19              <td class="smallText"><?php echo HEADING_ORDER_DATE . ' ' . tep_date_long($order->info['date_purchased']); ?></td>
  20              <td class="smallText" align="right"><?php echo HEADING_ORDER_TOTAL . ' ' . $order->info['total']; ?></td>
  21            </tr>
  22          </table></td>
  23        </tr>
  24        <tr>
  25          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  26            <tr class="infoBoxContents">
  27  <?php
  28    if ($order->delivery != false) {
  29  ?>
  30              <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  31                <tr>
  32                  <td class="main"><b><?php echo HEADING_DELIVERY_ADDRESS; ?></b></td>
  33                </tr>
  34                <tr>
  35                  <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td>
  36                </tr>
  37  <?php
  38      if (tep_not_null($order->info['shipping_method'])) {
  39  ?>
  40                <tr>
  41                  <td class="main"><b><?php echo HEADING_SHIPPING_METHOD; ?></b></td>
  42                </tr>
  43                <tr>
  44                  <td class="main"><?php echo $order->info['shipping_method']; ?></td>
  45                </tr>
  46  <?php
  47      }
  48  ?>
  49              </table></td>
  50  <?php
  51    }
  52  ?>
  53              <td width="<?php echo (($order->delivery != false) ? '70%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  54                <tr>
  55                  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  56  <?php
  57    if (sizeof($order->info['tax_groups']) > 1) {
  58  ?>
  59                    <tr>
  60                      <td class="main" colspan="2"><b><?php echo HEADING_PRODUCTS; ?></b></td>
  61                      <td class="smallText" align="right"><b><?php echo HEADING_TAX; ?></b></td>
  62                      <td class="smallText" align="right"><b><?php echo HEADING_TOTAL; ?></b></td>
  63                    </tr>
  64  <?php
  65    } else {
  66  ?>
  67                    <tr>
  68                      <td class="main" colspan="3"><b><?php echo HEADING_PRODUCTS; ?></b></td>
  69                    </tr>
  70  <?php
  71    }
  72  
  73    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
  74      echo '          <tr>' . "\n" .
  75           '            <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
  76           '            <td class="main" valign="top">' . $order->products[$i]['name'];
  77  
  78      if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
  79        for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
  80          echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
  81        }
  82      }
  83  
  84      echo '</td>' . "\n";
  85  
  86      if (sizeof($order->info['tax_groups']) > 1) {
  87        echo '            <td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
  88      }
  89  
  90      echo '            <td class="main" align="right" valign="top">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" .
  91           '          </tr>' . "\n";
  92    }
  93  ?>
  94                  </table></td>
  95                </tr>
  96              </table></td>
  97            </tr>
  98          </table></td>
  99        </tr>
 100        <tr>
 101          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 102        </tr>
 103        <tr>
 104          <td class="main"><b><?php echo HEADING_BILLING_INFORMATION; ?></b></td>
 105        </tr>
 106        <tr>
 107          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 108        </tr>
 109        <tr>
 110          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 111            <tr class="infoBoxContents">
 112              <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 113                <tr>
 114                  <td class="main"><b><?php echo HEADING_BILLING_ADDRESS; ?></b></td>
 115                </tr>
 116                <tr>
 117                  <td class="main"><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'); ?></td>
 118                </tr>
 119                <tr>
 120                  <td class="main"><b><?php echo HEADING_PAYMENT_METHOD; ?></b></td>
 121                </tr>
 122                <tr>
 123                  <td class="main"><?php echo $order->info['payment_method']; ?></td>
 124                </tr>
 125              </table></td>
 126              <td width="70%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 127  <?php
 128    for ($i=0, $n=sizeof($order->totals); $i<$n; $i++) {
 129      echo '              <tr>' . "\n" .
 130           '                <td class="main" align="right" width="100%">' . $order->totals[$i]['title'] . '</td>' . "\n" .
 131           '                <td class="main" align="right">' . $order->totals[$i]['text'] . '</td>' . "\n" .
 132           '              </tr>' . "\n";
 133    }
 134  ?>
 135              </table></td>
 136            </tr>
 137          </table></td>
 138        </tr>
 139        <tr>
 140          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 141        </tr>
 142        <tr>
 143          <td class="main"><b><?php echo HEADING_ORDER_HISTORY; ?></b></td>
 144        </tr>
 145        <tr>
 146          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 147        </tr>
 148        <tr>
 149          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 150            <tr class="infoBoxContents">
 151              <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
 152  <?php
 153    $statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' and os.public_flag = '1' order by osh.date_added");
 154    while ($statuses = tep_db_fetch_array($statuses_query)) {
 155      echo '              <tr>' . "\n" .
 156           '                <td class="main" valign="top" width="70">' . tep_date_short($statuses['date_added']) . '</td>' . "\n" .
 157           '                <td class="main" valign="top" width="70">' . $statuses['orders_status_name'] . '</td>' . "\n" .
 158           '                <td class="main" valign="top">' . (empty($statuses['comments']) ? '&nbsp;' : nl2br(tep_output_string_protected($statuses['comments']))) . '</td>' . "\n" .
 159           '              </tr>' . "\n";
 160    }
 161  ?>
 162              </table></td>
 163            </tr>
 164          </table></td>
 165        </tr>
 166  <?php
 167    if (DOWNLOAD_ENABLED == 'true') include (DIR_WS_MODULES . 'downloads.php');
 168  ?>
 169        <tr>
 170          <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 171        </tr>
 172        <tr>
 173          <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
 174            <tr class="infoBoxContents">
 175              <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
 176                <tr>
 177                  <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
 178                  <td><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
 179  <?php                      
 180  // fedex tracking
 181      $order_id = $HTTP_GET_VARS['order_id'];
 182      $trackLink = tep_track_fedex($order_id);
 183  ?>                                
 184                                  <td class="main" align="right">
 185  <?php
 186      if ($trackLink) {
 187          echo '<a href="' . $trackLink . '"><b>track this shipment</b></a>';
 188          }
 189      else {
 190          echo tep_draw_separator('pixel_trans.gif', '10', '1');
 191          }
 192  ?>
 193                                  </td>
 194                </tr>
 195              </table></td>
 196            </tr>
 197          </table></td>
 198        </tr>
 199      </table>


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