<%@ Control Language="c#" AutoEventWireup="True" Codebehind="Shopping.ascx.cs" Inherits="DreamerShop.UserControl.Shopping" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<br>
<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
	<TBODY>
		<tr>
			<td><asp:datagrid id="dgShopping" DataKeyField="ProductKey" CellPadding="3"  BackColor="#FFFFFF" BorderColor="#CCCCCC"
					ShowFooter="true" HorizontalAlign="Center" Width="100%" AutoGenerateColumns="False" runat="server" >
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
					<HeaderStyle HorizontalAlign="Center" BackColor="#f1f1f1" Font-Bold="true" Height="30"></HeaderStyle>
					<FooterStyle HorizontalAlign="Center"  Height="30"></FooterStyle>
					<Columns>
						<asp:BoundColumn HeaderText="OrderFormProductNumber" DataField="ProductNumber"></asp:BoundColumn>
						<asp:TemplateColumn HeaderText="OrderFormProductName" >
						
						<ItemTemplate>
						<table  border="0" cellspacing="0" cellpadding="0" align="left">
							<tr>
							  <td align="left" valign="middle"><%# DataBinder.Eval(Container.DataItem, "SmallPic")%></td>
							  <td align="left" valign="middle" width="5"></td>
							  <td align="left"><a href='<%# DataBinder.Eval(Container.DataItem, "ViewUrl")%>' target='_blank'><%# DataBinder.Eval(Container.DataItem, "ProductName1")%></a></td>
							</tr>
						  </table>
						</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn HeaderText="OrderFormPrice" DataField="strPrice"></asp:BoundColumn>
						<asp:TemplateColumn HeaderText="OrderFormAmount">
							<ItemTemplate>
								<asp:TextBox ID="txtAmount" CssClass="wenbenkuang" Width="30" EnableViewState=True Text='<%# DataBinder.Eval(Container.DataItem, "Amount")%>' AutoPostBack=False runat="server" >
								</asp:TextBox>
								<asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="输入数字" ControlToValidate="txtAmount"
									Operator="DataTypeCheck" Type="Integer" Display="Dynamic" ForeColor="#FF0000"></asp:CompareValidator>
								<asp:label ID="lbSpeciality" Runat="server" Visible="False" Text='<%# DataBinder.Eval(Container.DataItem, "Speciality")%>'>
								</asp:label>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn HeaderText="OrderFormTotalPrices" DataField="strSum"></asp:BoundColumn>
						<asp:ButtonColumn Text="&lt;img src=images/trash.gif border=0&gt;" HeaderText="TextDelete" CommandName="Delete"></asp:ButtonColumn>
					</Columns>
				</asp:datagrid></td>
		</tr>
		<tr>
			<td align="center" height="28"><asp:label id="lbShoppingMsg" runat="server" ForeColor="Red"></asp:label></td>
		</tr>
		<tr>
			<td align="center"><asp:imagebutton id="imgContinue" runat="server" CausesValidation="False" ImageUrl="../images/TP2/cart01.gif" Visible="false"  onclick="imgContinue_Click"></asp:imagebutton><asp:imagebutton id="imgEdit" runat="server" ImageUrl="../images/TP2/cart03.gif" Visible="false" onclick="imgEdit_Click"></asp:imagebutton><asp:imagebutton id="imgClear" runat="server" ImageUrl="../images/TP2/cart02.gif" Visible="false" onclick="imgClear_Click"></asp:imagebutton><asp:imagebutton id="imgBalance" runat="server" ImageUrl="../images/TP2/cart04.gif" Visible="false" onclick="imgBalance_Click"></asp:imagebutton>
			<asp:Button id="btContinue" runat="server" Text="continue" Visible="true" CssClass="go-wenbenkuang" onclick="btContinue_Click"></asp:Button>&nbsp;
				<asp:Button id="btEdit" runat="server" Text="edit" Visible="true" CssClass="go-wenbenkuang"  onclick="btEdit_Click"></asp:Button>&nbsp;
				<asp:Button id="btClear" runat="server" Text="clear" Visible="true" CssClass="go-wenbenkuang" onclick="btClear_Click"></asp:Button>&nbsp;
				<asp:Button id="btBalance" runat="server" Text="Balance" Visible="true" CssClass="go-wenbenkuang" onclick="btBalance_Click"></asp:Button>
			</td>
		</tr>
		<tr>
			<td></td>
		</tr>
		<tr >
			<td style="PADDING-LEFT: 20px" colSpan="6" height="60" class="font9" ><%=myLanguagesDeal.GetMyString("ShoppingCarRemark1")%><!--· 如果您想继续购物，请点选继续购物--><br>
				<%=myLanguagesDeal.GetMyString("ShoppingCarRemark2")%><!--· 如果您想更新已在购物车内的产品，请先修改，然后点选修改数量--><br>
				<%=myLanguagesDeal.GetMyString("ShoppingCarRemark3")%><!--· 如果您想全部取消已订购在购物车中的产品，请点选清空购物车--><br>
				<%=myLanguagesDeal.GetMyString("ShoppingCarRemark4")%><!--· 如果您满意您所购买的产品，请点选去收银台(会员须先登陆，非会员须先免费注册成为会员)--><br>
			</td>
		</tr>
		<tr>
			<td><asp:panel id="PanPreferential" runat="server"><BR>
      <DIV><FONT color="red"><%=myLanguagesDeal.GetMyString("ShoppingTitelPreferential")%><!--特惠商品--></FONT>
					</DIV>
<asp:Label id="lbPreferentialMsg" runat="server" ForeColor="Red"></asp:Label>
<asp:CheckBoxList id="cklPreferential" runat="server"></asp:CheckBoxList>
<asp:RadioButtonList id="rblPreferential" runat="server"></asp:RadioButtonList>
<asp:button id="btPreferentialJoin" runat="server" CssClass="go-wenbenkuang" Text="加入所选特惠商品" onclick="btPreferentialJoin_Click"></asp:button>&nbsp; 
<asp:button id="btPreferentialClear" runat="server" CssClass="go-wenbenkuang" Text="重选" onclick="btPreferentialClear_Click"></asp:button></asp:panel></td>
		</tr>
	</TBODY>
</table>
