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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="~/UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<%@ Register Src="~/UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Personnellist")%></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/FunctionJS.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Personnellist")%>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="text-align: left; float: left;">
         <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Student_lastlogindata")%>:<input type="text" id="day" value="" onclick="WdatePicker()" runat="server" style="width:100px;"/>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%>:<input type="text" id="name" value=""  runat="server" style="width:100px;"/>
        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("DataList_org")%>:<select id="orgid" runat="server"></select>
        
          <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Js")%>:<select id="roleid" runat="server">
    
        </select> 
            <asp:Button Text="查询" runat="server" onclick="Unnamed1_Click" />            
             <input type="button" onclick="Daochu()" value="导出" />
             <asp:Button ID="Button1"  Text="条件查询" runat="server" onclick="Unnamed2_Click" />
        </div>
        <div style="text-align: right; display:none;" >
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div class="div-body" id="div-body">
        <table class="grid" id="table1" cellspacing="0" cellpadding="0" border="0" data-graph-type="column"
            data-graph-container="#container">
            <thead>
                <tr>
                     <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Code")%>
                    </th>
                    <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%>
                    </th>
                        <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("mail_emailname")%>
                    </th>
                        <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Phone")%>
                    
                    
                    </th>
                      <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Js")%>
                    </th>
                         <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("DataList_org")%>
                    </th>
                  
                    <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_CreatDate")%>
                    </th>
                    <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Student_lastlogindata")%>
                    </th>
                       <th>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("The_Time_Interval")%>
                    </th>
             
                  
                </tr>
            </thead>
            <tbody>
                <%=TableHtml.ToString()%>
            </tbody>
        </table>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
</body>

</html>
<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>
