<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: tpl_block_previous_orders.php,v 1.1.1.1 2004/09/01 04:47:55 shidairiki Exp $
//
?>
  <tr class="moduleRow" onmouseOver="rowOverEffect(this)" onmouseOut="rowOutEffect(this)" onclick="document.location.href='<?php echo zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders->fields['orders_id'], 'SSL'); ?>'">
    <td class="main" valign="top">
      <?php echo zen_date_short($orders->fields['date_purchased']); ?>
    </td>
    <td class="main" valign="top">
      <?php echo TEXT_NUMBER_SYMBOL . $orders->fields['orders_id']; ?>
    </td>
    <td class="main" valign="top">
      <?php echo zen_output_string_protected($order_name) . ', ' . $order_country; ?>
    </td>
    <td class="main" valign="top">
      <?php echo $orders->fields['orders_status_name']; ?>
    </td>
    <td class="main" align="right" valign="top">
      <?php echo $orders->fields['order_total']; ?>
    </td>
    <td class="main" align="right" valign="top">
      <?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders->fields['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>'; ?>
    </td>
  </tr>