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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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("Compute_bjcjjs")%></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>
    <style type="text/css">
        .lbl_Title { padding: 0 6px 0 8px; }
        li { list-style: none; }
        ul, li, fieldset, legend, p, div { margin: 0; padding: 5px; }
        #statisticsName { border: 1px solid #CCC; line-height: 18px; height: 18px; width: 200px; font-family: "microsoft yahei" ,simhei; }
        .configDetail { display: inline-block; }
        .configDetail input { width: 60px; border: 1px solid #CCC; line-height: 18px; height:18px; font-size: 10pt; font-family: "microsoft yahei" ,simhei; }
        .discript p { color: Red; }
        #handleIcon { display: none; background: url("/Themes/Images/loading.gif") no-repeat scroll 7px 2px #FFFFFF; left: 20%; padding: 6px 5px 6px 40px; position: absolute; top: 45%; z-index: 3000; }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#config input").blur(function () {
                if (jQuery.trim($(this).val()) == "") {
                    showTipsMsg($(this).prev().text() + '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_byxwk")%>', 1500, 3);
                    
                    return false;
                }
            });
        });
        //验证数字 num
        function isInteger(obj) {
            reg = /^[-+]?\d+$/;
            if (!reg.test(obj)) {
                return false;
            } else {
                return true;
            }
        }
        function checkExcel() {
            var isCheck = false;
            $("#config input").each(function () {
                if (jQuery.trim($(this).val()) == "") {
                    showTipsMsg($(this).prev().text() + '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_byxwk")%>', 1500, 3);
                    isCheck = true;
                    return false;
                } else if ($(this).hasClass("isNums")) {
                    if (!isInteger($(this).val())) {
                        showTipsMsg($(this).prev().text() + '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_isnum")%>', 1500, 3);
                        isCheck = true;
                        return false;
                    }
                }
            });
            if (isCheck) return false;
            if (jQuery.trim($("#ddl_byExam").val()) == "") {
                showTipsMsg('<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_tjInfo")%>', 3000, 3);
                return false;
            }
            $("#handleIcon").show(0);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" method="post" enctype="multipart/form-data">
    <div>
        <fieldset id="config">
            <legend><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_pzcs")%></legend>
            <div>
                <label class="lbl_Title">
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_tjks")%>：</label><select runat="server" id="ddl_byExam"></select>
            </div>
            <ul class="configContainer">
                <li>
                    <%--<div class="configDetail">
                        <span>语文老师：</span>
                        <input id="input_ChineseTeacher" runat="server" />
                    </div>--%>
                    <div class="configDetail">
                        <span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_zjgf")%>：</span>
                        <input id="input_Pass" runat="server" value="396" class="isNums" />
                    </div>
                    <div class="configDetail">
                        <span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_zlhf")%>：</span>
                        <input id="input_Good" runat="server" value="426" class="isNums" />
                    </div>
                    <div class="configDetail">
                        <span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_zyxf")%>：</span>
                        <input id="input_Fine" runat="server" value="528" class="isNums" />
                    </div>
                    <div class="configDetail">
                        <span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_ztyf")%>：</span>
                        <input id="input_BestFine" runat="server" value="594" class="isNums" />
                    </div>
                </li>
            </ul>
        </fieldset>
        <div class="discript">
            <p>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_zs1")%>
            </p>
            <p>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_zs2")%>
            </p>
        </div>
        <asp:Button ID="submitBtn" runat="server" Text='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_tjsj")%>' OnClientClick="javascript:return checkExcel();"
            OnClick="submitBtn_Click" Style="float: right;" />
    </div>
    <div id="handleIcon"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Compute_zs3")%></div>
    </form>
</body>
</html>
