<%@Page Language="C#" Inherits="IWMS.Pages.Links" EnableSessionState="false" %>
<!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" lang="zh">
<head>
<!--#include file="inc/html_head.inc"-->
</head>
<body>

<!--#include file="head.inc" -->
<div id="navbar">
<div class="l"></div>
<div class="r"></div>
<div class="m">
	<!--#include file="inc/navclass.inc"-->
</div>
</div>

<div id="navsub">
<div class="l"></div>
<div class="r"></div>
<div class="m">

</div>
</div>

<table id="middle" width="100%" cellpadding="0" cellspacing="0">
<tr><td>
	<div class="<%=GetFrameCss(style.CssLink,"mframe")%>">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<%=GetTitlePic(style.PicLink,"友情链接")%>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<%=GetLinkSort(5)%>
		<br/>
		<form id="myForm" runat="server">
		<%BindLinks(10);%>
		<ASP:Repeater id="rpLinks" runat="server"	>
			<HeaderTemplate>
				<table cellpadding="5" cellspacing="0" width="100%" class="grid" border="1">
				<tr class="gridHead"><td width="130">网站名</td>
				<td width="140">Logo</td>
				<td>简介</td>
				<td width="100">站长</td>
				<%if (CurUser.UserID>0){%>
				<td width="40">修改</td>
				<%}%>
				</tr>
			</HeaderTemplate>
			<ItemTemplate>
				<tr align="center" onmouseover="this.className='tdbg-dark'" onmouseout="this.className='tdbg'"><td>
					<a href="<%#Eval("url")%>" target="_blank"><%#Eval("name")%></a>
				</td><td>
					<%#GetLinkLogo((System.Data.DataRowView)Container.DataItem)%>
				</td><td>
					<%#Eval("remark")%>
				</td><td>
					<%#Eval("mname")==DBNull.Value ? "" : "<a href=\"memberProfile.aspx?id="+ Eval("memberid") +"\" target=\"_blank\">"+ Eval("mname") +"</a>"%>
				</td>
				<%if (CurUser.UserID>0){%>
				<td>
					<a href="admin_linkAdd.aspx?id=<%#Eval("id")%>" target="_blank">修改</a>
				</td>
				<%}%>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</table>
			</FooterTemplate>
		</ASP:Repeater>	
		</form>
		<asp:Literal id="ltPage" runat="server"/>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
</td></tr>
</table>

<!--#include file="foot.inc" -->

</body>
</html>