⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_link.aspx

📁 可更新网上的一些新闻
💻 ASPX
字号:
<%@Page Language="C#" Inherits="DvNews.Admin.LinkMan" %>

<html>
<head>
<title><%=config.SiteName%></title>
<meta http-equiv="Content-type" content="text/html;charset=<%=config.Charset%>">
<link rel="stylesheet" href="<%=style.Css%>" type="text/css">
</head>
<body>


<asp:Label id=myLabel width=100% style="text-align:center" runat=server/>
<table align=center height=40><tr>
<form action="" method="get">
<td>
<%=lang["link_search"]%>
<input type=text size=15 name="keyword">
<select name="where" >
	<option value="name"><%=lang["search_name"]%></option>
</select>
<input type="submit" value="<%=lang["search_submit_text"]%>"></button>
</td>
</form></tr></table>

<form id="myForm" Style="margin:0px" runat=server>

<table width=90% align=center cellspacing=0 cellpadding=0>
<tr>
<td class="mframe-t-left"></td>
<td class="mframe-t-mid">
	<span class="mframe-t-text"><%=lang["title_manage_link"]%></span>
</td>
<td class="mframe-t-right"></td>
</tr>
</table>
<table width=90% align=center cellspacing=0 cellpadding=0>
<tr>
<td class="mframe-m-left"></td>
<td class="mframe-m-mid">
	<ASP:DataGrid id="MyDataGrid" runat="server"
			Width="100%"
			Align=center
			ShowHeader="true"
			ShowFooter="false"
			AllowPaging="true"
			CellPadding="0"
			AutoGenerateColumns="false"
			DataKeyField="id"
			OnItemDataBound="MyDataGrid_ItemDataBound"
			OnPageIndexChanged="MyDataGrid_Page"
			HeaderStyle-CssClass="summary-title"
			ItemStyle-CssClass="tdbg"
			CellSpacing="0" >
		<HeaderStyle HorizontalAlign="center" Height="25" />
		<ItemStyle Height="23"/>
		
		<Columns>
			<asp:HyperLinkColumn
				DataNavigateUrlField="id"
				DataNavigateUrlFormatString="admin_linkAdd.aspx?id={0}"
				Text="修改"
				>
				<ItemStyle Width="40" HorizontalAlign="center"/>
			</asp:HyperLinkColumn>
			<asp:HyperLinkColumn
				HeaderText="网站名"
				DataNavigateUrlField="url"
				DataTextField="name"
				Target="_blank"
				>
				<ItemStyle Width="120" HorizontalAlign="center"/>
			</asp:HyperLinkColumn>
			<asp:TemplateColumn
				HeaderText="Logo"
				>
				<ItemTemplate>
					<%#DataBinder.Eval(Container.DataItem,"logo")==DBNull.Value ? "" : "<img src='"+DataBinder.Eval(Container.DataItem,"logo")+"' width="+ config.LinkLogoWidth +" height="+ config.LinkLogoHeight +">"%>
				</ItemTemplate>
				<ItemStyle Width="100" HorizontalAlign="center" />
			</asp:TemplateColumn>
			<asp:TemplateColumn
				HeaderText="分类"
				>
				<ItemTemplate>
					<%#DataBinder.Eval(Container.DataItem,"sortName")==DBNull.Value ? lang["sort_other"].ToString() : DataBinder.Eval(Container.DataItem,"sortName")%>
				</ItemTemplate>
				<ItemStyle Width="100" HorizontalAlign="center" />
			</asp:TemplateColumn>
			<asp:BoundColumn
				HeaderText="简介"
				DataField="remark">
			</asp:BoundColumn>
			<asp:TemplateColumn>
				<ItemTemplate>
					<%#(bool)DataBinder.Eval(Container.DataItem,"inIndex") ? "Yes" : "No"%>
				</ItemTemplate>
				<ItemStyle Width="30" HorizontalAlign="center" />
			</asp:TemplateColumn>
			<asp:TemplateColumn>
				<ItemTemplate>
					<asp:CheckBox id="chk" runat="server"/>
				</ItemTemplate>
				<ItemStyle Width="20" HorizontalAlign="center" />
			</asp:TemplateColumn>
		</Columns>
	</ASP:DataGrid>
	
</td>
<td class="mframe-m-right"></td>
</tr>
</table>
<table width=90% align=center cellspacing=0 cellpadding=0 >
<tr>
<td class="mframe-b-left"></td>
<td class="mframe-b-mid">&nbsp;</td>
<td class="mframe-b-right"></td>
</tr>
</table>



<table width=90% align=center><tr><td align=right>
<asp:Label id=PageList runat=server/>
</td></tr>
<tr><td>
	<asp:Button id="BtDelete" OnClick="BtDelete_OnClick" runat="server"/>
</td></tr>
</table>

</form>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -