<%@ Page Language="C#" AutoEventWireup="True" Inherits="Admin_Channel_Default" CodeBehind="Admin_Channel_Default.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="Memu/InfovrsionControl.ascx" TagName="InfovrsionControl" TagPrefix="uc2" %>
<%@ Register Src="Admin_Channel_Menu.ascx" TagName="MemuControl" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
  <title>信息管理</title>
  <link href="Css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
  <div>
    <uc1:MemuControl ID="MemuControl1" runat="server" ClassUrl="Admin_Channel_Class.aspx"
      TableInfoURl="Admin_Channel_Showinfo.aspx" TableURl="Admin_Channel_Default.aspx" />
    <table border="0" cellpadding="0" cellspacing="2" class="Table" style="width: 98%">
      <tr>
        <td align="center" class="td" style="height: 25px">
          <asp:TextBox ID="txtKeywords" runat="server"></asp:TextBox>
          &nbsp;
          <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="  搜　索　" />
        </td>
      </tr>

      <tr>
        <td class="td" style="height: 25px">
          <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" Width="100%"
            HorizontalAlign="Center" DataKeyNames="ID" 
                onrowdatabound="myGridView_RowDataBound">
            <HeaderStyle Font-Bold="True" Wrap="False" ForeColor="White" CssClass="title" BackColor="#799AE1"
              Height="25px"></HeaderStyle>
            <Columns>
              <asp:TemplateField HeaderText="选择">
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                  <asp:CheckBox ID="CheckBoxID" runat="server" name="CheckBoxID" />
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="所属分类">
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                  <%#GetClassName(Eval("ClassID"))%>
                </ItemTemplate>
              </asp:TemplateField>
       
               <asp:TemplateField HeaderText="产品ID">
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                  <%#Eval("ID")%>
                </ItemTemplate>
              </asp:TemplateField>
          

              <asp:BoundField DataField="Title" HeaderText="名称">
                <ItemStyle HorizontalAlign="left" />
              </asp:BoundField>
              <asp:TemplateField HeaderText="状态">
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                  <%#GetCheck(Eval("Checked"))%>
                </ItemTemplate>
              </asp:TemplateField>

               <asp:TemplateField HeaderText="所属管理员">
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                  <%#Eval("Author")%>
                </ItemTemplate>
              </asp:TemplateField>
      
                <asp:TemplateField HeaderText="是否有货">
                  <ItemTemplate>
                   <%#getFieldStock(Eval("ID").ToString(), "Stock")%>
                  </ItemTemplate>
                </asp:TemplateField>
          
    
              <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                <div style="width:120px;float:left;">
                <%if (_TableName == "Ashop_U_Supplier"){%><a href="Admin_Channel_Slist.aspx?ChannelID=1001&spid=<%#Eval("ID") %>">该商户产品</a><%} %>
                  </div>
              <div style="width:120px;float:left;">
                <a href="Admin_Channel_Showinfo.aspx?action=Edit&ID=<%#Eval("ID") %>&ChannelID=<%=_ChannelID %>">修改</a>
                  <a href="PhotoSetting.aspx?ID=<%#Eval("ID") %>"> <%#getStock(Eval("ID").ToString(), "stock")%></a>
              </div>
               <div style="width:120px;float:left;">
                    <%if(isdelete == "66")
                      {}else{ %>
                  <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" OnClientClick="return window.confirm('确定删除吗？');"
                    CommandName='<%#Eval("ID") %>'>删除</asp:LinkButton>&nbsp;
                    <%} %>
                         </div>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="80px" />
              </asp:TemplateField>
            </Columns>
          </asp:GridView>
        </td>
      </tr>
      <tr>
        <td class="td" style="height: 25px" align="right">
          <webdiyer:AspNetPager ID="myAspNetPager" runat="server" HorizontalAlign="Right" OnPageChanged="myAspNetPager_PageChanged"
            ShowCustomInfoSection="Left" SubmitButtonText=" G O  " CustomInfoHTML="Page  <font color='red'><b>%CurrentPageIndex%</b></font> of  %PageCount%&nbsp;&nbsp;Order %StartRecordIndex%-%EndRecordIndex%"
            PageSize="20" AlwaysShow="True">
          </webdiyer:AspNetPager>
        </td>
      </tr>
      <tr>
        <td align="left" class="td" style="height: 25px">
          <table>
            <tr>
              <td>
              <div style="width:120px;float:left;">
                <asp:CheckBox ID="CheckAll" name="CheckAll" runat="server" OnClick="SelAll();" />
                选择所有 &nbsp; 操作：
              </div>
              <div style="width:660px;float:left;" align="left">
                <asp:RadioButtonList ID="RadManageType" runat="server" RepeatDirection="Horizontal">
                  <asp:ListItem Value="0">删除</asp:ListItem>
                  <asp:ListItem Value="1">清空</asp:ListItem>
                  <asp:ListItem Value="2">批量审核</asp:ListItem>
                  <asp:ListItem Value="3">批量未审核</asp:ListItem>
                </asp:RadioButtonList>
                </div>
              </td>
              </tr>
              <tr>
                 <td>
                 <div style="width:420px;float:left;"> </div>
                 <div style="width:280px;float:left;">
                <asp:DropDownList ID="DrpToClassID" runat="server">
                </asp:DropDownList>
                </div>
                 
                <div id="zhidingguanli" style="width:200px;float:left;" runat="server">
                <asp:DropDownList ID="DropDownListAuother" runat="server">
                </asp:DropDownList>
               </div>
              </td>
       


            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td align="center" class="td" style="height: 25px">
          <asp:Button ID="Button2" runat="server" Text=" 执行操作 " OnClick="Button2_Click" OnClientClick="return confirm('确定执行此操作吗?')" />
        </td>
      </tr>

    </table>
  </div>
  <uc2:InfovrsionControl ID="InfovrsionControl1" runat="server" />
  </form>
</body>
</html>
