<%@ Page Language="C#" AutoEventWireup="true" Codebehind="edit.aspx.cs" Inherits="JuSNS.Web.user.blog.edit" ValidateRequest="false" EnableEventValidation="false" %>

<!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>
<title id="ptitle" runat="server">写新日志</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<script type="text/javascript" src="../../inc/editor/fckeditor.js"></script>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
<!--头部-->
<%=this.GetHtmlShort()%>
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
    <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                 <!--主题内容中-->    
                 
                    <div class="body_frame_otherinfo">
                    
	                        <div class="title">
                                <div class="l"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/blog.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">博客日志</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
                            
                            <div class="nav-menu">
                                <ul>
                                    <li ><a href="../blog">好友的日志</a></li>
                                     <li ><a href="../blog/?r=my">我的日志</a></li>
                                     <li ><a href="../blog/?r=all">所有日志</a></li>
                                     <li style="display:none;"><a href="../blog/?r=about">提到过我的日志</a></li>                                 
                                     <li class="current"><%=isEdit %></li>                                 
                                 </ul>
                            </div>                                    
                     </div>                 
                <div class="body_sec_all">
                    <form id="form1" runat="server"> 
                    <div runat="server" id="DivError" class="msg-error">日志标题和内容不能同时为空</div>
                    <div class="msg-succ" runat="server" id="DivDS"> 保存成功，<a href="draft.aspx">返回草稿箱</a></div>
                    <div class="content font14 bold">
                         <asp:Literal runat="server" ID="LtrCaption"></asp:Literal>
                    </div>
                    <div class="line1"></div>
                    <div class="content">
                          <label class="f-label">标题</label><asp:TextBox runat="server" ID="TxtTitle" MaxLength="30" Width="87%" CssClass="f-text"></asp:TextBox>
                    </div>
                    
                    <div class="content">
                        <label class="f-label">正文</label>
                                <script type="text/javascript" language="javascript">
                                    window.onload = function()
                                    {
                                        var sBasePath = "../../inc/editor/"
                                        var oFCKeditor = new FCKeditor('TxtContent') ;
                                        oFCKeditor.BasePath	= sBasePath ;
                                        oFCKeditor.Width = '88%' ;
                                        oFCKeditor.ToolbarSet = 'Basic';
                                        oFCKeditor.Height = '350' ;	
                                        oFCKeditor.ReplaceTextarea();
                                    }
                                 </script>
                                <textarea runat="server" rows="10" name="TxtContent" class="f-text" id="TxtContent" style="width: 350px; height: 200px;display:none;"></textarea>
                    </div>
                    
                    
                    <div class="content">
                          <label class="f-label">隐私</label>
                          <asp:DropDownList runat="server" ID="DdlPrvcy"></asp:DropDownList>
                    </div> 
                    
                    <div class="content" style="display:none;">
                          <label class="f-label">相关朋友</label>
                           
                    </div> 
                    
                    
                    <div class="content pstr">
                        <label class="f-label">&nbsp;</label>
                        <asp:HiddenField runat="server" ID="HidBlogId" />
                        <asp:HiddenField runat="server" ID="HidIsDraft" Value="0" />
                        <asp:HiddenField runat="server" ID="calid" Value="0" />
                        <asp:Button runat="server" Text="保存日志" CssClass="f-button" ID="BtnSave" OnClick="BtnSave_Click" />
                        <asp:Button runat="server" Text="保存为草稿" CssClass="f-button f-alt" ID="BtnDraft" Visible="false" OnClick="BtnDraft_Click" />
                        <asp:Button runat="server" Text="删除" CssClass="f-button f-alt" ID="BtnDel" OnClick="BtnDel_Click" />
                        <input type="reset" class="f-button f-alt" name="discard" value="取消" />
                    </div>                   
                 </form> 
                 <div class="spline"></div>
            </div> 
            </div>
           <!--底部-->
         <div class="divbottom">
          <%=this.GetHtmlFoot()%>
          </div>
      </div> 
   </div>
</div>       
      
</body>
</html>