<%@ Page language="c#" Codebehind="Link.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.Link" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Link</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<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="inc/style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
<table width="100%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><span class="tt">营销管理 &gt;&gt; 友情链接管理</span></td>
		<td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
<div class="mframe">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><div class="tt">&nbsp; 友情链接管理</div></td>
		<td class="tr"></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;">
<table width="90%"  cellspacing="0" cellpadding="0">
	<tr>
		<td class="ml1"></td>
		<td class="mm1">
<table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
				<tr>
					<td class="forumRowHighlight" height="23"><asp:datagrid id="dgList" runat="server" HeaderStyle-CssClass="summary-title" HorizontalAlign="Center"
							Width="100%" DataKeyField="LinkID" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" AllowPaging="False">
							<HeaderStyle Font-Bold="True"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="网站名称" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
									<ItemTemplate>
										<a href='<%#DataBinder.Eval(Container.DataItem,"Url")%>' target=_blank>
											<%#DataBinder.Eval(Container.DataItem,"Name")%>
										</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="Logo" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<%# GetLogo(DataBinder.Eval(Container.DataItem,"Url").ToString(),DataBinder.Eval(Container.DataItem,"Logo").ToString())%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="简介" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Remark")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="排序" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<a href='Actions.aspx?Action=ChangeLinkSort&Type=D&LinkID=<%# DataBinder.Eval(Container.DataItem, "LinkID") %>&passType=<%=Request.QueryString["type"]%>'>
											<img src="images/a_down.gif" border="0" style='VISIBILITY:<%# GetVisibility(DataBinder.Eval(Container.DataItem, "Sort").ToString(),"D") %>'></a>
										<a href='Actions.aspx?Action=ChangeLinkSort&Type=U&LinkID=<%# DataBinder.Eval(Container.DataItem, "LinkID") %>&passType=<%=Request.QueryString["type"]%>'>
											<img src="images/a_up.gif" border="0" style='VISIBILITY:<%# GetVisibility(DataBinder.Eval(Container.DataItem, "Sort").ToString(),"U") %>'></a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="首页" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<a href='Actions.aspx?Action=ChangeLinkHome&LinkID=<%# DataBinder.Eval(Container.DataItem, "LinkID") %>&Status=<%# DataBinder.Eval(Container.DataItem, "Home").ToString()%>&passType=<%=Request.QueryString["type"]%>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "Home").ToString()%>.png' border="0"></a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="审批通过" ItemStyle-Width="60" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<a href='Actions.aspx?Action=ChangeLinkInNav&LinkID=<%# DataBinder.Eval(Container.DataItem, "LinkID") %>&Status=<%# Request.QueryString["type"]=="pass"?"1":"0"%>&passType=<%=Request.QueryString["type"]%>'>
											<img src='images/publish_<%# Request.QueryString["type"]=="pass"?"1":"0"%>.png' border="0"></a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									<HeaderStyle></HeaderStyle>
									<ItemTemplate>
										<a href='LinkAdd.aspx?LinkID=<%#DataBinder.Eval(Container.DataItem,"LinkID")%>&type=<%=Request.QueryString["type"]%>'>
											修改</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:ButtonColumn ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？')&quot;&gt;删除&lt;/div&gt;"
									HeaderText="" CommandName="Delete"></asp:ButtonColumn>
							</Columns>
						</asp:datagrid></td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
</td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>

</div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
