<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CountAnswerNum.aspx.cs" Inherits="RM.Web.Training.Tool.CountAnswerNum" %>

<%@ 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">
<script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
<script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
<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/jsAddress.js" type="text/javascript"></script>
<head runat="server">
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Themes/Scripts/artDialog/skins/aero.css" rel="stylesheet" type="text/css" />
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CountUserAnswerNums")%></title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CountUserAnswerNums")%>
        </div>
    </div>
    <div class="btnbarcontetn">
    <div style="text-align: left; float:left;">
            选择起止时间:
            <input id="start" type="text" onclick="WdatePicker()" value="" runat="server" />&nbsp;&nbsp;
            --&nbsp;&nbsp;<input id="end" type="text" onclick="WdatePicker()" value="" runat="server" />
            <asp:Button ID="lbtSearch" class="button green" Text="确定" runat="server" />
            <uc2:LoadButton ID="LoadButton1" runat="server" />
       </div>
    </div>
    <div class="div-body">
            <%=tabHtml %>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
   </form>
</body>
<script type="text/javascript">
    $(function () {
        //把分页定位到屏幕下面
        divresize(90);
        FixedTableHeader("#table1", $(window).height() - 121);
    })


    //导出
    function exportt() {
        var html = "<table border=1>" + $("#table1").html() + "</table>";
        post('/RMBase/SysWindows/WindowsExport.ashx', { ExportType: "not", ExportHTML: html, TableName: "result" });
       // GoTableExport("not", "table1");
    }
    //提交数据，下载导出文件
    function post(URL, PARAMS) {
        var temp = document.createElement("form");
        temp.action = URL;
        temp.method = "post";
        temp.style.display = "none";
        for (var x in PARAMS) {
            var opt = document.createElement("textarea");
            opt.name = x;
            opt.value = PARAMS[x];
            //alert(opt.name);      
            temp.appendChild(opt);
        }
        document.body.appendChild(temp);
        temp.submit();
        return temp;
    }
</script>
</html>
