<%@ Control Language="c#" AutoEventWireup="True" Codebehind="Collection.ascx.cs" Inherits="DreamerShop.Collection1" 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>
<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function selall()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("ckSelAll");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("ckSelItem");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		//-->
</SCRIPT>
<FONT face="宋体">
	<asp:Panel id="PanColletion" runat="server">
		<asp:datagrid id="dgList" runat="server" DataKeyField="CollectionID" BackColor="#FFFFFF" BorderColor="#CCCCCC"
			PageSize="20" AllowPaging="false" AutoGenerateColumns="False" HorizontalAlign="Center" Width="100%">
			<HeaderStyle HorizontalAlign="Center" BackColor="#f1f1f1" Font-Bold="true" Height="25"></HeaderStyle>
			<Columns>
				<asp:TemplateColumn>
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
					<HeaderTemplate>
						<asp:CheckBox id="ckSelAll" runat="server" onClick="selall()"></asp:CheckBox>
					</HeaderTemplate>
					<ItemTemplate>
						<asp:CheckBox id="ckSelItem" runat="server"></asp:CheckBox>
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:BoundColumn DataField="ProductName" HeaderText="OrderFormProductName">
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
				</asp:BoundColumn>
				<asp:BoundColumn DataField="MarketPrice" HeaderText="TextMarketPrice1">
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
				</asp:BoundColumn>
				<asp:BoundColumn DataField="Price" HeaderText="TextMemberPrice1">
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
				</asp:BoundColumn>
				<asp:BoundColumn DataField="VipPrice" HeaderText="TextVIPPrice1">
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
				</asp:BoundColumn>
				<asp:ButtonColumn Text="&lt;img src=images/trash.gif border=0&gt;" HeaderText="TextDelete" CommandName="Delete">
					<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
				</asp:ButtonColumn>
			</Columns>
			<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
		</asp:datagrid>
		<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
			<TR align="center">
				<TD>
					<asp:button id="btJoinShopping" runat="server" CssClass="go-wenbenkuang" Text=" 加入购物车 " onclick="btJoinShopping_Click"></asp:button>&nbsp;&nbsp;&nbsp;
					<asp:button id="btDelCollection" runat="server" CssClass="go-wenbenkuang" Text="  删除所选  "></asp:button></TD>
			</TR>
		</TABLE>
	</asp:Panel>
</FONT>
<asp:Label id="lbItembgColor" runat="server" Visible="false">#EFF3F7</asp:Label>
