?? newsmanage.aspx
字號:
<%@ Page language="c#" Codebehind="NewsManage.aspx.cs" AutoEventWireup="false" Inherits="My.NewsManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>ShowUserOrders</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="ioffice.css" type="text/css" rel="stylesheet">
<LINK href="style2.css" type="text/css" rel="stylesheet">
</HEAD>
<body MS_POSITIONING="GridLayout">
<FONT face="宋體"><FONT face="宋體">
<FORM id="Form1" method="post" runat="server">
<FONT face="宋體">
<TABLE id="Table1" style=" WIDTH: 100%; HEIGHT: 100%" cellSpacing="0" cellPadding="0" border="0">
<TR>
<TD width="202" height="700"><iframe id="iFrame1" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" tabIndex="0" marginWidth="0" marginHeight="0" src="left.aspx" frameBorder="0" width="100%" height="100%">
</iframe>
</TD>
<TD vAlign="top" noWrap align="middle">
<TABLE id="Table2" style="WIDTH: 95%" cellSpacing="0" cellPadding="0" border="0">
<tr>
<td height="15" style="WIDTH: 161px"></td>
</tr>
<TR>
<TD class="ActiveMenuItem" style="WIDTH: 120px" noWrap align="middle"><FONT size="2">Current
News</FONT></TD>
<TD style="WIDTH: 280px"></TD>
</TR>
</TABLE>
<FONT face="宋體">
<TABLE id="Table3" align="center" cellSpacing="0" cellPadding="0" width="60%" border="0">
<TR>
<TD style="HEIGHT: 20px" noWrap colSpan="3" height="26"></TD>
</TR>
<tr>
<td align="middle"><asp:label id="Label1" runat="server" Width="160px" Font-Size="X-Small"></asp:label></td>
</tr>
<TR>
<TD style="HEIGHT: 20px" noWrap colSpan="3" height="26"></TD>
</TR>
<TR>
<TD noWrap colSpan="3">
<asp:datagrid id="DataGrid1" runat="server" ShowFooter="True" align ="middle" Width="100%" GridLines="Horizontal" BorderStyle="Groove" BorderWidth="2px" CellPadding="3" BackColor="White" BorderColor="DarkGray" AutoGenerateColumns="False" PageSize="20" AllowSorting="True" AllowPaging="True" Font-Size="X-Small">
<SelectedItemStyle Font-Underline="True" Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle>
<AlternatingItemStyle BorderColor="#804000" BackColor="#F7F7F7"></AlternatingItemStyle>
<ItemStyle ForeColor="#4A3C8C" BorderColor="DarkGray" BackColor="White"></ItemStyle>
<HeaderStyle Font-Size="X-Small" Font-Names="宋體" Wrap="False" BorderWidth="5px" ForeColor="Black" BorderColor="Magenta" BackColor="#99CCFF"></HeaderStyle>
<FooterStyle Font-Size="Small" ForeColor="White" BackColor="Ivory"></FooterStyle>
<Columns>
<asp:TemplateColumn HeaderText="選擇">
<HeaderStyle Width="30px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="30px" HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:CheckBox id="CheckBox1" style="Z-INDEX: 102; LEFT: 213px" runat="server"></asp:CheckBox>
</ItemTemplate>
<FooterTemplate>
<asp:imagebutton id="btnCheckAll" runat="server" CommandName="CheckAll" ImageUrl="img\save.gif" ToolTip="全部選擇"></asp:imagebutton>
</FooterTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="No.">
<HeaderStyle Width="25px"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
<ItemTemplate>
<SPAN>
<%# RowNo %>
</SPAN>
</ItemTemplate>
<FooterTemplate>
<asp:ImageButton id="btnDelete" runat="server" CommandName="Delete" ImageUrl="img\cancel.gif" ToolTip="刪除選擇的所有項"></asp:ImageButton>
</FooterTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="Id" SortExpression="Id" HeaderText="新聞編號">
<HeaderStyle Width="40px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="40px" HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:HyperLinkColumn DataNavigateUrlField="Id" DataNavigateUrlFormatString="ShowNews.aspx?NewsId={0}" DataTextField="title" SortExpression="title" HeaderText="標題">
<HeaderStyle Width="100px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="100px" HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="source" SortExpression="source" HeaderText="來源">
<HeaderStyle Width="40px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="40px" HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="publicDate" SortExpression="publicDate" HeaderText="發表時間">
<HeaderStyle Width="120px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="120px" HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="hits" SortExpression="hits" HeaderText="點擊率">
<HeaderStyle Width="60px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="60px" HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle NextPageText="下一頁&gt;" BorderWidth="1px" Font-Size="Smaller" BorderColor="Magenta" PrevPageText="上一頁&lt;" HorizontalAlign="Left" ForeColor="White" BackColor="#FFFFC0" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
</TD>
</TR>
</TABLE>
<asp:label id="lblInfo" runat="server" ForeColor="Blue" Font-Size="X-Small" Width="467px"></asp:label></FONT></TD>
</TR>
</TABLE>
</FONT>
</FORM>
</FONT></FONT>
</body>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -