<%@ Page Language="C#" MasterPageFile="../BloggerAdmin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blogger.Admin.Article.Post_ArticleEdit" Codebehind="Post_ArticleEdit.aspx.cs" %>
<%@ Register Src="~/UserControl/HtmlEditor.ascx" TagName="Editor" TagPrefix="uc1" %>
<%@ Register Src="~/UserControl/Upload.ascx" TagName="Upload" TagPrefix="uc2" %>
<asp:Content ID="MyHead" ContentPlaceHolderID="phHead" runat="Server">
<style type="text/css">
#ContentBody #Sidebar
{
    width:200px;
    float:right;
    overflow:hidden;
    clear:both;
}

#ContentBody #MainContent
{
    float:left;
    clear:both;
    width:720px;
}
</style>
</asp:Content>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMainAdmin" Runat="Server">
<form id="MainForm" runat="server">
<div id="ContentTitle" style=""><%=MyTitle %></div>
<div id="ContentBody" style="clear:both;">

<div id="MainContent">

    <fieldset class="ContentBox">
    <div class="ContentBox_Head" onclick="BoxSwitch('mcBody','siBody','/Blogger/Admin/Images/Box_')"><div style="float:left;">文章内容：</div><div id="siBody" class="SwitchIcon_Up"></div></div> 
    <div class="ContentBox_ContentBox" id="mcBody">
        <div class="ContentBox_ContentItem">
            文章标题：<asp:TextBox ID="tbTitle" runat="server" Width="270px"></asp:TextBox><asp:CheckBox ID="cbxIsOriginal" runat="server" Text="原创" /> <asp:CheckBox ID="cbxLockTop" runat="server" Text="固顶" />
            <br />
            文章分类：<asp:DropDownList ID="ddlCategory" runat="server"></asp:DropDownList>  系统频道：<asp:DropDownList ID="ddlChannel" runat="server"></asp:DropDownList>
            <br />
            <div style="height:320px;"><uc1:Editor ID="MyEditor" runat="server" /></div>
        </div>
    </div>
	</fieldset>
	<br />
	
	<div style="width:96%; text-align:right; margin:0px 20px 0px 0px">
    <asp:Button ID="btSave" runat="server" Text="保存编辑" OnClick="btSave_Click" CssClass="SubmitButton" /><br />
    <br />
    </div>
    <br />
    
    <fieldset class="ContentBox">
    <div class="ContentBox_Head" onclick="BoxSwitch('mcUpload','siUpload','/Blogger/Admin/Images/Box_')"><div style="float:left;">文件上传：</div><div id="siUpload" class="SwitchIcon_Up"></div></div>
    <div class="ContentBox_ContentBox" id="mcUpload">
        <div class="ContentBox_ContentItem">
        <uc2:Upload ID="Upload1" runat="server" />
        </div>
    </div>
	</fieldset>
	<br />
	
	<fieldset class="ContentBox">
	<div class="ContentBox_Head" onclick="BoxSwitch('mcExcerpt','siExcerpt','/Blogger/Admin/Images/Box_')"><div style="float:left;">文章摘要：</div><div id="siExcerpt" class="SwitchIcon_Down"></div></div>
    <div class="ContentBox_ContentBox" id="mcExcerpt" style="display:none;">
        <div class="ContentBox_ContentItem">
        <asp:TextBox ID="tbExcerpt" runat="server" TextMode="MultiLine" Height="68px" Width="100%"></asp:TextBox>
        </div>
    </div>
	</fieldset>
	<br />
	
	<fieldset class="ContentBox">
	<div class="ContentBox_Head" onclick="BoxSwitch('mcTag','siTag','/Blogger/Admin/Images/Box_')"><div style="float:left;">Tag标签：</div><div class="SwitchIcon_Down"></div></div>
    <div class="ContentBox_ContentBox" id="mcTag" style="display:none;">
        <div class="ContentBox_ContentItem">
        <asp:TextBox ID="tbTag" runat="server" Width="60%"></asp:TextBox> 多个标签请用","符号隔开
        </div>
    </div>
	</fieldset>
	<br />
	
	<fieldset class="ContentBox">
	<div class="ContentBox_Head" onclick="BoxSwitch('mcSource','siSource','/Blogger/Admin/Images/Box_')"><div style="float:left;">文章来源：</div><div id="siSource" class="SwitchIcon_Down"></div></div>
    <div class="ContentBox_ContentBox" id="mcSource" style="display:none;">
        <div class="ContentBox_ContentItem">
            来源名称：<asp:TextBox ID="tbSourceName" runat="server" Width="200"></asp:TextBox>
            <br />
            来源地址：<asp:TextBox ID="tbSourceUrl" runat="server" Width="200"></asp:TextBox>
        </div>
    </div>
	</fieldset>
	<br />
	
	<fieldset class="ContentBox">
	<div class="ContentBox_Head" onclick="BoxSwitch('mcTrackback','siTrackback','/Blogger/Admin/Images/Box_')"><div style="float:left;">Trackback：</div><div id="siTrackback" class="SwitchIcon_Down"></div></div>
    <div class="ContentBox_ContentBox" id="mcTrackback" style="display:none;">
        <div class="ContentBox_ContentItem">
        目标地址：<asp:TextBox ID="tbPingTarget" runat="server" Width="60%"></asp:TextBox> 多个地址请用","符号隔开
        <br />
        <asp:CheckBox ID="cbxAutoPing" runat="server" Text="自动Ping内容中出现的地址" />(这样做会导致发表速度减慢，请慎用)
        </div>
    </div>
	</fieldset>
	
