<%@ page language="C#" autoeventwireup="true" inherits="Admins_ProductList, App_Web_gnqjln3d" enableviewstatemac="false" %>

<%@ Register src="../Controls/UCClassify.ascx" tagname="UCClassify" tagprefix="uc1" %>

<!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 id="Head1" runat="server">
    <title>产品管理</title>
    <link href="images/main.css" rel="stylesheet" type="text/css" />
    <link href="../Css/pagestyle.css" rel="stylesheet" type="text/css" />

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

    <script type="text/javascript">
        function goUrl() {
            window.location.href = "Product.aspx?act=add"; //"Product.aspx";
            //return false;
        }
    </script>
    
    <%--Message--%>
    <link href="images/msg.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.validate.min.js"></script>

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

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

    <script type="text/javascript">
        $(function() {
            //表单验证JS
        $("#myform").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function(label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });
    </script>

    <%--Message--%>

</head>
<body>
    <form id="myform" runat="server">
    <table align="center" border="0" cellpadding="3" cellspacing="1" width="100%">
        <tbody>
            <tr>
                <td class="td_title" colspan="8" height="25">
                    产品管理
                </td>
            </tr>
            <tr>
                <td colspan="8" height="25" style="padding-left:10px;">
                   分类：<uc1:UCClassify ID="UCClassify1" runat="server"  CssClass ="input"/>
                    &nbsp; 序号：<asp:TextBox
                        ID="txtProductNo" runat="server" CssClass ="input"></asp:TextBox>
                    &nbsp; 名称：<asp:TextBox ID="txtProductNameCN" runat="server" CssClass ="input"></asp:TextBox>&nbsp;
                    <asp:Button ID="btn_Search" runat="server" Text="搜 索" CssClass="submit" OnClick="btn_Search_Click" />
                </td>
            </tr>
            <tr>
                <td align="center" width="5%">
                    选择
                </td>
                <td align="center">
                    <a>序号</a>
                </td>
                <td align="center">
                    <a>名称</a>
                </td>
                <td align="center">
                    <a>分类</a>
                </td>
               <%-- <td align="center">
                    <a>型号</a>
                </td>
                <td align="center">
                    <a>价格</a>
                </td>--%>
                <td align="center">
                    <a>日期</a>
                </td>
                <td align="center">
                    <a>点击量</a>
                </td>
                <td align="center">
                    <a>排序</a>
                </td>
                
                <td align="center" width="12%">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="RepList" runat="server">
                <ItemTemplate>
                    <tr class="tr1" onmouseover="this.className='tr2'" onmouseout="this.className='tr1'">
                        <td align="center">
                            <input runat="server" type="checkbox" id="fId" value='<%#Eval("Id") %>' onclick="unselectall(this.form)" />
                        </td>
                        <td align="center">
                            <img src="../<%#Eval("MinPic")%>" style="width: 150px; height: 150px;" /><br />
                            <%#Eval("ProductNo")%>
                        </td>
                        <td>
                            <%#Eval("ProductNameCN")%>
                        </td>
                        <td>
                            <%#Eval("ClassNameCN")%>
                        </td>
                       <%-- <td>
                            <%#Eval("ProductModelCN")%>
                        </td>
                        <td>
                            <%#Eval("PriceCN")%>
                        </td>--%>
                         <td>
                            <%#Eval("AddTime")%>
                        </td>
                        <td>
                            <input runat="server" id="txtClickNumber" type="text" value='<%#Eval("ClickNumber")%>' maxlength="4" size="6"  class="input required number" hinttitle="设置点击数" hintinfo="请填写1-1000的正整数。"/>
                        </td>
                        <td>
                            <input runat="server" id="txtOrderSort" type="text" value='<%#Eval("OrderSort")%>' maxlength="4" size="6"  class="input required number" hinttitle="设置显示的顺序" hintinfo="请填写1-1000的正整数。"/>
                        </td>
                       
                        <td align="center">
                            <a href="Product.aspx?act=edit&id=<%#Eval("Id") %>">修改</a>&nbsp;|&nbsp;<a onclick="return confirm('确定要执行该删除操作吗？删除后将不可以恢复！');"
                                href="ProductList.aspx?act=del&Id=<%#Eval("Id") %>">删除</a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td colspan="8" height="23">
                    &nbsp; &nbsp;
                    <label>
                        <input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAll(this.form)" value="checkbox" /><label
                            for="chkAll">全选/取消</label>
                        <asp:Button ID="btn_Del" runat="server" Text="删除" CssClass="submit" OnClientClick="return confirm('确定要执行该删除操作吗？删除后将不可以恢复！');"
                            OnClick="btn_Del_Click" />&nbsp;<input id="Button1" type="button" value="新增" class="submit"
                                onclick="goUrl();" />&nbsp;<asp:Button ID="btn_ClickNumber" runat="server" 
                        Text="更新点击量" CssClass="submit" onclick="btn_ClickNumber_Click"/>&nbsp;<asp:Button ID="btn_Sort" runat="server" 
                        Text="更新排序" CssClass="submit" onclick="btn_Sort_Click"/>&nbsp;<span style="color:Red;">操作前需先选择数据！</span>
                    </label>
                </td>
            </tr>
            <tr>
                <td colspan="8" align="right">
                    <asp:Label ID="MyPage" runat="server"></asp:Label>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
