<script language="javascript"> 
function check_func()
	{
		return confirm("Your order is waiting for payment. If you have paid it, Please don't delete, We will process it asap. Do you confirm to delete?");
	}
</script>
<div style="margin:20px 0 20px;">
		<div class="membership clearfix">
            <div class="member_info">
                <div class="welcome"><span>Hello! </span><strong><?php echo $customer_info['email'];?></strong>(beststoreitems Points: <?php echo $customer_info['current_points'];?>)</div>
            </div>
        </div>
    	<div class="user_title2 clearfix">
        	<dl class="acctip">
            	<dt>Awaiting Payment</dt>
                <dd>(The final order status will be updated in 24 hrs, if it is still unpaid after you paid)</dd>
            </dl>
            <p class="icon_pic"></p>
    	</div>
        <table class="hisorder" width="100%">
        	<tbody>
        		<tr>
                	<th>Date Added</th>
                	<th>Order Reference</th>
                	<th>Order Status</th>    
                	<th>Grand Total</th>                    
                </tr>
              
                <?php foreach($potential_orders as $order){ ?>
                <tr>
                   <td><?php echo $order['date_added'];?></td>
                	<td><a href="<?php echo $order['href']; ?>" class="blue"><?php echo $order['reference']; ?></a></td>     
                    <td><?php echo $order['status']; ?></td>   
                    <td style="color:red;"><?php echo $order['total']; ?></td>                                  
                </tr>
                <?php } ?> 
                
            </tbody>
        </table>
	
		<div class="chear10"></div><div class="chear10"></div>
    	<div class="user_title2 clearfix">
        	<dl class="acctip">
            	<dt>Processing Orders  </dt>
                <dd>(If the order you paid don't exist here, don't worry, we will fix it in next 24 hours)</dd>
            </dl>
            <p class="icon_pic"></p>
    	</div>
        <table class="hisorder" width="100%">
        	<tbody>
            	<tr>
                	<th>Date Added</th>
                	<th>Order Reference</th>
                	<th>Order Status</th>    
                	<th>Grand Total</th>                
                </tr>
              
                <?php foreach($processing_orders as $order){ ?>
                <tr>
                	<td><?php echo $order['date_added'];?></td>
                	<td><a href="<?php echo $order['href']; ?>" class="blue"><?php echo $order['reference']; ?></a></td>
                    <td><?php echo $order['status']; ?></td>     
                    <td style="color:red;"><?php echo $order['total']; ?></td>                                  
                </tr>
                <?php } ?> 
              
            </tbody>
        </table>
		
		<div class="chear10"></div><div class="chear10"></div>
    	<div class="user_title2 clearfix">
        	<dl class="acctip">
            	<dt>Shipped Orders   </dt>               
            </dl>
            <p class="icon_pic"></p>
    	</div>
        <table class="hisorder" width="100%">
        	<tbody>
            	<tr>
                	<th>Date Added</th>
                	<th>Order Reference</th>
                	<th>Order Status</th>    
                	<th>Grand Total</th>                  
                </tr>
               
                <?php foreach($shipped_orders as $order){ ?>
                <tr>
                	<td><?php echo $order['date_added'];?></td>
                	<td><a href="<?php echo $order['href']; ?>" class="blue"><?php echo $order['reference']; ?></a></td>    
                	<td><?php echo $order['status']; ?></td>                    
                    <td style="color:red;"><?php echo $order['total']; ?></td>                                  
                </tr>
                <?php } ?> 
              
            </tbody>
        </table>
		<div class="chear10"></div>
		<div class="user_title2 clearfix">
        	<dl class="acctip">
            	<dt>Caneceled Orders   </dt>               
            </dl>
            <p class="icon_pic"></p>
    	</div>
        <table class="hisorder" width="100%">
        	<tbody>
            	<tr>
            	<th>Date Added</th>
                	<th>Order Reference</th>
                	<th>Order Status</th>    
                	<th>Grand Total</th>     
                </tr>
          
                <?php foreach($canceled_orders as $order){ ?>
                <tr>
                 	<td><?php echo $order['date_added'];?></td>
                	<td><a href="<?php echo $order['href']; ?>" class="blue"><?php echo $order['reference']; ?></a></td>     
                	<td><?php echo $order['status']; ?></td>                 
                    <td style="color:red;"><?php echo $order['total']; ?></td>                                    
                </tr>
                <?php } ?>               
            </tbody>
        </table>
</div>