<%@ Page Language="c#" Inherits="TopWinCMS.WebUI.Admin.Admin_Channel" CodeBehind="Channel.aspx.cs" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register Assembly="ComboBox" Namespace="TopWin.WebControls.Old" TagPrefix="cc2" %>
<!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">
<head runat="server">
    <title>频道管理</title>
    <meta http-equiv="Pragma" content="No-cach" />
    <link href="../Style.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
        <tr>
            <td width="50%">
                <img src='../../Images/arrow.gif' alt="" />
                您现在的位置：<asp:Label ID="LB_Path" runat="server"></asp:Label>
            </td>
            <td width="50%">
                <a href="Channel.aspx">频道管理</a> &nbsp;| &nbsp;<a href="Channel_Add.aspx?Action=Add">
                    添加频道</a>
            </td>
        </tr>
    </table>
  
    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand"
        OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID" CssClass="GridView">
        <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
        <Columns>
            <asp:BoundField HeaderText="频道" DataField="Name">
                <ItemStyle Width="120px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="URL转发">
                <ItemTemplate>
                    <%# MyLink(Eval("URL"))%>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="200px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="链接目标" DataField="Target">
                <ItemStyle HorizontalAlign="Center" Width="80px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="备注" DataField="Remark">
                <ItemStyle Width="400px" />
            </asp:BoundField>
            <asp:ButtonField HeaderText="上移" Text="↑" CommandName="up">
                <ItemStyle HorizontalAlign="Center" Width="40px" />
            </asp:ButtonField>
            <asp:ButtonField HeaderText="下移" Text="↓" CommandName="down">
                <ItemStyle HorizontalAlign="Center" Width="40px" />
            </asp:ButtonField>
            <asp:TemplateField HeaderText="站点状态" ShowHeader="False">
                <ItemStyle HorizontalAlign="Center" Width="60px" />
                <ItemTemplate>
                    <%# Convert.ToInt16(Eval("Show"))==1?"开通":"关闭" %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Channel_Add.aspx?Action=Edit&amp;ID={0}"
                HeaderText="编辑" Text="编辑">
                <ItemStyle HorizontalAlign="Center" Width="40px" />
            </asp:HyperLinkField>
            <asp:ButtonField CommandName="DeleteChannel" HeaderText="删除" Text="删除">
                <ItemStyle HorizontalAlign="Center" Width="40px" />
            </asp:ButtonField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
