<%@ Page language="c#" Codebehind="Link.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.Link" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<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">
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />友情链接列表</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title">友情链接管理</div>
		        <div class="frame_content">
		            <table class="tableBorder" cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
				        <tr>
				            <td><asp:button id="btnUpdateSort" OnClick="btnUpdateSort_Click" runat="server" Text="修改排序" CssClass="inputbtn"></asp:button></td>
				        </tr>
				        <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>--%>
											    <input type="text" name="txtSort_<%# Container.ItemIndex %>" value='<%# DataBinder.Eval(Container.DataItem, "Sort") %>' size="5" style="text-align:center;" />
									        </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>
		        </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
