109 lines
		
	
	
		
			5.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			109 lines
		
	
	
		
			5.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
|  | <%@ 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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>" 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="<22><>Ϣά<CFA2><CEAC>"  /> | |||
|  |         <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='û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>' 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="Ȩ<><C8A8>id" SortExpression="ID" ></asp:BoundField> | |||
|  | 				<asp:BoundField DataField="news_title" HeaderText="<22><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>" SortExpression="news_title" ></asp:BoundField> | |||
|  | 				<asp:BoundField DataField="news_content" HeaderText="<22><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>" SortExpression="news_content" ></asp:BoundField>  | |||
|  | 			    <asp:BoundField DataField="create_time" HeaderText="<22><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>" SortExpression="create_time" ></asp:BoundField>  | |||
|  | 				<asp:BoundField DataField="dr" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="dr" Visible="False" ></asp:BoundField> | |||
|  | 			  | |||
|  | 				<asp:CommandField HeaderText="<22>ࡡ<EFBFBD><E0A1A1>" ShowDeleteButton="True" DeleteText="<img src=../Images/Delete.gif border=0 title=ɾ<><C9BE> onclick='return delete_click()'>" <20><>ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/edit.gif border=0 title=<3D><EFBFBD>  >"> | |||
|  |                     <HeaderStyle HorizontalAlign="Center" Width="15%" /> | |||
|  |                     <ItemStyle HorizontalAlign="Center" Width="15%" /> | |||
|  |                 </asp:CommandField> | |||
|  | 			</Columns> | |||
|  |             <PagerStyle HorizontalAlign="Right" /> | |||
|  |             <emptydatatemplate> û<><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD></emptydatatemplate> | |||
|  |         </asp:gridview> | |||
|  |          <asp:Button ID="btn_addNew" runat="server" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼" 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="<22><><EFBFBD><EFBFBD>"></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"><3E><></asp:RequiredFieldValidator></td> | |||
|  | 			  | |||
|  |                 | |||
|  | 			</tr> | |||
|  | 			<tr> | |||
|  | 			 | |||
|  |                     <td style="height: 218px"> | |||
|  |                          <asp:Label ID="Label3" runat="server"  CssClass="Label" Text="<22><><EFBFBD><EFBFBD>"></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"   >   <asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" OnClick="btnSubmit_Click" ValidationGroup="1" /> | |||
|  |                   | |||
|  |                  | |||
|  |                 </td> | |||
|  |             </tr> | |||
|  |           </table>       | |||
|  |        </asp:Panel> | |||
|  |         | |||
|  |        </td></tr> | |||
|  |      | |||
|  |          | |||
|  |    </table> | |||
|  |    </td></tr> | |||
|  |  </table>    | |||
|  |  </asp:Content> | |||
|  | 
 |