<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AutoInfomation_List.aspx.cs"
    Inherits="RM.Web.WeiXin.AutoInfomation_List" %>

<%@ 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 id="Head1" runat="server">
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AutoInfomation_List_hfnr")%></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>
    <link href="../../Themes/Scripts/artDialog/skins/opera.css" rel="stylesheet" type="text/css" />
    <script src="../../Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="../../Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
</head>
<body onload="M2M()">
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AutoInfomation_List_wxzdhflb")%>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="text-align: right">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div class="div-body">
        <%=pageHtml.ToString() %>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    //编辑
    function add() {
        //alert(Menu_Id);
        var url = "/WeiXin/AutoInfomation_Form.aspx";
        top.openDialog(url, 'AutoInfomation_Form', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AutoInfomation_List_wxzdhf")%> - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Add")%>', 750, 305, 50, 50);
    }

    $(function () {
        //把分页定位到屏幕下面
        divresize(90);
        FixedTableHeader("#table1", $(window).height() - 121);
        $('.delData').click(function () {
            var data = $(this).attr('data');
            DeleteData('/Ajax/Common_Ajax.ashx', 'action=Delete&tableName=TKS_WeiXinAutoAnswer&pkName=WeiXinAutoAnswer_Id&pkVal=' + data);
            return false;
        });
        $('.editData').click(function () {
            var key = $(this).attr('data');
            var url = "/WeiXin/AutoInfomation_Form.aspx?Key=" + key;
            top.openDialog(url, 'AutoInfomation_Form', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AutoInfomation_List_wxzdhf")%> - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Edit")%>', 750, 305, 50, 50);
        });
    });
</script>