</div>

<div id="Sidebar">
    <fieldset class="SideBox">
    <div class="SideBox_Head" onclick="BoxSwitch('ccb_CommentState','si_CommentState','/Blogger/Admin/Images/Box_')"><div style="float:left;">讨论</div><div id="si_CommentState" class="SwitchIcon_Up"></div></div>
    <div class="SideBox_ContentBox" id="ccb_CommentState">
        <div class="SideBox_ContentItem"><asp:CheckBox ID="cbxCommentStatus" runat="server" Text="允许评论" Checked="True" /></div>
        <div class="SideBox_ContentItem"><asp:CheckBox ID="cbxPingStatus" runat="server" Text="允许Ping" Checked="True" /></div>
    </div>
	</fieldset>
    
    <br />    
    <fieldset class="SideBox">
    <div class="SideBox_Head" onclick="BoxSwitch('ccb_Password','si_Password','/Blogger/Admin/Images/Box_')"><div style="float:left;">密码保护文章</div><div id="si_Password" class="SwitchIcon_Down"></div></div>
    <div class="SideBox_ContentBox" id="ccb_Password" style="display:none;">
        <div class="SideBox_ContentItem"><asp:TextBox ID="tbPassword" runat="server" Width="146px" TextMode="Password"></asp:TextBox></div>
    </div>
	</fieldset>
    
    <br />    
    <fieldset class="SideBox">
    <div class="SideBox_Head" onclick="BoxSwitch('ccb_Name','si_Name','/Blogger/Admin/Images/Box_')"><div style="float:left;">文章缩略名</div><div id="si_Name" class="SwitchIcon_Down"></div></div>
    <div class="SideBox_ContentBox" id="ccb_Name" style="display:none;">
        <div class="SideBox_ContentItem"><asp:TextBox ID="tbName" runat="server" Width="146px"></asp:TextBox></div>
    </div>
	</fieldset>
    
    <br />    
    <fieldset class="SideBox">
    <div class="SideBox_Head" onclick="BoxSwitch('ccb_PostState','si_PostState','/Blogger/Admin/Images/Box_')"><div style="float:left;">文章状态</div><div id="si_PostState" class="SwitchIcon_Down"></div></div>
    <div class="SideBox_ContentBox" id="ccb_PostState" style="display:none;">
        <div class="SideBox_ContentItem">
        <asp:RadioButtonList ID="rblPostState" runat="server">
            <asp:ListItem Value="1" Selected="True">公开发表</asp:ListItem>
            <asp:ListItem Value="2">会员可见</asp:ListItem>
            <asp:ListItem Value="4">私人</asp:ListItem>
            <asp:ListItem Value="5">草稿</asp:ListItem>
        </asp:RadioButtonList>
        </div>
    </div>
	</fieldset>
	
	    <br />    
    <fieldset class="SideBox">
    <div class="SideBox_Head" onclick="BoxSwitch('ccb_PostTime','si_PostTime','/Blogger/Admin/Images/Box_')"><div style="float:left;">发表时间</div><div id="si_PostTime" class="SwitchIcon_Down"></div></div>
    <div class="SideBox_ContentBox" id="ccb_PostTime" style="display:none;">
    <div class="SideBox_ContentItem"><asp:DropDownList ID="ddlPostYear" runat="server"></asp:DropDownList>.<asp:DropDownList ID="ddlPostMonth" runat="server"></asp:DropDownList>.<asp:DropDownList ID="ddlPostDay" runat="server"></asp:DropDownList></div>
    <div class="SideBox_ContentItem"><asp:DropDownList ID="ddlPostHours" runat="server"></asp:DropDownList>:<asp:DropDownList ID="ddlPostMinutes" runat="server"></asp:DropDownList>:<asp:DropDownList ID="ddlPostSeconds" runat="server"></asp:DropDownList></div>
    </div>
	</fieldset>
	
</div>

</div>
<div id="ContentBottom"></div>
</form>
</asp:Content>

