<%@ page language="C#" autoeventwireup="true" inherits="user_message_Write, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.Common" %>
<!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></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <asp:Literal ID="LitJs" runat="server"></asp:Literal>

    <script src="../../js/Common.js" type="text/javascript"></script>
    <script>
        function SelFriendName(val) {
            if (val != "0") {
                if (DianCMS_$("txtUserName").value.length > 0) {
                    DianCMS_$("txtUserName").value = DianCMS_$("txtUserName").value + "," + val;
                }
                else {
                    DianCMS_$("txtUserName").value = val;
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../Welcome.aspx">后台首页</a> >> 站内短信 >> 撰写短信
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tr>
            <td class="bqleft">
                收件人：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtUserName" runat="server" CssClass="in1" style="width:300px"></asp:TextBox><asp:DropDownList
                    ID="DropFriend" runat="server" onchange="SelFriendName(this.value)">
                    <asp:ListItem Value="0">请选择</asp:ListItem>
                </asp:DropDownList> 多个用户请用“,”隔开
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                主题：
            </td>
            <td class="bqright"><asp:TextBox ID="FilePicPath" runat="server" Style="display: none">user|0</asp:TextBox>
                <asp:TextBox ID="txtTitle" runat="server" CssClass="in1" style="width:400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                内容：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine"></asp:TextBox><asp:Literal ID="LitContent"
                        runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button1" runat="server" Text=" 发送 " CssClass="btn" OnClick="Button1_Click" /><asp:Button ID="Button2" runat="server" Text=" 保存为草稿 " CssClass="btn" OnClick="Button1_Click" style="margin-left:10px" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
