<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     default_iphone
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
    <div class="page-head">
            <h3><?php echo $this->__('Order #%s (%s)', $order->getOrderId(), $order->getStatus()) ?></h3>
        </div>

    <div class="col2-set">
            <div class="col-1">
                <h4><?php echo $this->__('Billing Information') ?></h4>
                <address>
                        <?php echo $order->getAddressByType('billing')->toString('{{firstname}} {{lastname}}<br/>{{street}}<br/>{{city}}, {{regionName}} {{postcode}}<br/>T: 
                        {{telephone}}') ?>
                </address>
            </div>
            <div class="col-2">
                <h4><?php echo $this->__('Payment Method') ?></h4>
        <?php echo $this->getChildHtml('payment') ?>
            </div>
        </div>
    <p></p>
        <div class="col2-set">
            <div class="col-1">
                <h4><?php echo $this->__('Shipping Information') ?></h4>
                <address>
                        <?php echo $order->getAddressByType('shipping')->toString('{{firstname}} {{lastname}}<br/>{{street}}<br/>{{city}}, {{regionName}} {{postcode}}<br/>T: 
                        {{telephone}}') ?>
                </address></div>
            <div class="col-2">
                <h4><?php echo $this->__('Shipping Method') ?></h4>
                <?php echo $order->getShippingDescription() ?>
            </div>
        </div>
    <p></p>
    <?php $_items = $order->getEntitiesByType('item') ?>
    <table cellspacing="0" width="100%" class="data-table" id="my-orders-table">
        <thead>
            <tr>
                <th><?php echo $this->__('Items Order') ?></th>
                <th class="a-center"><?php echo $this->__('Qty') ?></th>
                <th class="a-right"><?php echo $this->__('Price') ?></th>
                <th class="a-right"><?php echo $this->__('Ext. Price') ?></th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td class="a-right" colspan="4">
                    <?php echo $this->__('Grand Total: %s', $order->getGrandTotal()) ?>
                </td>
            </tr>
        </tfoot>
        <tbody>
            <?php foreach($_items as $_item): ?>
            <tr>
                <td><?php echo $this->htmlEscape($_item->getName()) ?></td>
                <td class="a-center"><?php echo $_item->getQty() ?></td>
                <td class="a-right"><?php echo $_item->getPrice() ?></td>
                <td class="a-right"><?php echo $_item->getRowTotal() ?></td>
            </tr>   
            <?php endforeach ?> 
        </tbody>
    </table>
    <script type="text/javascript">decorateTable('my-orders-table')</script>
    <div class="button-set">
        <a href="<?php echo $this->getUrl('customer/order/history') ?>" class="left">&laquo; <?php echo $this->__('Back') ?></a>
    </div>
