<%@ Page Language="c#" CodeBehind="ShoppingCart.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Commerce.ShoppingCart" %>
<%@ Register TagPrefix="ASPNETCommerce" TagName="Menu" Src="_Menu.ascx" %>
<%@ Register TagPrefix="ASPNETCommerce" TagName="Header" Src="_Header.ascx" %>
<HTML>
	<HEAD>
		<link rel="stylesheet" type="text/css" href="ASPNETCommerce.css">
	</HEAD>
	<body background="images/sitebkgrd.gif" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"
		marginheight="0" marginwidth="0">
		<table cellspacing="0" cellpadding="0" width="100%" border="0">
			<tr>
				<td colspan="2">
					<ASPNETCommerce:Header ID="Header1" runat="server" />
				</td>
			</tr>
			<tr>
				<td valign="top">
					<ASPNETCommerce:Menu id="Menu1" runat="server" />
					<img height="1" src="images/1x1.gif" width="145">
				</td>
				<td align="left" valign="top" width="100%" nowrap>
					<table height="100%" align="left" cellspacing="0" cellpadding="0" width="100%" border="0">
						<tr valign="top">
							<td nowrap>
								<br>
								<form runat="server">
									<img align="left" width="24" src="images/1x1.gif">
									<table cellspacing="0" cellpadding="0" width="100%" border="0">
										<tr>
											<td class="ContentHead">
												<img align="left" height="32" width="60" src="images/1x1.gif">购物车
												<br>
											</td>
										</tr>
									</table>
									<img align="left" height="4" width="110" src="images/1x1.gif"> <font color="red">
										<asp:Label id="MyError" class="ErrorText" EnableViewState="false" runat="Server" />
									</font>
									<br>
									<img align="left" height="15" width="24" src="images/1x1.gif" border="0">
									<asp:panel id="DetailsPanel" runat="server">
										<IMG height="1" src="images/1x1.gif" width="50" align="left">
										<TABLE height="100%" cellSpacing="0" cellPadding="0" width="550" border="0">
											<TR vAlign="top">
												<TD width="550">
													<asp:DataGrid id="MyList" runat="server" AutoGenerateColumns="false" DataKeyField="Quantity" AlternatingItemStyle-CssClass="CartListItemAlt"
														ItemStyle-CssClass="CartListItem" FooterStyle-CssClass="CartListFooter" HeaderStyle-CssClass="CartListHead"
														ShowFooter="true" Font-Size="8pt" Font-Name="Verdana" cellspacing="0" cellpadding="4" GridLines="Vertical"
														BorderColor="black">
														<Columns>
															<asp:TemplateColumn HeaderText="商品号">
																<ItemTemplate>
																	<asp:Label id="ProductID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ProductID") %>' />
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:BoundColumn HeaderText="商品名称" DataField="ModelName" />
															<asp:BoundColumn HeaderText="型号" DataField="ModelNumber" />
															<asp:TemplateColumn HeaderText="数量">
																<ItemTemplate>
																	<asp:TextBox id="Quantity" runat="server" Columns="4" MaxLength="3" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity") %>' width="40px" />
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:BoundColumn HeaderText="单价" DataField="UnitCost" DataFormatString="{0:c}" />
															<asp:BoundColumn HeaderText="小记" DataField="ExtendedAmount" DataFormatString="{0:c}" />
															<asp:TemplateColumn HeaderText="移除">
																<ItemTemplate>
																	<center>
																		<asp:CheckBox id="Remove" runat="server" />
																	</center>
																</ItemTemplate>
															</asp:TemplateColumn>
														</Columns>
													</asp:DataGrid><IMG height="1" src="Images/1x1.gif" width="350">
													<SPAN class="NormalBold">总计：
                  </SPAN>
													<asp:Label class="NormalBold" id="lblTotal" runat="server" EnableViewState="false"></asp:Label><BR>
													<BR>
													<IMG height="1" src="Images/1x1.gif" width="60">
													<asp:imagebutton id="UpdateBtn" runat="server" ImageURL="images/update_cart.gif"></asp:imagebutton><IMG height="1" src="Images/1x1.gif" width="15">
													<asp:imagebutton id="CheckoutBtn" runat="server" ImageURL="images/final_checkout.gif"></asp:imagebutton><BR>
												</TD>
											</TR>
										</TABLE>
									</asp:panel>
								</form>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</HTML>
