📄 admin_gonggaoedit.aspx
字号:
<%@ page validaterequest="false" language="C#" autoeventwireup="true" inherits="Admin_Admin_Gonggaoedit, App_Web_2de4qqid" %>
<%@ 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">
<title>无标题页</title>
<link href="../Images/Style.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin: 1px">
<form id="form1" runat="server">
<asp:Panel ID="ListPanel" runat="server" Width="100%">
<table border="0" cellpadding="0" cellspacing="1" style="width: 100%; background-color: gainsboro">
<tr>
<td align="center" style="width: 100%; height: 35px; background-color: aliceblue">
公告编辑管理<asp:Label ID="lblMsg" runat="server"></asp:Label></td>
</tr>
<tr>
<td align="center" style="width: 100%; background-color: #ffffff"
valign="top">
<asp:GridView ID="GridViewAffiche" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDSAffiche"
ForeColor="#333333" GridLines="None" Width="100%" PageSize="20" OnSelectedIndexChanged="GridViewAffiche_SelectedIndexChanged" DataKeyNames="ID" OnRowCommand="GridViewAffiche_RowCommand">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Right" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="公告编号" InsertVisible="False" ReadOnly="True"
SortExpression="ID">
<ItemStyle HorizontalAlign="Center" Width="15%" />
</asp:BoundField>
<asp:BoundField DataField="Title" HeaderText="公告标题" SortExpression="Title">
<ItemStyle HorizontalAlign="Left" Width="25%" />
</asp:BoundField>
<asp:BoundField DataField="AddDate" HeaderText="添加日期" SortExpression="AddDate">
<ItemStyle HorizontalAlign="Center" Width="20%" />
</asp:BoundField>
<asp:BoundField DataField="Hits" HeaderText="浏览次数" SortExpression="Hits">
<ItemStyle HorizontalAlign="Center" Width="15%" />
</asp:BoundField>
<asp:CommandField HeaderText="编辑" SelectText="编辑" ShowSelectButton="True">
<ItemStyle HorizontalAlign="Center" Width="15%" />
</asp:CommandField>
<asp:TemplateField HeaderText="删除" ShowHeader="False">
<ItemStyle HorizontalAlign="Center" Width="10%" />
<ItemTemplate>
<asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
OnClientClick="return confirm('你确认要删除这条公告吗?')" Text="删除"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDSAffiche" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
DeleteCommand="Admin_Gonggao_Delete"
SelectCommand="Admin_Gonggao_List" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32" />
</DeleteParameters>
</asp:SqlDataSource>
</asp:Panel>
<asp:Panel ID="EditPanel" runat="server" Width="100%">
<table border="0" cellpadding="0" cellspacing="1" style="width: 100%; background-color: gainsboro">
<tr>
<td align="center" colspan="2" style="height: 35px; background-color: aliceblue">
公告编辑</td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 35px; background-color: aliceblue">
公告标题</td>
<td align="left" style="width: 80%; height: 35px; background-color: #ffffff">
<asp:TextBox ID="Title" runat="server" Height="20px" Width="300px" BorderStyle="Groove"></asp:TextBox>
<asp:Label ID="lblID" runat="server" Visible="False"></asp:Label>
<asp:Label ID="lblMsgEdit" runat="server"></asp:Label></td>
</tr>
<tr>
<td align="center" style="width: 20%; height: 400px; background-color: aliceblue">
公告内容</td>
<td align="center" style="width: 80%; height: 400px; background-color: #ffffff">
<FCKeditorV2:FCKeditor ID="Editor" runat="server" BasePath="../FCKeditor/" Height="400px">
</FCKeditorV2:FCKeditor>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 35px; background-color: aliceblue">
<asp:ImageButton ID="btnOK" runat="server" ImageUrl="~/Images/form_submit.gif" OnClick="btnOK_Click" /></td>
</tr>
</table>
</asp:Panel>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -