<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Affichet_List_Form.aspx.cs"
    Inherits="RM.Web.Training.Affichet.Affichet_List_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 id="Head1" runat="server">
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Affichet_management")%></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/jquery.form.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.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/FunctionJS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="tablebody" border="0" cellpadding="0" cellspacing="0" class="frm">
        <tr>
            <th style="width: 80px;">
                <span style="color: Red;">*</span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Affichet_Notice")%>:
            </th>
            <td>
                <input id="Affichet_Name" maxlength="40" type="text" class="txt" datacol="yes"
                    err="公告名"  checkexpession="NotNull" style="width: 687px"  runat="server" />
            </td>
        </tr>
        <tr>
            <th>
                <span style="color: Red;">*</span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("user_group")%>:
            </th>
            <td>
                <script src="/Themes/Scripts/GetuserControl.js" type="text/javascript"></script>
            </td>
        </tr>
        <%--        <tr>
            <th>
                <span style="color: Red;">*</span>是否允许所有人参与:
            </th>
            <td>
                <select id="LiveTelecast_IsOpen" class="select" maxlength="35" runat="server" style="width: 206px;">
                    <option value="0" runat="server">否</option>
                    <option value="1" runat="server">是</option>
                </select>
            </td>
        </tr>--%>
        <tr>
            <th>
                <span style="color: Red;">*</span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Affichet_Content")%>:
            </th>
            <td colspan="3">
                <textarea id="Affichet_Content" class="txtRemark" runat="server" style="width: 687px;
                    height: 80px;" datacol="yes" err="公告内容"  checkexpession="NotNull"></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>
    </form>
    <script type="text/javascript">
        function saveForm() {
            var number = 0;
            var r = document.getElementsByName("users");
            for (var i = 0; i < r.length; i++) {
                if (r[i].checked) { number++; }
            }
            if (number == 0 && $("#LiveTelecast_IsOpen").val() != 1) {
          
                showTipsMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("least_groups")%>", 5000, 3);
                return false;
            }
            if (!CheckDataValid('#form1')) return false;
            return true;
        }
        $(function () {
            <%=moreScript.ToString() %>
        });
    </script>
</body>
</html>
