<?php if (!defined('IN_CONTEXT')) die('access violation error!'); ?>


<div class="art_list">
	<div class="art_list_title"><?php _e('My Orders'); ?></div>
	<span id="neworder_stat" class="status" style="display:none;"></span>
	<b><div class="order_1"><?php _e('Order No.'); ?></div><div class="order_2"><?php _e('Total Price'); ?></div><div class="order_3"><?php _e('Order Time'); ?></div><div class="order_4"><?php _e('Status'); ?></div><div class="order_5"></div></b>
	<div class="o_b1"></div>
	
	
        <?php
        if (sizeof($my_orders) > 0) {
            $row_idx = 0;
            foreach ($my_orders as $my_order) {
        ?>
	<div class="order_1"><a href="index.php?<?php echo Html::xuriquery('mod_order', 'uservieworder', array('o_id' => $my_order->id)); ?>" title="<?php echo $my_order->oid; ?>"><?php echo $my_order->oid; ?></a></div><div class="order_2">￥<?php echo number_format($my_order->total_amount, 2); ?></div><div class="order_3"><?php echo date("Y-m-d H:i", $my_order->order_time); ?></div><div class="order_4"><?php echo Toolkit::switchText($my_order->order_status, 
                        array('1' => __('Not Paid'), '2' => __('Paid'), '3' => __('In Delivery'), '100' => __('Finished'), '101' => 'Cancelled')); ?></div><div class="order_5"><input type="button" class="submit_order ddcx" value="<?php _e('View'); ?>" onclick="location.href='index.php?<?php echo Html::xuriquery('mod_order', 'uservieworder', array('o_id' => $my_order->id)); ?>'" /></div>
	<div class="o_b"></div>

        <?php
                $row_idx = 1 - $row_idx;
            }
        } else {
        ?>
		<?php _e('No Records!'); ?>
		
        <?php } ?>
</div>


