<%@ Page Language="C#" MasterPageFile="~/Manage/main.Master" AutoEventWireup="true" ValidateRequest="false" CodeBehind="PicEdit.aspx.cs" Inherits="EasySion.ERP.Web.admin.PicEdit" 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>
        <asp:HyperLink ID="PicLink" runat="server">添加图文</asp:HyperLink>
      </li>
      <li><a href="PicList.aspx<%=Request.Params["op"] == null ? "" : "?op=Hidden" %>">图文列表</a></li>
      <li><a href="PicEdit.aspx<%=Request.Params["op"] == null ? "" : "?op=Hidden" %>">图文编辑</a></li>
      <li><a href="PicClass.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">图文ID：</td>
        <td bgcolor="#FFFFFF"><asp:Label ID="ShowPicId" runat="server" ForeColor="Red"></asp:Label></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" class="mainContentLeftTd">所属分类：</td>
        <td bgcolor="#FFFFFF" class="mainContentRightTd">&nbsp;
          <asp:DropDownList ID="PicClassIdList" runat="server"> </asp:DropDownList>
          →<a href="PicClass.aspx">分类管理</a></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">图文标题：</td>
        <td bgcolor="#FFFFFF">&nbsp;
          <asp:TextBox ID="PicTitle" CssClass="adminput" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="PicTitle" Display="Dynamic" ErrorMessage="图文标题必须填写"></asp:RequiredFieldValidator></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" style="height: 20px">小图：</td>
        <td bgcolor="#FFFFFF" style="height: 20px">&nbsp;
          <asp:FileUpload ID="PicSmall" runat="server" style="width: 280px" />
          <asp:CustomValidator ID="PicSmallCustomValidator" runat="server" ControlToValidate="PicSmall" Display="Dynamic" ErrorMessage="小图文件格式错误" OnServerValidate="PicSmallCustomValidator_ServerValidate"></asp:CustomValidator>
          <asp:HyperLink ID="PicSmallHyperLink" runat="server" Target="_blank">原图</asp:HyperLink>
          <span class="explain">不修改留空</span> 引用路径：
          <asp:TextBox ID="TB_UrlSmall" runat="server" style="width: 280px" /></asp:TextBox></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">大图：</td>
        <td bgcolor="#FFFFFF">&nbsp;
          <asp:FileUpload ID="PicBig" runat="server" style="width: 280px" />
          <asp:CustomValidator ID="PicBigCustomValidator" runat="server" ControlToValidate="PicBig" Display="Dynamic" ErrorMessage="大图文件格式错误" OnServerValidate="PicBigCustomValidator_ServerValidate"></asp:CustomValidator>
          <asp:HyperLink ID="PicBigHyperLink" runat="server" Target="_blank">原图</asp:HyperLink>
          <span class="explain">不修改留空</span> 引用路径：
          <asp:TextBox ID="TB_UrlBig" runat="server" style="width: 280px" /></asp:TextBox></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">图文内容：</td>
        <td bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" align="left" bgcolor="#ffffff"><div class="mainNoLeftTd">
            <FCKeditorV2:FCKeditor ID="PicContent" runat="server" Height="450px" Width="100%"> </FCKeditorV2:FCKeditor>
          </div></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">内容摘要：</td>
        <td bgcolor="#FFFFFF">&nbsp;
          <asp:TextBox ID="PicShortContent" runat="server" Width="85%" Height="73px" TextMode="MultiLine"></asp:TextBox></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">添加关键字：</td>
        <td bgcolor="#FFFFFF">&nbsp;
          <asp:TextBox ID="tb_KeyWords" runat="server" MaxLength="25" CssClass="adminput"></asp:TextBox> 用“,”分隔</td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">添加时间：</td>
        <td bgcolor="#FFFFFF">&nbsp;
          <asp:TextBox ID="AddTime" runat="server"></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" style="height: 20px"></td>
        <td bgcolor="#FFFFFF" style="height: 20px">&nbsp;
          <asp:Button ID="Edit" runat="server" Text="编辑图文" CssClass="inputBt" OnClick="Edit_Click" /></td>
      </tr>
    </table>
  </div>
  <script language="JavaScript" type="text/javascript">
	var op=location.search;
	if(op.toLowerCase().indexOf("hidden")>-1)
	{
	topMenuThisPage(2);
	}
	else
	{
	topMenuThisPage(1);
	}
	contentSubMenuThisPage();
	mainMenuThisPage(3);
  </script>
</asp:Content>