<p class="info_box" style="font-size:11px;">Legends: <img src="images/icons/delete.png" title="Delete Order" align="absmiddle" /> Delete Order <img src="images/icons/disk.png" title="Save Order" align="absmiddle" /> Save Changes <img src="images/icons/vcard.png" title="View/Hide Order Details" align="absmiddle" /> Toogle Details<br />
</p>
{if $msg==""}{else}
<div id="msg_small"> {$msg}</div><br />
{/if}
<table width="700" border="0" cellpadding="5" bgcolor="#E6F2FF" id="irForm">
<tr class="section_header">
<td width="120" align="center"><strong>Order Number</strong></td>
<td align="center"><strong>Customer Name</strong></td>
<td align="center"><strong>Order Date</strong></td>
<td align="center"><strong>Payment Method</strong></td>
<td align="center"><strong>Order Status</strong></td>
<td align="center"><strong>Total Ammount</strong></td>
<td width="70" align="center"><strong>Actions</strong></td>
</tr>
{section name=all_order_list loop=$all_order_list}
<tr>
<td valign="top" bgcolor="#FFFFFF">{$all_order_list[all_order_list].order_number}</td>
<td valign="top" bgcolor="#FFFFFF">{$all_order_list[all_order_list].customer_name}</td>
<td valign="top" bgcolor="#FFFFFF">{$all_order_list[all_order_list].order_date}</td>
<td valign="top" bgcolor="#FFFFFF">{$all_order_list[all_order_list].payment_method}</td>
<td valign="top" bgcolor="#FFFFFF"><select name="order_status_{$all_order_list[all_order_list].order_number}" id="order_status_{$all_order_list[all_order_list].order_number}">
<option value="cancelled" {if $all_order_list[all_order_list].order_status=="cancelled"} selected="selected"{/if}>Cancelled</option>
<option value="pending" {if $all_order_list[all_order_list].order_status=="pending"} selected="selected"{/if}>Pending</option>
<option value="processing" {if $all_order_list[all_order_list].order_status=="processing"} selected="selected"{/if}>Processing</option>
<option value="sent" {if $all_order_list[all_order_list].order_status=="sent"} selected="selected"{/if}>Sent</option>
<option value="delivered" {if $all_order_list[all_order_list].order_status=="delivered"} selected="selected"{/if}>Delivered</option>
</select></td>
<td valign="top" bgcolor="#FFFFFF">${$all_order_list[all_order_list].order_subtotal+$all_order_list[all_order_list].order_shipping|string_format:"%.2f"}</td>
<td valign="top" bgcolor="#FFFFFF"><a href="javascript:deleteOrder('{$all_order_list[all_order_list].order_number}');"><img src="images/icons/delete.png" title="Delete?" /></a> <a href="javascript:updateOrder('{$all_order_list[all_order_list].order_number}');"><img src="images/icons/disk.png" title="Save?" alt="Save changes?" /></a> <a href="javascript:toogleDetail({$all_order_list[all_order_list].order_id});"><img src="images/icons/vcard.png" title="Toogle Order Details" alt="View/Hide Order Details" /></a>
</td>
</tr>
<tr>
<td colspan="7" id="order_{$all_order_list[all_order_list].order_id}" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>Order Number: {$all_order_list[all_order_list].order_number}</strong> Status: {$all_order_list[all_order_list].order_status} <br />
<strong>Customer Name: </strong>{$all_order_list[all_order_list].customer_name}<br />
<strong>Customer Email: </strong>{$all_order_list[all_order_list].customer_email}<br />
<p><strong>Order Instructions:</strong><br />
{$all_order_list[all_order_list].order_comments}</p>
<p><strong>Order Date: </strong>{$all_order_list[all_order_list].order_date}<br />
<strong>Payment Method Used: </strong>{$all_order_list[all_order_list].payment_method}</p>
<p><strong>Shipping Address</strong><br />
{$all_order_list[all_order_list].shipping_address}, {$all_order_list[all_order_list].city}, {$all_order_list[all_order_list].state}<br />
{$all_order_list[all_order_list].postcode}, {$all_order_list[all_order_list].country} <br />
</p></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E4E4E4">
<tr>
<td height="29" colspan="5" bgcolor="#F3F3F3"><strong>Order Items</strong></td>
</tr>
<tr>
<td><strong>Product Code</strong></td>
<td><strong>Name</strong></td>
<td><strong>Unit Price</strong></td>
<td><strong>Quantity Ordered</strong></td>
<td><strong>Sub Total</strong></td>
</tr>
{section name=all_order_item_list loop=$all_order_item_list}
{if $all_order_list[all_order_list].order_number==$all_order_item_list[all_order_item_list].order_number}
<tr>
<td bgcolor="#FFFFFF">{$all_order_item_list[all_order_item_list].product_code}</td>
<td bgcolor="#FFFFFF">{$all_order_item_list[all_order_item_list].product_name}</td>
<td bgcolor="#FFFFFF">${$all_order_item_list[all_order_item_list].product_price|string_format:"%.2f"}</td>
<td bgcolor="#FFFFFF">{$all_order_item_list[all_order_item_list].product_quantity}</td>
<td bgcolor="#FFFFFF">${$all_order_item_list[all_order_item_list].sub_total|string_format:"%.2f"}</td>
</tr>
{/if}
{/section}
<tr>
<td bgcolor="#FFFFFF" colspan="3"></td>
<td bgcolor="#FFFFFF"><strong>Total</strong></td>
<td bgcolor="#FFFFFF">${$all_order_list[all_order_list].order_subtotal}</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" colspan="3"></td>
<td bgcolor="#FFFFFF"><strong>Shipping</strong></td>
<td bgcolor="#FFFFFF">${$all_order_list[all_order_list].order_shipping}</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" colspan="3"></td>
<td bgcolor="#FFFFFF"><strong>Grand Total</strong></td>
<td bgcolor="#FFFFFF">${$all_order_list[all_order_list].order_shipping+$all_order_list[all_order_list].order_subtotal|string_format:"%.2f"}</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" colspan="5" align="right"><div style="clear:both; padding:10px;"></div><span class="text_btn"><a href="javascript:toogleDetail({$all_order_list[all_order_list].order_id});"><img src="images/icons/vcard.png" title="Toogle Order Details" alt="View/Hide Order Details" align="absmiddle" /> Hide Details</a></span><div style="clear:both; padding:10px;"></div></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
{/section}
</table>