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

Email客户端

开发平台:

Visual C++

  1. <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="Notice.aspx.cs" Inherits="Module_Admin_SysInfo_AddNotice" %>
  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 style=" text-align: center; background-image: url(../../Images/SysSkin/notice.jpg); background-repeat: no-repeat;">
  8.     <form id="form1" runat="server">
  9.         <br />
  10.         <br />
  11.         <table style="width="605">
  12.             <tr>
  13.                 <td colspan="3" style="height: 21px">
  14.                     <asp:Panel ID="Panel2" runat="server" Height="50px" Width="125px">
  15.                         <table cellpadding="0" cellspacing="0" style="height: 113px" width="605">
  16.                             <tr>
  17.                                 <td colspan="3">
  18.                                     <table cellpadding="0" cellspacing="0" style="width: 600px">
  19.                                         <tr>
  20.                                             <td style="width: 100px; height: 23px">
  21.                                                 <span style="font-size: 9pt">查找类别</span></td>
  22.                                             <td style="width: 120px; height: 23px; text-align: left">
  23.                                                 <asp:DropDownList ID="dropClass" runat="server" Font-Size="9pt" Width="120px">
  24.                                                     <asp:ListItem>公告ID</asp:ListItem>
  25.                                                     <asp:ListItem>公告主题</asp:ListItem>
  26.                                                     <asp:ListItem>发表人</asp:ListItem>
  27.                                                 </asp:DropDownList></td>
  28.                                             <td style="width: 100px; height: 23px">
  29.                                                 <span style="font-size: 9pt">关键字</span></td>
  30.                                             <td style="width: 120px; height: 23px; text-align: left">
  31.                                                 <asp:TextBox ID="txtKeyWord" runat="server" Font-Size="9pt" Width="120px"></asp:TextBox></td>
  32.                                             <td style="width: 24px; height: 23px">
  33.                                                 <asp:Button ID="btnFind" runat="server" Font-Size="9pt" OnClick="btnFind_Click" Text="查找" /></td>
  34.                                             <td style="width: 110px; height: 23px">
  35.                                                 <asp:LinkButton ID="lnkbtnAdd" runat="server" Font-Size="9pt" Font-Underline="False"
  36.                                                     ForeColor="#FF3333" OnClick="lnkbtnAdd_Click1" Visible="False">添加新公告</asp:LinkButton></td>
  37.                                         </tr>
  38.                                     </table>
  39.                                 </td>
  40.                             </tr>
  41.                             <tr>
  42.                                 <td colspan="3" style="vertical-align: top; text-align: center">
  43.                                     &nbsp;</td>
  44.                             </tr>
  45.                         </table>
  46.                     </asp:Panel>
  47.                     <asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="125px">
  48.         <table cellpadding="0" cellspacing="0" style=" height: 256px; width: 538px;">
  49.             <tr>
  50.                 <td style="width: 5963px; height: 22px">
  51.                     <span style="font-size: 9pt">公告主题</span></td>
  52.                 <td colspan="1" style="width: 477px; height: 22px; text-align: left">
  53.                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
  54.                         ControlToValidate="txtSubject" ErrorMessage="主题不能为空">*</asp:RequiredFieldValidator>
  55.                 </td>
  56.             </tr>
  57.             <tr style="color: #000000">
  58.                 <td colspan="2" style="height: 110px">
  59.                     <asp:TextBox ID="txtContent" runat="server" Height="191px" TextMode="MultiLine" 
  60.                         Width="411px"></asp:TextBox>
  61.                 </td>
  62.             </tr>
  63.             <tr style="color: #000000">
  64.                 <td colspan="2" style=" height: 44px; ">
  65.                     &nbsp;<asp:Button ID="btnOK" runat="server" Font-Size="9pt" OnClick="btnOK_Click" 
  66.                         Text="提交" />
  67.                     &nbsp;<br />
  68.                     <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="9pt" 
  69.                         ShowMessageBox="True" ShowSummary="False" />
  70.                 </td>
  71.             </tr>
  72.         </table>
  73.                     </asp:Panel>
  74.                 </td>
  75.             </tr>
  76.             </table>
  77.                                     <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
  78.                                         Font-Size="9pt" OnPageIndexChanging="GridView1_PageIndexChanging" Width="100%">
  79.                                         <Columns>
  80.                                             <asp:BoundField DataField="ID" HeaderText="公告ID" />
  81.                                             <asp:BoundField DataField="NoticeTitle" HeaderText="公告主题" />
  82.                                             <asp:BoundField DataField="NoticeTime" HeaderText="发表时间" />
  83.                                             <asp:BoundField DataField="NoticePerson" HeaderText="发表人" />
  84.                                             <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="NoticeInfo.aspx?ID={0}"
  85.                                                 HeaderText="查看详情" Text="查看" />
  86.                                         </Columns>
  87.                                     </asp:GridView>
  88.                                 <p>
  89.                     <asp:TextBox ID="txtSubject" runat="server" Width="409px"></asp:TextBox>
  90.                     </p>
  91.     </form>
  92. </body>
  93. </html>