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

<%@ 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 id="Head1" runat="server">
    <title>
        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_List_Title")%></title>
         <script src="/Language/zh-cn.js" type="text/javascript"></script>
    <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>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_List_Title")%>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="text-align: left; float: left;">
            <select runat="server" id="logname">
            </select>
            <input runat="server" class="txt" id="search_Bar" />
            <asp:LinkButton ID="lbtSearch" runat="server"  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>
    <script src="/Themes/Scripts/LodopFuncs.js" type="text/javascript"></script>
    <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0"></embed>
    </object>
    <div class="div-body" id="div-body">
        <%=TableHtml %>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
    <script type="text/javascript">
        $(function () {
            //把分页定位到屏幕下面
            divresize(90);
            FixedTableHeader("#table1", $(window).height() - 121);
        })
        //设置
        function set() {
            var url = "/RMBase/SysWindows/Base_WindowsSQLForm.aspx?key=<%=TableTitle %>";
            top.openDialog(url, 'Credit_List', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_List_xfgl")%> - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Display settings")%>', 850, 400, 50, 50);
        }
        
        function Strategy() {
            var url = "/Training/Credit/Credit_Set.aspx";
            top.openDialog(url, 'Credit_List', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Form_xfcl")%>', 750, 350, 50, 50);
        }
        //详细
        function detail() {
            var key = CheckboxValue();
            if (IsEditdata(key)) {
                var url = "/Training/Credit/Credit_User.aspx?key=" + key;
                top.openDialog(url, 'Credit_User', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_information")%> - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Form_xuefen")%>', 800, 350, 50, 50);
            }
        }
        //学分增加
        function add() {
            var key = CheckboxValue();
            if (IsEditdata(key)) {
                var url = "/Training/Credit/Credit_Form.aspx?Key=" + key;
                //alert(url);
                top.openDialog(url, 'Credit_Form', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_List_yhxf")%>  - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Edit")%>', 850, 400, 50, 50);
            }
        }
        //打印
        var LODOP; //声明为全局变量 
        function printer() {
            CreateOneFormPage();
            LODOP.PREVIEW();
        }
        function CreateOneFormPage() {
            LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
            LODOP.SET_PRINT_STYLE("FontSize", 18);
            LODOP.SET_PRINT_STYLE("Bold", 1);
            LODOP.ADD_PRINT_TEXT(50, 231, 360, 59, "<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Certificate_Print")%>");
            var strStyleCSS = "<link href='/Themes/Styles/Site.css' type='text/css' rel='stylesheet'>";
            var strBodyStyle = "<style>table{width:100%;border: 1 solid #000000;border-collapse:collapse }td {border: 1 solid #000000;border-collapse:collapse }</style>";
            LODOP.ADD_PRINT_HTM(0, 0, '100%', '100%', strStyleCSS + strBodyStyle + document.getElementById("div-body").innerHTML);
        };
    </script>
</body>
</html>
