AddNews.aspx
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:3k
源码类别:

Email客户端

开发平台:

Visual C++

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddNews.aspx.cs" Inherits="AddNews" validateRequest="false" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>添加新闻</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <div>
  10.       <table width="100%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#666666" bordercolordark="#FFFFFF">
  11.     <tr bgcolor="#CCCCCC">
  12.       <td colspan="2" align="center"><span style="font-size: 12pt; color: #0000ff; font-family: 黑体">添加新闻信息</span></td>
  13.     </tr>
  14.     <tr>
  15.       <td colspan="2"></td>
  16.     </tr>
  17.     <tr>
  18.       <td width="10%">标题:</td>
  19.       <td width="90%"><asp:TextBox ID="biaoti" Width="250px" runat="server" /></td>
  20.     </tr>
  21.     <tr>
  22.       <td width="10%">摘自:</td>
  23.       <td width="80%"><asp:TextBox ID="zhaizi" runat="server" Width="250px" /></td>
  24.     </tr>
  25.     <tr>
  26.       <td width="10%">分类:</td>
  27.       <td width="80%">
  28.         <asp:DropDownList ID="DdlClass" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DdlClass_SelectedIndexChanged">
  29.         </asp:DropDownList></td>
  30.     </tr>
  31.     <tr>
  32.       <td width="10%">
  33.         图片:</td>
  34.       <td width="80%">
  35.         <asp:FileUpload ID="myFile" runat="server" Width="250px" />&nbsp;
  36.         <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="上传" />&nbsp;缩略图
  37.         <asp:Image ID="Img" runat="server" Height="50px" Width="50px" /></td>
  38.     </tr>
  39.     <tr>
  40.       <td width="10%">
  41.         内容:</td>
  42.       <td width="80%" style="vertical-align: top">
  43.         <asp:TextBox ID="content" Style="display: none" runat="server" TextMode="MultiLine"
  44.           Width="80%" />
  45.         <script language="JavaScript" type="text/javascript" src="editor/editor.js"></script>
  46.         <script language="javascript">createEditor('test','content','600px','300px');</script>
  47.         <span style="color: #ff3399">这种编辑工具还不完善,不能直接将Word文档Copy进去,否则出错!</span></td>
  48.     </tr>
  49.     <tr>
  50.       <td colspan="2">
  51.       </td>
  52.     </tr>
  53.     <tr>
  54.       <td colspan="2">
  55.         <div align="center">
  56.           <asp:Button ID="submit" OnClick="submit_Click" runat="server" Text="提交"></asp:Button>
  57.           <asp:Button ID="reset" OnClick="reset_Click" runat="server" Text="取消"></asp:Button>
  58.         </div>
  59.       </td>
  60.     </tr>
  61.   </table>
  62.   <p align="center">
  63.     <asp:Label ID="Label1" runat="server" />
  64.     <asp:HyperLink ID="HyperLink1" NavigateUrl="~/NewsDefault.aspx" runat="server">浏览新闻</asp:HyperLink>
  65.     </div>
  66.     </form>
  67. </body>
  68. </html>