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


<!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/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/jsAddress.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExampaperType_Statistics_list")%>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="text-align: left; float: left;">
            选择知识点:
            <select id="ZSlist" runat="server">
            </select>
            <asp:Button ID="selectbutton" Text="确定" runat="server" OnClick="select_Click" />
            <input type="button" onclick="Daochu()" value="导出" />
        </div>
    </div>
    <div class="div-body">
            <table class="grid" id="table1" cellspacing="0" cellpadding="0" border="0" data-graph-type="column" data-graph-container="#container">
                <thead>
                    <tr>
                        <th>
                            相关知识点
                        </th>
                        <th>
                            正确数
                        </th>
                        <th>
                            错误数
                        </th>
                        <th>
                            总题目数
                        </th>
                    </tr>
                </thead>
                    <%=dthtml %>
                <tbody>
                </tbody>
            </table>
        </div>
    </form>
</body>
<script type="text/javascript">
    $(function () {
        //把分页定位到屏幕下面
        divresize(90);
        FixedTableHeader("#table1", $(window).height() - 121);
    })
    //导出
    function Daochu() {

        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>
