<div id="contentimage">
<div id="contentpattern"><img alt="" src="/images/sep.gif" /></div>
<div id="contenttext"> </div>
<div><img alt="" src="/images/contentimages/image_20_4_63.jpg" /></div>
</div>
<div id="menu">{{getcontent id=5}}</div>
<div id="content">
<div id="fullcontent">
<h1>Order History</h1>
<div>
<div id="smarty_plugin">{{getcontent id=87}}</div>
</div>
<br/>
{{getCollectionByCategory CollectionID=133 ColumnID=2 Value=$smarty.session.UserID var=Orders OrderColumn='3' OrderWay=1 aditionalFilter=' Collection_133_5 = "on" '}}
{{if $Orders|@count eq 0}}
	<p> </p>
	<p> </p>
	<p> </p>
	<p> </p>
	<center><h3>Your Order History is Empty</h3></center>
	<p> </p>
	<p> </p>
	<p> </p>
	<p> </p>
{{else}}

	<table cellspacing="0" bordercolordark="#5294b5" cellpadding="5" bordercolorlight="#000000" border="1">
	<tr valign="top">
		<td id="table_header1">Order Date</td>
		<td id="table_header2">Order Total</td>
		<td id="table_header1">Order Approved</td>
		<td id="table_header2">Order Shipped</td>
		<td id="table_header1">Details</td>
	</tr>
	{{foreach from=$Orders item=v key=k name=olist}}
	<tr valign="top">
		<td> {{$v.Collection_133_3|date_format:"%A, %B %e, %Y"}}</td>
		<td align="center">${{$v.Collection_133_23|string_format:"%.2f"}}</td>
		<td align="center">{{if $v.Collection_133_20 eq 'on'}}Yes{{else}}No{{/if}}</td>
		<td align="center">{{if $v.Collection_133_21 eq 'on'}}Yes{{else}}No{{/if}}</td>
		<td id="detailsbutton{{$v.Collection_133_ID}}"><a href="javascript: displayOrder('orderdiv{{$v.Collection_133_ID}}', {{$v.Collection_133_ID}})">Order Details</a></td>
	</tr>
	<tr>
		<td colspan="5"><div id="orderdiv{{$v.Collection_133_ID}}"><img src="/images/sep.gif"/></div></td>
	</tr>
	{{/foreach}}
	</table>
	
	

{{/if}}

</div>
</div>