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

<!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><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CoursewareType_Form_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/Validator/JValidator.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/FunctionJS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" class="frm">
        <tr>
            <th>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Menu_Form_jidian")%>：
            </th>
            <td>
                <select id="CoursewareType_ParentId" class="select" runat="server" style="width: 92%">
                </select>
            </td>
        </tr>
        <tr>
            <th valign="top">
               <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CertificateType_Class")%> ：
            </th>
            <td>
                <input id="CoursewareType_CtName" runat="server" type="text" class="txt" datacol="yes"
                    err="分类名称" checkexpession="NotNull" style="width: 90%" /><br />
             <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CertificateType_Remarks")%>
            </td>
        </tr>
        <tr>
            <th>
                 <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("SortIndex")%>：
            </th>
            <td>
                <input id="CoursewareType_SortCode" runat="server" type="text" class="txt" datacol="yes"
                    err="排序码" checkexpession="Num" style="width: 90%" />                    
            </td>
        </tr>

       <%-- <tr>
            <th> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Kemu")%>：</th>
            <td>
                <select id="kemu" class="select" runat="server" style="width: 200px">
                    </select>
            </td>
        </tr>--%>

        <tr>
            <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CoursewareType_Form_sfyzj")%>：</th>
            <td> 
                <input type="checkbox" id="isChapter" name="isChapter" runat="server"  /> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("S")%>
            </td>
        </tr>

        <tr>        
            <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ctype_sfsy")%>：</th>
            <td> 
                <input type="checkbox" id="isTrial" name="isTrial" runat="server"  /> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("S")%>
            </td>
        </tr>
    </table>
    <div class="frmbottom">
        <asp:LinkButton ID="Save" runat="server" class="l-btn" OnClientClick="return SaveForm();"
            OnClick="Save_Click"><span class="l-btn-left">
            <img src="/Themes/Images/disk.png" alt="" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Save")%></span></asp:LinkButton>
        <a class="l-btn" href="javascript:void(0)" onclick="OpenClose();"><span class="l-btn-left">
            <img src="/Themes/Images/cancel.png" alt="" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Close")%></span></a>
    </div>
    </form>
    <script type="text/javascript">
        function SaveForm() {            
            var kemu = $("#kemu option:selected").val();
            if (!CheckDataValid('#form1')) {
                return false;
            } else if (kemu == "0") {
                showWarningMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CoursewareType_Form_qxzkm")%>！");
                return false;
            } else {
                return true;
            }
        }
    </script>
</body>
</html>
