<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Automatic_certification_list.aspx.cs"
    Inherits="RM.Web.Training.Certificate.Automatic_certification_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("Certificate_List")%></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>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="text-align: left; float: left;">
        </div>
        <div style="text-align: right">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div class="div-body">
        <table border="0" cellpadding="0" cellspacing="0" class="grid">
            <thead>
                <tr>
                    <th data-graph-hidden="1" style="width: 35px; text-align: center;">
                        <label id="checkAllOff" title="全选" onclick="CheckAllLine()">
                        </label>
                    </th>
                    <th data-graph-hidden="1" title="发证条件">
                        发证条件
                    </th>
                    <th data-graph-hidden="1" title="详细条件">
                        详细条件
                    </th>
                    <th data-graph-hidden="1" title="证书名称">
                        证书名称
                    </th>
                    <th data-graph-hidden="1" title="证书查询ID">
                        证书查询ID
                    </th>
                </tr>
            </thead>
            <tbody>
                <%=TableTree_CoursewareType.ToString() %>
            </tbody>
        </table>
    </div>
    </form>
    <script type="text/javascript">
        //新增
        function add() {
            top.openDialog('/Training/Certificate/Automatic_certification.aspx', 'Automatic_certification-Add', '自动发证 - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Add")%>', 500, 200, 50, 50);
        }
        //删除
        function Delete() {
            var key = CheckboxValue();
            if (IsDelData(key)) {
                var delparm = 'action=Virtualdelete&module="自动发证设置"&tableName=Automatic_certification&pkName=Automatic_certification_Id&pkVal=' + key;
                delConfig('/Ajax/Common_Ajax.ashx', delparm)
            }
        }
        //编辑
        function edit() {
            var key = CheckboxValue();
            if (IsEditdata(key)) {
                var url = "/Training/Certificate/Automatic_certification.aspx?key=" + key;
                top.openDialog(url, 'Automatic_certification-Edit', '自动发证 - <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Add")%>', 500, 200, 50, 50);
            }
        }
    </script>
</body>
</html>
