http://www.tomatoshop.ir  Persian Tomatocart v1.1.8.6 / Khordad 1394
  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd;  Copyright (c) 2006 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
?>

<h1><?php 
echo $osC_Template->getPageTitle();
?>
</h1>

<?php 
if (osC_Order::numberOfEntries() > 0) {
    $Qhistory = osC_Order::getListing(MAX_DISPLAY_ORDER_HISTORY);
    while ($Qhistory->next()) {
        if (!osc_empty($Qhistory->value('delivery_name'))) {
            $order_type = $osC_Language->get('order_shipped_to');
            $order_name = $Qhistory->value('delivery_name');
        } else {
            $order_type = $osC_Language->get('order_billed_to');
            $order_name = $Qhistory->value('billing_name');
        }
        ?>

<div class="moduleBox">

  <h6><span style="float: left;"><?php 
        echo $osC_Language->get('order_status') . ' ' . osC_Order::getLastPublicStatus($Qhistory->value('orders_id'));