<%@ Page Language="C#" ValidateRequest="false" EnableEventValidation="false" AutoEventWireup="true" CodeFile="Edit_New.aspx.cs" Inherits="admin_Edit_New" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!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">
    <title>无标题页</title>
    <script language="javascript" type="text/javascript" src="images/js/Common.js"></script>
    <script language="javascript" type="text/javascript" src="images/js/BLL.js"></script>
    <link href="images/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="tableBorder" width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
          <tr>
              <td colspan="2" style="font-size:14px; color:#d6dff7; font-weight:bold;" class="tableHeaderText" height="25px">
                  &nbsp;&nbsp;&nbsp;&nbsp;修改新闻</td>
            </tr>
          <tr > 
            <td width="15%" align="right" class="forumRow">选择分类：</td>
            <td width="85%" class="forumRow"> &nbsp;&nbsp; 一级类别：&nbsp;<asp:dropdownlist ID="ddl1" runat="server">
                </asp:dropdownlist>
                &nbsp;
                &nbsp;&nbsp;
                二级类别：<asp:dropdownlist ID="ddl2" runat="server">
                </asp:dropdownlist>&nbsp;
            </td>
          </tr>
          <tr > 
            <td align="right" class="forumRow">
                新闻标题：</td>
            <td class="forumRow">
             &nbsp;&nbsp; <asp:TextBox ID="Tb_Title" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="productnameTbRFv" runat="server" Display="dynamic" ControlToValidate="Tb_Title" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr > 
            <td align="right" class="forumRow">
                关 键 字：
            </td>
            <td class="forumRow"> &nbsp;&nbsp; 
                <asp:textbox ID="Tb_keywords" runat="server">关键字</asp:textbox><asp:requiredfieldvalidator
                    ID="Rfv_keywords" runat="server" ControlToValidate="Tb_keywords" Display="dynamic"
                    ErrorMessage="*"></asp:requiredfieldvalidator></td>
          </tr>
          <tr > 
            <td class="forumRow" align="right">
                新闻库存：
            </td>
            <td class="forumRow"> &nbsp;&nbsp; 新闻作者:<asp:textbox ID="Tb_author" runat="server">作者</asp:textbox>
                &nbsp;&nbsp; 新闻来源:<asp:textbox ID="Tb_source" runat="server">出处</asp:textbox></td>
          </tr>
          <tr > 
            <td class="forumRow" align="right">
                新闻图片：
            </td>
            <td class="forumRow"> 
                <asp:Image runat="server" ID="newpic" Width="200px" Height="180px" /><br />
                 <asp:HyperLink runat="server" ID="uppic" Text="编辑图片"></asp:HyperLink>   
            </td>
          </tr>
          <tr > 
            <td class="forumRow" align="right" valign="top"> 详细内容：</td>
            <td class="forumRow">    
            </td>
          </tr>
          <tr><td class="forumRow" colspan="2">
          <FTB:FreeTextBox ID="FreeTextBox1" runat="server" ButtonPath="../images/ftb/office2003/" ImageGalleryPath="images/uploadfiles" Width="100%">
        </FTB:FreeTextBox>
          </td></tr>
          <tr > 
            <td colspan="2"><font color="ff0000">上传图片的 <strong>最大 </strong>宽度不能超过 550 像素，在不影响网速的情况下建议上传图片大小在 
              100KB 以内。 </font></td>
          </tr>
          <tr > 
            <td class="forumRow"></td>
            <td class="forumRow">
                &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;
                <asp:textbox ID="Tb_click" runat="server">50</asp:textbox><asp:requiredfieldvalidator
                    ID="countTbRFV" runat="server" ControlToValidate="Tb_click" Display="dynamic"
                    ErrorMessage="*"></asp:requiredfieldvalidator><asp:regularexpressionvalidator ID="countTbREV"
                        runat="server" ControlToValidate="Tb_click" Display="dynamic" ErrorMessage="请输入数字"
                        ValidationExpression="^[0-9]*[1-9][0-9]*$"></asp:regularexpressionvalidator></td>
          </tr>
          <tr > 
            <td class="forumRow"></td>
            <td class="forumRow" height="30"> 
                <asp:Button ID="submitBt" runat="server" Text="提交保存" OnClick="submitBt_Click" />
                <input value="重新填写" type="button" />
                <asp:hiddenfield ID="imagepath" runat="server" />
                <asp:hiddenfield ID="HF1" runat="server" />
            </td>
          </tr>
          <tr > 
            <td align="right" valign="top" class="forumRow"> 新闻概要：</td>
            <td class="forumRow">
            
            </td>
          </tr>
          <tr>
          <td colspan="2">
          <FTB:FreeTextBox ID="FreeTextBox2" runat="server" ButtonPath="../images/ftb/office2003/" ImageGalleryPath="images/uploadfiles" Width="100%">
        </FTB:FreeTextBox>
          </td>
          </tr>
          <tr > 
            <td colspan="2" class="forumRow"><font color="ff0000">上传图片的 <strong>最大 </strong>宽度不能超过 550 像素，在不影响网速的情况下建议上传图片大小在 
              100KB 以内。 </font></td>
          </tr>
          <tr>
              <td colspan="2"class="tableHeaderText" height="25px">
              </td>
            </tr>
        </table>
    </form>
</body>
</html>
