<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Msg_Reply.aspx.cs" validateRequest="false"  Inherits="TotCms.Web.Office.msg.Msg_Reply" %>

<!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 href="../style/global.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript" ></script>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../../swfupload/swfupload.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#dialog:ui-dialog").dialog("destroy");
            $("#dialog-win").dialog({
                autoOpen: false,
                height: 350,
                width: 450,
                modal: true,
                buttons: {
                    "关闭窗口": function () {
                        $(this).dialog("close");
                    }
                },
                close: function () {

                }
            });

            $("#selclass").click(function () {
                $("#dialog-win").dialog("open");
            });
        });
        function CloseFrame() {
            $("#dialog-win").dialog("close");
        }
        function ReturnValue(v, t) {
            $('#tbStaffs').val(t);
            $('#tbStaffId').val(v);
            CloseFrame();
        }
	</script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="br"></div>
    <div>
    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="1" class="border">
            <tr class="suphead">
                <td>
                    <h3>消息内容</h3>
                </td>
            </tr>
        <tr>
            <td height="30" align="center" class="line20">
                发送者：<span ID="FromUser" runat="server"></span>&nbsp;&nbsp;&nbsp;
                发送时间：<span ID="PubDate" runat = "server"></span>
                <asp:TextBox ID="FromId" runat="server" CssClass="hidden"></asp:TextBox>
                附件：<asp:HyperLink ID="tbAttachment" runat="server"></asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td>
                <div id="divContent" runat="server"></div>
            </td>            
        </tr>
        
        <tr class="suphead">
            <td>
                回复消息
            </td>
        </tr>
        <tr>
            <td height="32">
                标题：<asp:TextBox ID="tbTitle" runat="server" CssClass="input_middle"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                  ControlToValidate="tbTitle" ErrorMessage="标题不能为空" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="Content" runat="server" TextMode="MultiLine"></asp:TextBox>
          <script type="text/javascript">
		      //<![CDATA[
            // Replace the <textarea id="Content"> with an CKEditor instance.            

            var editor = CKEDITOR.replace('Content',
			      {
			        toolbar:
					    [
						    ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
						    ['UIColor']
					    ],
			        filebrowserBrowseUrl: '../../ckfinder/ckfinder.html', //启用浏览功能
			        filebrowserImageBrowseUrl: '../../ckfinder/ckfinder.html?Type=Images',
			        filebrowserFlashBrowseUrl: '../../ckfinder/ckfinder.html?Type=Flash',
			        filebrowserUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
			        filebrowserImageUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
			        filebrowserFlashUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
			      }
            );
		      //]]>
		      </script>
            </td>
        </tr>
        <tr>
            <td height="32" align="center">
                <asp:Button CssClass="button_blue" ID="btnAdd" runat="server" Text="回复" onclick="btnAdd_Click" />
                <input type="button" class="button_gray" onclick="javascript:history.back();" value="返 回" />
            </td>
        </tr>
    </table>
        
    </div>
    </form>
</body>
</html>
