<%@ page language="C#" autoeventwireup="true" inherits="Admin_Product_Product_List, Huibo.Net" enableviewstatemac="false" enableEventValidation="false" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看修改商品</title>
    <link href="../style/StyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="../style/workplace-merge.css" rel="stylesheet" />
    <link href="../style/index-new-merge.css" rel="stylesheet" />

    <script type="text/javascript" src="../JS/JScriptDrag.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div style="width: 99%; text-align: center;">
            <div class="mod-wp-win">
                <div class="win-head-wrap">
                    <div class="win-head" id="mod-info-center-head">
                        <p>
                            商品列表</p>
                    </div>
                </div>
                <div class="mod-info-center clr">
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td bgcolor="#FFFFFF" style="width: 100%;">
                                <div>
                                    <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#d5eaff">
                                        <tr>
                                            <td class="state" style="vertical-align: middle; height: 30px; text-align: center;">
                                                <asp:TextBox ID="selectkey" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;
                                                <asp:DropDownList ID="selectm" runat="server" Width="120px">
                                                    <asp:ListItem Value="name">按商品名称</asp:ListItem>
                                                    <asp:ListItem Value="grade">按商品编号</asp:ListItem>
                                                    <asp:ListItem Value="zuozhe">按商品品牌</asp:ListItem>
                                                    <asp:ListItem Value="chubanshe">按商品简介</asp:ListItem>
                                                    <asp:ListItem Value="3">库存&lt;=3件</asp:ListItem>
                                                    <asp:ListItem Value="0">库存为0</asp:ListItem>
                                                </asp:DropDownList>&nbsp;&nbsp;&nbsp;
                                                <asp:DropDownList ID="Categoryid" runat="server" Width="120px">
                                                </asp:DropDownList>&nbsp;&nbsp;&nbsp;
                                                <asp:Button ID="query" runat="server" Text="查询" Height="22px" Width="50px" OnClick="query_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div style="height: 15px;" class="state">
                                </div>
                                <div class="DLBoder">
                                    <asp:DataList ID="ProList" runat="server" Width="100%" OnItemDataBound="ProList_ItemDataBound">
                                        <HeaderTemplate>
                                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                <tr style="height: 30px;">
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        商品ID
                                                    </td>
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        图片
                                                    </td>
                                                    <td class="DLBodertd" style="width: 26%;">
                                                        商品名称
                                                    </td>
                                                    <td class="DLBodertd" style="width: 13%;">
                                                        商品编号
                                                    </td>
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        新品
                                                    </td>
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        下架
                                                    </td>
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        推荐
                                                    </td>
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        特价
                                                    </td>
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        热卖
                                                    </td>
                                                    <td class="DLBodertd" style="width: 13%;">
                                                        所属类别
                                                    </td>
                                                    <td class="DLBodertd" style="width: 6%;">
                                                        选择
                                                    </td>
                                                </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="ID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.id")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <a href='../../Product.aspx?ID=<%# DataBinder.Eval(Container, "DataItem.id")%>' target="_blank">
                                                        <img src="../<%# DataBinder.Eval(Container, "DataItem.photo") %>" alt="<%# DataBinder.Eval(Container, "DataItem.name") %>"
                                                            style="width: 50px; height: 50px; border: 0pc; display: block;" /></a>
                                                </td>
                                                <td align="left" class="DLBodertd">
                                                    <a href="Product_Edit.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id") %>" class="ProA">
                                                        <%# DataBinder.Eval(Container, "DataItem.name") %>
                                                    </a>
                                                </td>
                                                <td class="DLBodertd">
                                                    <%# DataBinder.Eval(Container, "DataItem.grade")%>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="recommend" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.recommend")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="isfb" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.isfb")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="iscx" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.iscx")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="istj" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.istj")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="indextj" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.indextj")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:Label ID="category" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.categoryid")%>'></asp:Label>
                                                </td>
                                                <td class="DLBodertd">
                                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:DataList>
                                    <table style="width: 100%;" border="0" cellpadding="1" cellspacing="1">
                                        <tr>
                                            <td style="text-decoration: none; height: 30px; vertical-align: middle;" align="right">
                                                <asp:DropDownList runat="server" ID="pageList" AutoPostBack="true" OnSelectedIndexChanged="pageList_OnSelectedIndexChanged">
                                                    <asp:ListItem Text="每页20条" Value="20"></asp:ListItem>
                                                    <asp:ListItem Text="每页50条" Value="50"></asp:ListItem>
                                                    <asp:ListItem Text="每页100条" Value="100"></asp:ListItem>
                                                    <asp:ListItem Text="每页1000条" Value="1000"></asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:TextBox ID="PageCount" runat="server" Text="1" Visible="False"></asp:TextBox>
                                                <asp:Button ID="NewPro" runat="server" Text="新品" Height="22px" Width="50px" OnClick="NewPro_Click" />
                                                <asp:Button ID="iscx" runat="server" Text="推荐" Height="22px" Width="50px" OnClick="iscx_Click" />
                                                <asp:Button ID="istj" runat="server" Text="特价" Height="22px" Width="50px" OnClick="istj_Click" />
                                                <asp:Button ID="indextj" runat="server" Text="热卖" Height="22px" Width="50px" OnClick="indextj_Click" />
                                                <input type="button" onclick="javascript:showMe();" value="调整分类" style="height: 22px;
                                                    width: 70px;" />
                                                <asp:Button ID="isfb" runat="server" Text="下架" Height="22px" Width="50px" OnClick="isfb_Click" />
                                                <asp:Button ID="DeletePro" runat="server" Text="删除" Height="22px" Width="50px" ForeColor="Black"
                                                    OnClick="DeletePro_Click" />
                                                <asp:Button ID="SelectAll" runat="server" Text="全选" OnClick="SelectAll_Click" Height="22px"
                                                    Width="50px" />
                                                <asp:Label ID="PageEnd" runat="server" Width="58px" Visible="False"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="text-decoration: none; height: 15px;" align="center">
                                <webdiyer:AspNetPager ID="Pager" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                                    PrevPageText="上一页" runat="server" HorizontalAlign="Center" OnPageChanged="Pager_PageChanged"
                                    Width="100%" SubmitButtonText="跳转" ShowBoxThreshold="1" AlwaysShow="True">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div id="drag" runat="server">
            <table style="width: 250px;" bgcolor="#d5eaff" border="0" cellpadding="0" cellspacing="0">
                <tr class="ProListTitle">
                    <td width="80%" id="lstd" style="cursor: move; font-size: 12px; height: 25px; text-align: left;">
                        <strong>选择分类 </strong>
                    </td>
                    <td align="right" onclick="closewin()" style="cursor: hand;" title="关闭">
                        [关闭]</td>
                </tr>
                <tr>
                    <td valign="top" colspan="2" bgcolor="#ffffff" style="font-size: 12px;">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    大类：
                                </td>
                                <td>
                                    <asp:DropDownList ID="category" AutoPostBack="True" runat="server" Width="168px"
                                        OnSelectedIndexChanged="category_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    小类：
                                </td>
                                <td>
                                    <asp:DropDownList ID="sorts" runat="server" Width="168px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="UpdateCat" runat="server" Text="确 定" OnClick="UpdateCat_Click" />
                                    <input type="button" value="取消" onclick="closewin()" />
                                    <asp:HiddenField ID="Dis" Value="0" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
