platform/Dict/PublicNewsMain.aspx

109 lines
5.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true" CodeFile="PublicNewsMain.aspx.cs" Inherits="PublicNewsMain" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%" class="Table_NoBorder">
<tr><td>
<table width="100%" class="Table_Border">
<tr><td width="50" height="200" align="left" valign="top">
<asp:TreeView ID="TreeAuth" runat="server" ShowLines="True" ImageSet="Arrows" OnSelectedNodeChanged="TreeAuth_SelectedNodeChanged1">
<SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" />
<Nodes>
<asp:TreeNode Text="公共信息发布" Selected="True" Value="0" Expanded="True"></asp:TreeNode>
</Nodes>
</asp:TreeView>
</td>
<td width="1" class="VLine" ></td>
<td width="100%" align="left" valign="top"> <!------ THE DATA GRID AREA ------>
<asp:Label ID="lbDataGridTitle" Visible="false" runat="server" CssClass="Label" Text="信息维护" />
<asp:Label ID="lbEdit" Visible="false" runat="server" CssClass="Label" Text=""></asp:Label>
<asp:gridview id="GridView1" CssClass="DataGrid"
PageSize="10" PagerStyle-HorizontalAlign="Right"
runat="server"
AutoGenerateColumns="False"
DataKeyNames="ID"
OnRowDeleting="GridView1_RowDeleting"
AllowPaging="True"
OnPageIndexChanging="GridView1_PageIndexChanging"
OnSorting="GridView1_Sorting" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="100%" ShowFooter="True" EmptyDataText='没有数据。' OnRowDataBound="GridView1_RowDataBound">
<SelectedRowStyle CssClass="SelectedItemStyle"></SelectedRowStyle>
<HeaderStyle CssClass="HeaderStyle" ></HeaderStyle>
<RowStyle CssClass="ItemStyle" HorizontalAlign="Center"></RowStyle>
<AlternatingRowStyle CssClass="AlternatingItemStyle"></AlternatingRowStyle>
<Columns>
<asp:BoundField ReadOnly="True" DataField="ID" visible="false" HeaderText="权限id" SortExpression="ID" ></asp:BoundField>
<asp:BoundField DataField="news_title" HeaderText="信息标题" SortExpression="news_title" ></asp:BoundField>
<asp:BoundField DataField="news_content" HeaderText="信息内容" SortExpression="news_content" ></asp:BoundField>
<asp:BoundField DataField="create_time" HeaderText="发布时间" SortExpression="create_time" ></asp:BoundField>
<asp:BoundField DataField="dr" HeaderText="可用" SortExpression="dr" Visible="False" ></asp:BoundField>
<asp:CommandField HeaderText="编 辑" ShowDeleteButton="True" DeleteText="&lt;img src=../Images/Delete.gif border=0 title=删除 onclick='return delete_click()'&gt;"  ShowHeader="True" ShowSelectButton="True" SelectText="&lt;img src=../Images/edit.gif border=0 title=修改 &gt;">
<HeaderStyle HorizontalAlign="Center" Width="15%" />
<ItemStyle HorizontalAlign="Center" Width="15%" />
</asp:CommandField>
</Columns>
<PagerStyle HorizontalAlign="Right" />
<emptydatatemplate> 没有数据</emptydatatemplate>
</asp:gridview>
<asp:Button ID="btn_addNew" runat="server" Text="新增记录" CssClass="Button" OnClick="btnAddnew_Click" />
<asp:Panel ID ="DataDetail" runat="server" Width="100%" Visible="false">
<!------ THE ADD /DELETE AREA ------>
<table class="Table_NoBorder" width="100%">
<tr>
<td colspan ="4" class="ALine" >
</td>
</tr>
<tr><td nowrap>
<asp:Label ID="Label2" runat="server" CssClass="Label" Text="标题"></asp:Label></td>
<td >
<asp:TextBox ID="txtTitle" runat="server" CssClass="TextBox" MaxLength="100" width="400px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="height: 218px">
<asp:Label ID="Label3" runat="server" CssClass="Label" Text="内容"></asp:Label></td><td style="height: 218px" >
<asp:TextBox ID="txtDesc" CssClass="Long_TextBox" runat="server" MaxLength="50" Width="803px" Height="300px" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr>
<td colspan ="4" class="ALine" >
</td>
</tr>
</table>
<!------ BUTTONS ------>
<table class="Table_NoBorder" width="80%">
<tr>
<td align="center" > &nbsp;<asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="保存数据" OnClick="btnSubmit_Click" ValidationGroup="1" />
</td>
</tr>
</table>
</asp:Panel>
</td></tr>
</table>
</td></tr>
</table>
</asp:Content>