<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="ProductOffSale.aspx.cs" Inherits="SocoShop.Web.Admin.ProductOffSale" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Business" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script language="javascript" src="/Admin/js/calendar.js" type="text/javascript"></script>
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>下架商品</div>	
<ul class="search">
    <li>
        分类：<asp:DropDownList ID="ClassID" runat="server" /> 
        品牌：<asp:DropDownList ID="BrandID" runat="server" /> 
        关键字：<SkyCES:TextBox CssClass="input" ID="Key" runat="server" Width="100px" title="商品名称，名称拼音首字母或者商品编码"/>
		添加时间：从<SkyCES:TextBox CssClass="input" ID="StartAddDate" runat="server" RequiredFieldType="日期时间"  onfocus="cdr.show(this);"/> 到 <SkyCES:TextBox CssClass="input" ID="EndAddDate" runat="server" RequiredFieldType="日期时间"  onfocus="cdr.show(this);"/>
	    <asp:Button CssClass="button" ID="SearchButton" Text=" 搜 索 " runat="server"  OnClick="SearchButton_Click" />
    </li>
</ul>
<table class="listTable" cellpadding="0" cellpadding="0">
    <tr class="listTableHead">
	    <td style="width:5%">ID</td>
	    <td style="width:10%">图片</td>
	    <td style="width:30%; text-align:left;text-indent:8px;">商品</td>
	    <td style="width:10%">编码</td>
	    <td style="width:15%">分类</td>
	    <td style="width:10%">品牌</td>
	    <td style="width:10%">添加时间</td>
	    <td style="width:5%">管理</td>       
	    <td style="width:5%">选择</td>        
    </tr>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>	     
    	<tr class="listTableMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
		    <td style="width:5%"><%# Eval("ID") %></td>
		    <td style="width:10%;"><img src="<%#Eval("Photo").ToString().Replace("Original","60-60") %>"   onload="photoLoad(this,40,40)" /></td>
		    <td style="width:30%; text-align:left;text-indent:8px;"><%# Eval("Name") %></td>
		    <td style="width:10%"><%# Eval("ProductNumber") %></td>
		    <td style="width:15%"><%# ProductClassBLL.ProductClassNameList(Eval("ClassID").ToString()) %></td>
		    <td style="width:10%"><%# ProductBrandBLL.ReadProductBrandCache(Convert.ToInt32(Eval("BrandID"))).Name %></td>
		    <td style="width:10%"><%# Eval("AddDate") %></td>
		    <td style="width:5%;"><a href="javascript:pop('ProductAdd.aspx?ID=<%# Eval("ID") %>',800,600,'商品修改','ProductAdd')"><img src="Style/Images/edit.gif" alt="修改" title="修改" /></a></td>
		    <td style="width:5%"><input type="checkbox" name="SelectID" value="<%# Eval("ID") %>" /></td> 
        </tr>
    </ItemTemplate>
</asp:Repeater>
</table>
<div class="listPage"><SkyCES:CommonPager ID="MyPager" runat="server" /></div>
<div class="action">
        <asp:Button CssClass="button" ID="OnSaleButton" Text=" 上 架 " OnClientClick="return checkSelect()" runat="server"  OnClick="OnSaleButton_Click"/>&nbsp;
        <input type="checkbox" name="All" onclick="selectAll(this)" />全选/取消
</div>
</asp:Content>
