<%@ Page Language="C#" MasterPageFile="~/Manage/main.Master" AutoEventWireup="true" ValidateRequest="false" CodeBehind="Article.aspx.cs" Inherits="EasySion.ERP.Web.admin.Article" Title="无标题页" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register TagPrefix="uc" TagName="ContentChannel" Src="~/Manage/ContentChannel.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" runat="Server">
  <uc:ContentChannel ID="ContentChannel" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" runat="Server">
  <div id="mainMenu">
    <ul>
      <li><a href="#">添加文章</a></li>
      <li><a href="ArticleList.aspx<%=Request.Params["op"] == null ? "" : "?op=Hidden" %>">管理文章</a></li>
      <li><a href="ArticleEdit.aspx<%=Request.Params["op"] == null ? "" : "?op=Hidden" %>">分类管理</a></li>
    </ul>
  </div>
  <div id="main">
  <asp:Label ID="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
  <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D7D7D7">
    <tr>
      <td colspan="2" bgcolor="#FFFFFF" class="mainTitle">“<asp:Label ID="MenuName" runat="server" ForeColor="Black"></asp:Label>”添加文章</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF" class="mainContentLeftTd">所属分类：</td>
      <td bgcolor="#FFFFFF" class="mainContentRightTd"><asp:DropDownList ID="ArticleClassIdList" runat="server"></asp:DropDownList>
        →<a href="ArticleClass.aspx">分类管理</a></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">文章标题：</td>
      <td bgcolor="#FFFFFF"><asp:TextBox ID="ArticleTitle" CssClass="adminput" runat="server" style="width: 350px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ArticleTitle" Display="Dynamic" ErrorMessage="文章标题必须填写"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">文章内容：</td>
      <td bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" align="left" bgcolor="#ffffff">&nbsp;
        <FCKeditorV2:FCKeditor ID="ArticleContent" runat="server" Height="450px" Width="100%"></FCKeditorV2:FCKeditor></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF" style="height: 46px">文章简介：</td>
      <td bgcolor="#FFFFFF" style="height: 46px"><asp:TextBox ID="Intro" runat="server" Height="73px" TextMode="MultiLine" Width="85%"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">添加关键字：</td>
      <td bgcolor="#FFFFFF"><asp:TextBox ID="tb_KeyWords" runat="server" CssClass="adminput"></asp:TextBox> 用“,”分隔</td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">文章编辑：</td>
      <td bgcolor="#FFFFFF"><asp:TextBox ID="Author" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Author" Display="Dynamic" ErrorMessage="文章编辑必须填写"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">添加时间：</td>
      <td bgcolor="#FFFFFF"><asp:TextBox ID="AddTime" runat="server" MaxLength="25"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="AddTime" Display="Dynamic" ErrorMessage="添加时间必须填写"></asp:RequiredFieldValidator>
        <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="AddTime" Display="Dynamic" ErrorMessage="时间格式错误！" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">是否置顶：</td>
      <td bgcolor="#FFFFFF"><asp:RadioButtonList ID="rbl_IsTop" runat="server" RepeatDirection="Horizontal">
          <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
          <asp:ListItem Value="1">是</asp:ListItem>
        </asp:RadioButtonList></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">是否醒目：</td>
      <td bgcolor="#FFFFFF"><asp:RadioButtonList ID="rbl_IsNew" runat="server" RepeatDirection="Horizontal">
          <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
          <asp:ListItem Value="1">是</asp:ListItem>
        </asp:RadioButtonList></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF" style="height: 20px"></td>
      <td bgcolor="#FFFFFF" style="height: 20px">&nbsp;
        <asp:Button ID="Add" runat="server" Text="保存" CssClass="inputBt" OnClick="Add_Click" />
        <asp:Button ID="Insert" runat="server" Text="插入页" CssClass="inputBt" OnClick="Insert_Click" /></td>
    </tr>
  </table>
  <script language="JavaScript" type="text/javascript">
	var op=location.search;
	if(op.toLowerCase().indexOf("hidden")>-1)
	{
	topMenuThisPage(2);
	}
	else
	{
	topMenuThisPage(1);
	}
	contentMenuThisPage();
	mainMenuThisPage(1);
  </script>
</asp:Content>