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

<!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("Credit_Form_xfcl")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
        <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("Credit_Set_jszq")%>:
            </th>
            <td colspan="3">
               <input id="Credit_Startdate" runat="server" type="text" value="" onclick="WdatePicker()" datacol="yes" err="学分周期起始时间"     checkexpession="NotNull" /> - 
               <input id="Credit_Enddate" runat="server" type="text" value="" onclick="WdatePicker()" datacol="yes" err="学分周期结束时间"     checkexpession="NotNull" /> 
               <br /> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_xfzjsbsjfwnd")%><br /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_rgdqsjcgcjssj")%><br />
              <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_rgdqsjzycqssj")%><br />
            </td>
        </tr>
        <tr>
            <th>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_xfhd")%>:
            </th>

            <td colspan="3">
        <input type="checkbox" runat="server" id="Checkbox1" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_xmzdkcsj")%>
         <input type="checkbox" runat="server" id="Checkbox2" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_tgqbkcks")%>
          <input type="checkbox" runat="server" id="Checkbox3" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_jrgfpxf")%>
          <input type="checkbox" runat="server" id="Checkbox4"/><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("credit_jsgs")%>
            </td>
        </tr>        
        <tr>
        <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("credit_gskxxx")%>: </th>
        <td> <a style="color:blue;" href="javascript:;"  onclick="ggVal(this)">[<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Form_xuefen")%>]</a> <a style="color:blue;" href="javascript:;" onclick="ggVal(this)">[<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Learn_xuexishijian")%>]</a> </td>
        </tr>

        <tr>
        <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("credit_Coeffic")%>: </th>
        <td><input type="text" id="txtParam_Coeffic" runat="server"  /></td>
        </tr>

        <tr>
        <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("credit_jsgs")%>: </th>
        <td>
            <textarea runat="server" style=" width:300px; height:50px;" id="jsgongshi" ></textarea><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("credit_ru")%>：[<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Form_xuefen")%>]=[<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Learn_xuexishijian")%>]*0.1
            
        </td>
        </tr>
        <tr>
            <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_xfshez")%>：</th>
            <td colspan="3"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_xyhdxfdslsz")%><a href="/Training/plan/Plan_List.aspx" target="main" style="color:Blue"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("TrainingPlan_Title")%></a><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Credit_Set_zszd")%></td>
        </tr>
    </table>
    <div class="frmbottom">
        <asp:LinkButton ID="Save" runat="server" class="l-btn" OnClientClick="return CheckDataValid('#form1');"
            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>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#Checkbox1").change(function () {
                $("#jsgongshi").html("");
                if ($("#Checkbox4").is(":checked")) {
                    $("#Checkbox4").attr("checked", false);
                }
            });

            $("#Checkbox4").change(function () {
                if ($("#Checkbox1").is(":checked")) {                    
                    $("#Checkbox1").attr("checked", false);
                }
            });
        });

        function ggVal(aaa) {
            $("#jsgongshi").append($(aaa).html());
        }
        
    </script>
    </form>

    </body>
</html>
