<%@ Register TagPrefix="cc1" Namespace="TopWinCMS.WebControls" Assembly="TopWinCMS.WebControls" %>

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

<%@ Register Src="../UC_AdminSelect.ascx" TagName="UC_AdminSelect" TagPrefix="uc1" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc2" %>
<%@ 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="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="No-cach" />

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

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

    <link href="../Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc2:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
        <tr>
            <td>
                管理导航：<a href="Special.aspx?ModelID=<%= Request.QueryString["ModelID"] %>">专题专题管理</a> | <a href="Special_Add.aspx?ModelID=<%= Request.QueryString["ModelID"] %>">
                    添加专题专题</a> | 专题合并 | 批量设置
            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" CssSpecial="GridView"
                DataKeyNames="ID" OnRowCommand="GV_List_RowCommand" OnRowDataBound="GV_List_RowDataBound">
                <Columns>
                
                  <asp:BoundField  HeaderText="ID" DataField="ID">
                        <ItemStyle HorizontalAlign="Center" Width="36px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="专题分类">
                        <ItemTemplate>
                            <%# changstyle(Eval("Path").ToString(), Eval("SpecialName").ToString(), Convert.ToInt16(Eval("HaveBaby")))%>
                            <%# LinkURL(Eval("LinkURL")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField HeaderText="上移" Text="↑" CommandName="up">
                        <ItemStyle HorizontalAlign="Center" Width="36px" />
                    </asp:ButtonField>
                    <asp:ButtonField HeaderText="下移" Text="↓" CommandName="down">
                        <ItemStyle HorizontalAlign="Center" Width="36px" />
                    </asp:ButtonField>
                           <asp:HyperLinkField Text="添加专题" DataNavigateUrlFields="ID,ModelID" 
                        
                        DataNavigateUrlFormatString="Special_Add.aspx?Action=Add&amp;ModelID={1}&amp;SpecialID={0}">
                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                    </asp:HyperLinkField>
                    <asp:HyperLinkField Text="修改设置" DataNavigateUrlFields="ID,ModelID" 
                        
                        DataNavigateUrlFormatString="Special_Add.aspx?Action=Edit&amp;ModelID={1}&amp;ID={0}">
                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                    </asp:HyperLinkField>
                    
                    <asp:ButtonField Text="删除专题" CommandName="DelSpecial">
                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                    </asp:ButtonField>
                    <asp:ButtonField Text="清空专题" CommandName="Clear">
                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                    </asp:ButtonField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
