<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomExam_Form.aspx.cs" Inherits="RM.Web.Training.ExamPlan.CustomExam_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("CustomExam_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/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>    
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    
    <script type="text/javascript">
       //获取表单值
        function SaveForm() {
            var CustomName = $("#CustomName").val();
            var Customdes = $("#Customdes").val();
            var kemu = $("#kemu option:selected").val();

            if (!CheckDataValid('#form1')) {
                return false;
            } else if (CustomName.length <= 0) {
                showWarningMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CustomExam_Form_zdyksmbnwk")%>");
                return false;
            } else if (Customdes.length <= 0) {
                showWarningMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CustomExam_Form_msbnwk")%>");
                return false;
            } else if (kemu == "0") {
                showWarningMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CoursewareType_Form_qxzkm")%>");
                return false;
            } else {
                return true;
            }
        }

    </script>

    <style type="text/css">
    #cblExamPlan{  border:0; width:500px;}
    #cblExamPlan tr{  border:0; }
    #cblExamPlan td{  border:0; height:0px; padding:0px; margin:0px; line-height:0px; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style=" height:350px;overflow-y:scroll;">
     <table id="tablebody" border="0" cellpadding="0" cellspacing="0" class="frm">        
        <tr>
            <th style="width: 80px;">
                <font color="red">*</font> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CustomExam_Form_Name")%>:
            </th>
            <td>
                <input id="CustomName" runat="server" type="text" class="txt" datacol="yes" err="考试计划名"
                    checkexpession="NotNull" style="width: 200px" />
            </td>
            <td rowspan="4"> <img id="Image1" style="width:45px; height:45px;"  runat="server" /></td>
        </tr>
        <tr>
            <th>
                <font color="red">*</font>  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Button_List_ico")%>:
            </th>
            <td>            
            <asp:FileUpload ID="FileUpload1" runat="server" style=" width:252px;" />
            </td>
        </tr>
<%--        <tr>
            <th>
                <font color="red"></font><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamPlan-km")%> :
            </th>
            <td>                
                <asp:DropDownList ID="kemu" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="kemu_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>--%>
        <tr>
            <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Learn_kechengtype")%> :</th>
            <td>            
                <asp:DropDownList ID="coursetype" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="coursetype_SelectedIndexChanged">

                </asp:DropDownList>
            </td>
        </tr>

        <tr>
            <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CustomExam_Form_xzsj")%> :</th>
            <td>
                <asp:CheckBoxList ID="cblExamPlan" runat="server" RepeatColumns="3" 
                    RepeatDirection="Horizontal" >
                </asp:CheckBoxList>
            </td>
        </tr>        
        <tr>
            <th>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CustomExam_Form_zdyksms")%>:
            </th>
            <td colspan="2" >
                <textarea id="Customdes" class="txtRemark" runat="server" style="width: 450px;
                    height: 140px;"></textarea>
            </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>
    </div>
    </form>
</body>
</html>
