<%@ page language="C#" autoeventwireup="true" inherits="message.message_Details, LebiMall" enableeventvalidation="false" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=model_t.Title %></title>
    <meta name="description" content=<%=model_t.Description %> />
    <meta name="keywords" content=<%=model_t.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="../images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/css2.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/css.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/ie6.css" rel="stylesheet" type="text/css" />
    <link href="../images/css/ie7.css" rel="stylesheet" type="text/css" />
    <link href="css/newcss.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(../images/css/ie6.css); /* ]]> */</style><![endif]-->
    <!--[if gte IE 7]><STYLE type=text/css media=screen>@import url(../images/css/ie7.css);</STYLE><![endif]-->
    <script type="text/javascript" src="../images/js/shopjs.js"></script>
    <script type="text/javascript">
       function validate(){
            if(document.getElementById("hide_Friends").value == ""){
                alert("请选择收件人");
                return false;
            }
            if(document.getElementById("txtContent").value == ""){
                alert("请至少填写消息内容");
                return false;
            }
            return true;
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select2").value;
            window.location="../list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>

</head>
<body>
    <form id="Form1" runat="server" action="../WebAdmin/AdminLogin.aspx">
        
     <div id="top-menu02">
        <div id="top-menu">
            <div class="right">
                <script type="text/javascript">indexhead();</script>
            </div>
        </div>
    </div>
    <div id="top">
        <div id="logo">
            <a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">
                <img src="../Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
        <ul>
           <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.Tab == "1"){ %>
                <a href="../<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="../TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/News/" target="_blank">资讯</a></li>
            <li><a href="/News/">资讯</a></li>
        </ul>
        <p>
            <span><a href="../ShopCoupon.aspx">优惠券</a></span></p>
    </div>
        <div id="contenter2">
            <div id="contenter">

                <script type="text/javascript">
                    shopLeft();
                </script>

                <div id="right">
                    <div class="contenter">
                        <div class="nav-tabs">
                            <ul class="tabs">
                                <li <%if(id!=""){ %> class="selected" <%} %>><a href="Default.aspx">系统消息</a> </li>
                            </ul>
                            <ul class="tabs">
                                <li <%if(fid!=""){ %> class="selected" <%} %>><a href="SendMsgBox.aspx">发信箱</a> </li>
                            </ul>
                            <ul class="tabs">
                                <li><a href="WriteMsg.aspx" >发送消息</a> </li>
                            </ul>
                        </div>
                        <div class="new-all-right">
                            <div class="new-all-title">
                                <div class="left">
                                    消息主题：</div>
                                <div style="font-size: 12px; font-weight: normal;">
                                    <%=msg.Mtitle %>
                                </div>
                            </div>
                            <div class="new-all-cont">
                                <div class="left">
                                    消息内容：</div>
                                <div>
                                    <%=msg.Mcontent %>
                                </div>
                            </div>
                            <% if (fid == "" && id != "")
                               { 
                            %>
                            <div style="padding: 20px 0;">
                                <h3>
                                    您可以在这里进行回复操作：</h3>
                                <form>
                                    <input type="hidden" value="<%=msg.FromUserId %>" id="hide_Friends" name="reveiveUsers" />
                                    <div style="padding-top: 10px">
                                        消息标题：<input class="input" type="text" value="[回复：<%=msg.Mtitle %>]" id="txtTitle" size="45" name="title" />
                                    </div>
                                    <div style="padding-top: 10px">
                                        消息内容：<textarea cols="60" rows="10" name="content" id="txtContent" runat="server"></textarea></div>
                                    <div style="padding-left: 200px; padding-top: 10px;">
                                        <input type="submit" onclick="return validate();" class="btn_submit" runat="server" value="发 &nbsp; 送"
                                            style="width: 100px" id="Submit1" onserverclick="Submit1_ServerClick" />
                                        <input type="reset" value="重 &nbsp; 置" style="width: 100px" class="btn_cancel" />
                                    </div>
                                </form>
                            </div>
                            <%} %>
                            <div class="new-all-del">
                                <a href="Delete.aspx?ids=<%=msg.Mid %>&url=Default.aspx">删除</a></div>
                        </div>
                    </div>
                </div>
                <div class="both">
                </div>
                <div class="both">
                </div>
                <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select2" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="../images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
                <div class="copyright" runat="server" id="copr"></div>
            </div>
        </div>
    </form>
</body>
</html>
