<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="web.Supply.ProductList" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Product</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
   <style type="text/css">
    .head {background-image: url(img/labelbg.gif);background-repeat: repeat-x;}
    </style>

			<script language="javascript" src="../inc/overlib.js"></script>
		<script language="javascript">
			function Button1_onclick() {history.go(-1);
}

</script>
 <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
	</HEAD>
	<body rightmargin="0" leftmargin="0" topmargin="0" >
	
		<form id="Form1" method="post" runat="server" >
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" height="35" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		<td class="tl"></td>
		      <td class="tm"><span class="tt">&nbsp;&nbsp;店铺管理 &gt;&gt; 优惠信息管理<font color="FF0000"> 
                </font></span></td>
		<td class="tm2"><span class="tt"></span></td>
	
	</tr>
</table>
</div>
        <br />
         
        <div class="mframe">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   
    <td  class="mm" align="left" valign="top" style="width:100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  valign="top" style="width:100%" align="center">
    <table width="99%" align="center" cellpadding="0"  cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF" style="border:1px #CCCCCC solid;">
                        <tr height="35"> 
                          <td>&nbsp;&nbsp; 搜索：关键字: 
                            <asp:TextBox id="txtKeyword" CssClass="input" runat="server" Width="46px"></asp:TextBox>
                            分类: <asp:DropDownList id="ddlCategory" runat="server"></asp:DropDownList> 
                            <asp:Button id="btnSearch" runat="server" CssClass="btn" Text="开始搜索"></asp:Button> 
                            &nbsp;</td>
                        </tr>
                      </table>
<table width="99%"  cellspacing="0" cellpadding="0" align="center">
                        <tr> 
                          <td class="mm1" style="width:98%"> <table  cellSpacing="0" cellPadding="0" width="99%" align="center" border="0">
                            
                              <tr height="35"> 
                                <td colspan="4"><br /> &nbsp;
                                    <asp:Button ID="Button9" runat="server" OnClick="Button9_Click" Text="删除优惠信息" />
                                    <asp:Button ID="Button2" runat="server" CssClass="btn1"  Text="修改截止日期" OnClick="Button2_Click" />
                                    <asp:Button ID="btncreate" runat="server" CssClass="btn1" Text="批量生成HTML" OnClick="btncreate_Click" />
                                  <input name="button" type="button" id="Button1" onClick="return Button1_onclick()" value="返回" language="javascript" /><br /> <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr> 
                                      <td style="height: 5px"> </td>
                                    </tr>
                                  </table>
                                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr> 
                                      <td style="height: 5px"> </td>
                                    </tr>
                                  </table></td>
                              </tr>
                              <tr> 
                                <td height="23" class="forumRowHighlight" colspan=4> 
                                  <asp:datagrid id="dgProductList" runat="server" AllowPaging="True" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="ProductID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title" BorderColor="#CCCCCC" BorderWidth="1px"> 
                                    <HeaderStyle Font-Bold="False" BackColor="#EDF6FF" CssClass="head" Height="35px"></HeaderStyle>
                                    <Columns>
                                    <asp:TemplateColumn>
                                      <HeaderTemplate> 
                                        <asp:CheckBox id="chkAll" runat="server" AutoPostBack="True" OnCheckedChanged="chkAll_CheckedChanged"></asp:CheckBox>
                                      </HeaderTemplate>
                                      <ItemTemplate> 
                                        <asp:CheckBox id="chkItem" runat="server"></asp:CheckBox>
                                      </ItemTemplate>
                                      <HeaderStyle Width="20px" /> 
                                      <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" HorizontalAlign="Center" /> 
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="优惠信息名称">
                                      <HeaderStyle HorizontalAlign="Left" Width="180px"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                      <ItemTemplate> 
                                      <a href="/info/showinfo_<%# DataBinder.Eval(Container.DataItem, "ProductID") %>.html" target="_blank">  <%# DataBinder.Eval(Container.DataItem, "Name") %></a>
                                   </ItemTemplate>
                                    </asp:TemplateColumn>
                      
                             
                                         <asp:TemplateColumn HeaderText="截止日期">
                                      <HeaderStyle HorizontalAlign="Center" Width="100px"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
                                      <ItemTemplate> 
                                        
                                           <asp:TextBox ID="txtrq" Runat=server Text=<%# DataBinder.Eval(Container.DataItem, "ShortDesc")%> Width="90" onClick="WdatePicker()"></asp:TextBox>
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                               
                                   
                                    <asp:TemplateColumn HeaderText="缩图">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                                      <ItemTemplate> <a href="#" onMouseOver="return overlib('<IMG SRC=../Upload/<%# DataBinder.Eval(Container.DataItem, "ThumbnailImg") %> >', CAPTION, '<%# DataBinder.Eval(Container.DataItem, "Name") %>',FGCOLOR, '#fcfcfc', BGCOLOR, '#0080C0', CAPCOLOR, '#ffffff', BORDER, 2, CLOSETEXT, 'Close');" onMouseOut="nd();"><IMG SRC="images/icon-viewpic.gif" border="0"></a> 
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                                  
                                    <asp:TemplateColumn HeaderText="发布">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                      <ItemTemplate> <a href='?Action=fb&pid=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&IsForSale=<%# DataBinder.Eval(Container.DataItem, "IsForSale") %>'> 
                                        <img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "IsForSale") %>.png' border="0"></a> 
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                              
                                    <asp:TemplateColumn  HeaderText="修改">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                      <ItemTemplate> <a href='ProductAdd.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&<%=Request.QueryString.ToString()%>'> 
                                        修改</a> </ItemTemplate>
                                    </asp:TemplateColumn>
                              
                                      <asp:ButtonColumn HeaderText="删除"  Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
									CommandName="del"> 
                                      <ItemStyle HorizontalAlign="Center" Width="30px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" VerticalAlign="Middle"></ItemStyle>
                                    </asp:ButtonColumn>
                                   
                             
                             
                                    </Columns>
                                    <PagerStyle Mode="NumericPages" BackColor="White" Height="26px"></PagerStyle>
                                    <ItemStyle BackColor="White" Height="30px" HorizontalAlign="Center" /> 
                                  </asp:datagrid> <TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" id="tablePage">
                                    <TR height="35"> 
                                      <TD vAlign="middle" style="height: 35px"> 
                                        <asp:label id="lblPager" Runat="server"></asp:label></TD>
                                      <TD vAlign="middle" align="right" style="height: 35px"><INPUT id="controlID" type="hidden" name="controlID" runat="server">
                                          &nbsp; &nbsp;
                                      </TD>
                                    </TR>
                                  </TABLE></td>
                              </tr>
                            </table>
                            <div id="overDiv" style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></div>
                            </td>
                        </tr>
                      </table>
</td>
  </tr>
</table>


              </td>

  </tr>
</table>
        </div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
