<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dairy_add.aspx.cs" EnableEventValidation="false" validateRequest="false" Inherits="wormadmin_add_dairy" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!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 runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>添加日记</title>
	<link rel="stylesheet" href="css/content.css" type="text/css" />
</head>
<body text="#00ff33">
    <form id="form1" runat="server">
    <div>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td colspan="4"><table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
            <tr>
              <td width="160" bgcolor="#67B2E9" ><div align="right">日记标题：</div></td>
              <td width="586" bgcolor="#67B2E9" style="padding-left:10px"><asp:TextBox ID="tbtitle" runat="server" BackColor="White" BorderColor="Silver"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbtitle"
                      ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
            </tr>
          </table>
            <table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
              <tr>
                <td width="160" ><div align="right">日记分类：</div></td>
                <td width="586"  style="padding-left:10px"><asp:DropDownList ID="ddclass" runat="server"> </asp:DropDownList></td>
              </tr>
            </table>
            <table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
              <tr>
                <td width="160" bgcolor="#67B2E9" ><div align="right">简略内容：</div></td>
                <td width="586" bgcolor="#67B2E9"  style="padding-left:10px"><asp:TextBox ID="tbbriefly" runat="server" BackColor="White" BorderColor="Silver" Width="468px"></asp:TextBox></td>
              </tr>
            </table>
            <table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
              <tr>
                <td width="160" bgcolor="#67B2E9" ><div align="right">日记置顶：</div></td>
                <td width="586" bgcolor="#67B2E9"  style="padding-left:10px">
                    <asp:CheckBox ID="cbtop" runat="server" /></td>
              </tr>
            </table>
            <table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
              <tr>
                <td width="160" bgcolor="#67B2E9" ><div align="right">点击数：</div></td>
                <td width="586" bgcolor="#67B2E9"  style="padding-left:10px"><asp:TextBox ID="tbbit" runat="server" BackColor="White" BorderColor="Silver"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbbit"
                        ErrorMessage="RequiredFieldValidator" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbbit"
                        ErrorMessage="RegularExpressionValidator" ValidationExpression="^\d+$">请输入数字</asp:RegularExpressionValidator></td>
              </tr>
            </table>
            <table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
              <tr>
                <td width="160" bgcolor="#67B2E9" ><div align="right">发布日期：</div></td>
                <td width="586" bgcolor="#67B2E9"  style="padding-left:10px">
                    <asp:Label ID="lbtimes" runat="server"></asp:Label></td>
              </tr>
            </table>
            <table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
              <tr>
                <td width="160" bgcolor="#67B2E9" ><div align="right">发布人：</div></td>
                <td width="586" bgcolor="#67B2E9"  style="padding-left:10px"><asp:TextBox ID="tbwriter" runat="server" BackColor="White" BorderColor="Silver"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbwriter"
                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
              </tr>
            </table>
            <table width="760" border="0" cellpadding="2" cellspacing="2"  class="title">
              <tr>
                <td width="160" bgcolor="#67B2E9" ><div align="right">日记内容：</div></td>
                <td width="586" bgcolor="#67B2E9"  style="padding-left:10px"><fckeditorv2:fckeditor id="FCKeditor1" runat="server" basepath="fckeditor/" Height="400px">&nbsp;</fckeditorv2:fckeditor>                </td>
              </tr>
            </table>		  </td>
        </tr>
        <tr>
          <td width="165" style="height: 21px">&nbsp;</td>
          <td width="101" style="height: 21px"><asp:Button ID="Button1" runat="server" Text="提  交" SkinID="blue" OnClick="Button1_Click"/></td>
          <td width="95" style="height: 21px">&nbsp;</td>
          <td width="399" style="height: 21px"><asp:Button ID="Button2" runat="server" Text="重  置" SkinID="blue"/></td>
        </tr>
      </table>
      <br />

      </div>
    </form>
</body>
</html>
