<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MR_Form.aspx.cs" Inherits="RM.Web.Member.MR_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("MR_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>
<div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MR_Form_zcxm")%>-<%=Request["key"]== null? RM.Common.DotNetConfig.LanguageHelper.GetKey("Add"):RM.Common.DotNetConfig.LanguageHelper.GetKey("Edit") %>
        </div>
    </div>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" class="frm">
        
        <tr>
            <th>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MR_Form_Kexuan")%>：
            </th>
            <td>
            
            <input type="hidden" id="MR_SYSTEM" runat="server" />
                <select id="Xuan" class="select" runat="server" style="width: 85%" onchange="selectXuan();">
                </select>
            </td>
        </tr>
        <tr>
            <th>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Name")%>：
            </th>
            <td>
                <input id="MR_NAME" runat="server" type="text" class="txt" datacol="yes" err="名称" checkexpession="NotNull"
                    style="width: 85%" />
            </td>
        </tr>
        <tr>
        <th></th>
        <td>
 
        </td>
        </tr>
        <tr>
            <th>
                 <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MR_Form_Daima")%>：
            </th>
            <td>
                <input id="Mr_Code" runat="server" type="text" class="txt" 
                    style="width: 85%" readonly = "readonly"  />
            </td>
        </tr>
        <tr>
            <th>
               <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Button_Form_shunxu")%> ：
            </th>
            <td>
                <input id="Mr_Order" runat="server" type="text" class="txt" datacol="yes" err="显示顺序"
                    checkexpession="Num" style="width: 85%" />
            </td>
        </tr>
        <tr>
            <th>
                 <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Explain")%> ：
            </th>
            <td>
                <textarea id="Mr_Explain" class="txtRemark" runat="server" style="width: 85.5%; height: 50px;"></textarea>
            </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>
    </form>
    <script type="text/javascript">
        //选择可选项目
//        function selectXuan() {
//            var obj = document.getElementById("Xuan");
//            var objtext = "";
//            var objvalue = obj.value;
//            for (i = 0; i < obj.length; i++) {
//                if (obj[i].selected == true) {
//                    objtext = obj[i].innerText;      //关键是通过option对象的innerText属性获取到选项文本
//                }
//            }
//            document.getElementById("Mr_Name").value = objtext;
//            document.getElementById("Mr_Code").value = objvalue;
//        }
        function selectXuan() {
            jQuery("#Mr_Code").val(jQuery("#Xuan").val());
            var value = document.getElementById("Xuan").options[document.getElementById("Xuan").selectedIndex].text;
            jQuery("#MR_NAME").val(value);
        }
    </script>
</body>
</html>
