<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AppendShopList.aspx.cs"
    Inherits="RM.Web.Mall.AppendShop.AppendShopList" %>
    <%@ Register Src="/UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<%@ Register Src="/UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<!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="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/jquery.pullbox.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script type="text/javascript">
        //回车键
        document.onkeydown = function (e) {
            if (!e) e = window.event; //火狐中是 window.event
            if ((e.keyCode || e.which) == 13) {
                var obtnSearch = document.getElementById("lbtSearch");
                obtnSearch.click();
            }
        }
        $(function () {
            $(".div-body").PullBox({ dv: $(".div-body"), obj: $("#table1").find("tr") });
            divresize(90);
            FixedTableHeader("#table1", $(window).height() - 118);
        })
        //添加
        function add() {
            var url = "/Mall/AppendShop/AppendShopForm.aspx";
//            top.openDialog(url, 'AppendShopForm', '自定义商品 - 添加', 700, 350, 50, 50);
            location.href = url;
        }
        function edit() {
            var key = CheckboxValue();
            if (IsEditdata(key)) {
                var url = "/Mall/AppendShop/AppendShopForm.aspx?key=" + key;
                //                top.openDialog(url, 'UserInfo_Form', '用户信息 - 编辑', 700, 350, 50, 50);
                location.href = url;
            }
        }
        function Delete() {
            var key = CheckboxValue();
            if (IsDelData(key)) {
                var delparm = 'action=Virtualdelete&module=<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Mall_zdyshangpingName")%>&tableName=Base_AppendShopWare&pkName=ShopWare_ID&pkVal=' + key;
                delConfig('/Ajax/Common_Ajax.ashx', delparm)
            }
        }
    </script>
</head>
<body>
 <form id="form1" runat="server">
     <div class="btnbartitle">
        <div>
           <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Mall_zdyshangpingName")%>
        </div>
    </div>
    <div class="btnbarcontetn">
      <div style="float: left;">
            <select id="Searchwhere" class="Searchwhere" runat="server"></select>
            <input type="text" id="txt_Search" class="txtSearch SearchImg" runat="server" style="width: 100px;" />
            <asp:LinkButton ID="lbtSearch" runat="server" class="button green" OnClick="lbtSearch_Click"><span class="icon-botton"
            style="background: url('../../Themes/images/Search.png') no-repeat scroll 0px 4px;">
        </span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("GetButton")%></asp:LinkButton>
        </div>
            <div style="text-align: right">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div  id="table1" class="div-body" >
        <div style="width: 100%; ">
            <table class="grid">
                <thead>
                    <tr>
                        <td style="width: 20px; text-align: left;">
                            <label id="checkAllOff" onclick="CheckAllLine()" title='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Quanxuan")%>'>
                                &nbsp;</label>
                        </td>
                        <td>
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Mall_shangpingName")%>
                        </td>
                        <td>
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Mall_shangpinType")%>
                        </td>
                        <td>
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Mall_shangpinPrice")%>
                        </td>
                        <td>
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Mall_shangpindw")%>
                        </td>
                     <%--   <td>
                            商品描述
                        </td>--%>
                        <td>
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Mall_addData")%>
                        </td>
                    </tr>
                </thead>
                <tbody>
                <%=strlist%>

                </tbody>
            </table>
        </div>
    </div>
      <uc1:PageControl ID="PageControl1" runat="server" />
     </form>
</body>
</html>
