#*
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*#
#parse ("view/velocity/IncludeTop.vm")

<table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2">
<tr><td bgcolor="#FFFF88">
<a href="index.do"><b><font color="BLACK" size="2">&lt;&lt; Main Menu</font></b></a>
</td></tr>
<!--<tr><td bgcolor="#FFFF88">
<a href="viewOrder.do?webservice=true&amp;orderId=$order.orderId">
 <font color="BLACK" size="2"><B>
   View with Web Service
 </B></font>
</a>
</td></tr>-->


</table>
#if ($message)
  <center><b>$message</b></center>
#end


<table width="60%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFF88">
<tr bgcolor="#FFFF88"><td align="center" colspan="2">
  <font size="4"><b>Order #$archivedOrder.orderId</b></font>
  <br /><font size="3"><b>$fmt.formatDate($archivedOrder.orderDate, 'yyyy/MM/dd hh:mm:ss')</b></font>
</td></tr>
<tr bgcolor="#FFFF88"><td colspan="2">
<font color="GREEN" size="4"><b>Payment Details</b></font>
</td></tr>
<tr bgcolor="#FFFF88"><td>
Card Type:</td><td>
$archivedOrder.cardType
</td></tr>
<tr bgcolor="#FFFF88"><td>
Card Number:</td><td>$archivedOrder.creditCard<font color="red" size="2">* Fake number!</font>
</td></tr>
<tr bgcolor="#FFFF88"><td>
Expiry Date (MM/YYYY):</td><td>$archivedOrder.exprdate
</td></tr>
<tr bgcolor="#FFFF88"><td colspan="2">
<font color="GREEN" size="4"><b>Billing Address</b></font>
</td></tr>
<tr bgcolor="#FFFF88"><td>
First name:</td><td>$archivedOrder.billToFirstName
</td></tr>
<tr bgcolor="#FFFF88"><td>
Last name:</td><td>$archivedOrder.billToLastName
</td></tr>
<tr bgcolor="#FFFF88"><td>
Address 1:</td><td>$archivedOrder.billaddr1
</td></tr>
<tr bgcolor="#FFFF88"><td>
Address 2:</td><td>$archivedOrder.billaddr2
</td></tr>
<tr bgcolor="#FFFF88"><td>
City: </td><td>$archivedOrder.billCity
</td></tr>
<tr bgcolor="#FFFF88"><td>
State:</td><td>$archivedOrder.billState
</td></tr>
<tr bgcolor="#FFFF88"><td>
Zip:</td><td>$archivedOrder.billZip
</td></tr>
<tr bgcolor="#FFFF88"><td>
Country: </td><td>$archivedOrder.billCountry
</td></tr>
<tr bgcolor="#FFFF88"><td colspan="2">
<font color="GREEN" size="4"><b>Shipping Address</b></font>
</td></tr><tr bgcolor="#FFFF88"><td>
First name:</td><td>$archivedOrder.shipToFirstName
</td></tr>
<tr bgcolor="#FFFF88"><td>
Last name:</td><td>$archivedOrder.shipToLastName
</td></tr>
<tr bgcolor="#FFFF88"><td>
Address 1:</td><td>$archivedOrder.shipaddr1
</td></tr>
<tr bgcolor="#FFFF88"><td>
Address 2:</td><td>$archivedOrder.shipaddr2
</td></tr>
<tr bgcolor="#FFFF88"><td>
City: </td><td>$archivedOrder.shipCity
</td></tr>
<tr bgcolor="#FFFF88"><td>
State:</td><td>$archivedOrder.shipState
</td></tr>
<tr bgcolor="#FFFF88"><td>
Zip:</td><td>$archivedOrder.shipZip
</td></tr>
<tr bgcolor="#FFFF88"><td>
Country: </td><td>$archivedOrder.shipCountry
</td></tr>
<tr bgcolor="#FFFF88"><td>
Courier: </td><td>$archivedOrder.courier
</td></tr>
<tr bgcolor="#FFFF88"><td colspan="2">
  <b><font color="GREEN" size="4">Status:</font> $archivedOrder.status</b>
</td></tr>
<tr bgcolor="#FFFF88"><td colspan="2">
<table width="100%" align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="3">
  <tr bgcolor="#CCCCCC">
  <td><b>Pos.</b></td>
  <td><b>Item ID</b></td>
  <td><b>Quantity</b></td>
  <td><b>List Price</b></td>
  <td><b>Total Cost</b></td>
  </tr>
#foreach ($lineItem in $lineItemList)

  <tr bgcolor="#FFFF88">
  <td>$lineItem.linenum.intValue().</td>
  <td><b><a href="viewItem.do?itemId=$cartItem.item.itemId"><font color="BLACK">$lineItem.itemId</font></a></b></td>
  <td>$lineItem.quantity.intValue()</td>
  <td align="right">$fmt.formatNumber($lineItem.unitprice, '$#,##0.00')</td>
  <td align="right">$fmt.formatNumber($lineItem.total, '$#,##0.00')</td>
  </tr>
#end
  <tr bgcolor="#FFFF88">
  <td colspan="5" align="right"><b>Total: $fmt.formatNumber($archivedOrder.totalPrice, '$#,##0.00')</b></td>
  </tr>
</table>
</td></tr>



</table>

#parse ("view/velocity/IncludeBottom.vm")


