[%# $Id$ %]
[% USE horder  = Handel.Order %]
<body>
    [% IF (orders = horder.search) %]
    	[% WHILE (order = orders.next) %]
			<order>
				<count>[% order.count %]</count>
				<id>[% order.id %]</id>
				<shopper>[% order.shopper %]</shopper>
				<type>[% order.type %]</type>
				<billtofirstname>[% order.billtofirstname %]</billtofirstname>
				<billtolastname>[% order.billtolastname %]</billtolastname>
				<billtoaddress1>[% order.billtoaddress1 %]</billtoaddress1>
				<billtoaddress2>[% order.billtoaddress2 %]</billtoaddress2>
				<billtoaddress3>[% order.billtoaddress3 %]</billtoaddress3>
				<billtocity>[% order.billtocity %]</billtocity>
				<billtostate>[% order.billtostate %]</billtostate>
				<billtozip>[% order.billtozip %]</billtozip>
				<billtocountry>[% order.billtocountry %]</billtocountry>
				<billtodayphone>[% order.billtodayphone %]</billtodayphone>
				<billtonightphone>[% order.billtonightphone %]</billtonightphone>
				<billtofax>[% order.billtofax %]</billtofax>
				<billtoemail>[% order.billtoemail %]</billtoemail>
				<comments>[% order.comments %]</comments>
				<created>[% order.created %]</created>
				<handling>[% order.handling.value %]</handling>
				<number>[% order.number %]</number>
				<shipmethod>[% order.shipmethod %]</shipmethod>
				<shipping>[% order.shipping.value %]</shipping>
				<shiptosameasbillto>[% order.shiptosameasbillto %]</shiptosameasbillto>
				<shiptofirstname>[% order.shiptofirstname %]</shiptofirstname>
				<shiptolastname>[% order.shiptolastname %]</shiptolastname>
				<shiptoaddress1>[% order.shiptoaddress1 %]</shiptoaddress1>
				<shiptoaddress2>[% order.shiptoaddress2 %]</shiptoaddress2>
				<shiptoaddress3>[% order.shiptoaddress3 %]</shiptoaddress3>
				<shiptocity>[% order.shiptocity %]</shiptocity>
				<shiptostate>[% order.shiptostate %]</shiptostate>
				<shiptozip>[% order.shiptozip %]</shiptozip>
				<shiptocountry>[% order.shiptocountry %]</shiptocountry>
				<shiptodayphone>[% order.shiptodayphone %]</shiptodayphone>
				<shiptonightphone>[% order.shiptonightphone %]</shiptonightphone>
				<shiptofax>[% order.shiptofax %]</shiptofax>
				<shiptoemail>[% order.shiptoemail %]</shiptoemail>
				<subtotal>[% order.subtotal.value %]</subtotal>
				<total>[% order.total.value %]</total>
				<tax>[% order.tax.value %]</tax>
				<updated>[% order.updated %]</updated>
			</order>
		[% END %]
	[% ELSE %]
		<message>Error loading orders</message>
    [% END %]
</body>