<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Links.aspx.cs" Inherits="web.admin.Links" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Link</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<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="images/adminstyle.css" type="text/css" rel="stylesheet">
				<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
	<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="6%" height="32" class="tl"></td>
		<td width="89%" class="tm"><span class="tt">营销管理 &gt;&gt; 友情链接管理</span></td>
		      <td width="0%" class="tm2"><span class="tt"></span></td>
		<td width="5%" class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <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="#FFFFFF" valign="top"><br>
                      <table width="90%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
<table cellSpacing="0" cellPadding="0" width="100%" 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" BorderColor="#E0E0E0" BorderWidth="1px" PageSize="2">
							<HeaderStyle Font-Bold="False" BackColor="#EDF6FF" CssClass="head" Height="35px"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="网站名称">
									<ItemTemplate>
										<a href='<%#DataBinder.Eval(Container.DataItem,"Url")%>' target=_blank>
											<%#DataBinder.Eval(Container.DataItem,"Name")%>
										</a>
									</ItemTemplate>
                                    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Center" />
                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Center" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="Logo">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemTemplate>
										<%# GetLogo(DataBinder.Eval(Container.DataItem,"Url").ToString(),DataBinder.Eval(Container.DataItem,"Logo").ToString())%>
									</ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="简介">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Remark")%>
									</ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="排序">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemTemplate>
										<a href='Cz.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='Cz.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>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="首页">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemTemplate>
										<a href='Cz.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>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="审批通过">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemTemplate>
										<a href='Cz.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>
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemTemplate>
										<a href='ALinks.aspx?LinkID=<%#DataBinder.Eval(Container.DataItem,"LinkID")%>&type=<%=Request.QueryString["type"]%>'>
											修改</a>
									</ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
								</asp:TemplateColumn>
								<asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？')&quot;&gt;删除&lt;/div&gt;" CommandName="Delete">
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:ButtonColumn>
							</Columns>
                        <PagerStyle Mode="NumericPages" />
                        <ItemStyle Height="26px" />
						</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>
