<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContentManage.aspx.cs"
    Inherits="TopWinCMS.WebUI.Admin.Common.ContentManage" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc2" %>
<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!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-cache" />
    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>
    <link rel="stylesheet" type="text/css" href="../Style.css" />
    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="12000">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc2:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate> 
            <table style="width: 100%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        &nbsp;<img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：<asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                    <td style="width: auto; text-align: right">
                        搜索：
                        <asp:DropDownList ID="DDL_Sort" runat="server" EnableViewState="False">
                            <asp:ListItem Value="ContentTitle">标题</asp:ListItem>
                            <asp:ListItem Value="Content">内容</asp:ListItem>
                            <asp:ListItem Value="Editor">编辑</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;
                        <asp:TextBox ID="TB_KeyWord" runat="server"></asp:TextBox>&nbsp;
                        <asp:Button ID="BT_Search" runat="server" Text="搜索" EnableViewState="False" CssClass="btn"
                            OnClick="BT_Search_Click"></asp:Button>
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="GV_List" runat="server" OnItemCommand="GV_List_ItemCommand" OnItemDataBound="GV_List_ItemDataBound">
                <HeaderTemplate>
                    <table class="GridView" id="GV_List" cellspacing="0" rules="all" border="1" style="border-collapse: collapse;">
                        <tr class="HeaderStyle">
                            <th scope="col" style="width: 30px;">
                                <input type="checkbox" name="chkHeader" value="chkHeader" onclick="javascript:SelectAll(this,'GV_List','CB_SelectID');" />
                            </th>
                            <th scope="col" style="width: 60px;">
                                <asp:LinkButton ID="LB_ID" runat="server" CommandArgument="ID" OnClick="OrderBy_Action_Click">ID</asp:LinkButton>
                            </th>
                            <th scope="col">
                                标题
                            </th>
                            <th scope="col" style="width: 60px;">
                                录入
                            </th>
                            <th scope="col" style="width: 40px;">审核
                                <%--<asp:LinkButton ID="LB_Pass" runat="server" CommandArgument="Pass" OnClick="OrderBy_Action_Click">审核</asp:LinkButton>--%>
                            </th>
                            <th scope="col" style="width: 64px;">
                                属性
                            </th>
                            <th scope="col" style="width: 120px;">
                                <asp:LinkButton ID="LB_UpdateTime" runat="server" CommandArgument="UpdateTime" OnClick="OrderBy_Action_Click">更新时间</asp:LinkButton>
                            </th>
                            <th scope="col" style="width: 60px;">评论
                                <%--<asp:LinkButton ID="LB_CommentQuantity" runat="server" CommandArgument="CommentQuantity"
                                    OnClick="OrderBy_Action_Click">评论</asp:LinkButton>--%>
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center">
                            <asp:CheckBox ID="CB_SelectID" runat="server" />
                            <asp:Label ID="LB_ID" Visible="False" Text='<%# Eval("ID") %>' runat="server" />
                        </td>
                        <td align="center">
                            <%# Eval("ID") %>
                        </td>
                        <td>
                            [<%# Eval("ClassName") %>]
                            <%# MyTitleLink(Eval("ContentTitle"), 70, Eval("ID"), Eval("Hits"))%>
                            <%# Convert.ToInt32(Eval("IncludePic"))==1?"<IMG alt='' src='../Images/img.jpg' />":"" %>
                        </td>
                        <td align="center">
                            <%# Eval("Editor") %>
                        </td>
                        <td align="center">
                            <asp:LinkButton ID="LB_Pass" runat="server" CommandName="Pass" Text='<%# Eval("Pass") %>'></asp:LinkButton>
                        </td>
                        <td align="center">
                            <div style="float: left; width: 16px;">
                                <%# Convert.ToInt32(Eval("OnTop")) == 1 ? "<SPAN style=\"COLOR: blue\" title=\"固顶\">固</SPAN>" : string.Empty%></div>
                            <div style="float: left; width: 16px;">
                                <%# Convert.ToInt32(Eval("Elite")) == 1 ? "<SPAN style=\"COLOR: red\" title=\"推荐\">荐</SPAN>" : string.Empty%></div>
                            <div style="float: left; width: 16px;">
                                <%# Convert.ToInt32(Eval("IsSlide")) == 1 ? "<SPAN style=\"COLOR: blue\" title=\"幻灯片\">幻</SPAN>" : string.Empty%></div>
                            <div style="float: left; width: 16px;">
                                <%# Convert.ToInt32(Eval("IsDraft")) == 1 ? "<SPAN style=\"COLOR: red\" title=\"稿件\">稿</SPAN>" : string.Empty%></div>
                        </td>
                        <td align="center">
                            <%# Eval("UpdateTime") %>
                        </td>
                        <td align="right"><%# CommentLink(Eval("ID"),Eval("ContentTitle") )%><%# Eval("CommentQuantity") %></a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <div class="WorkArea">
                <asp:DropDownList ID="DDL_DoSomeThing" runat="server">
                    <asp:ListItem Value="0">&lt;请选择操作&gt;</asp:ListItem>
                    <asp:ListItem Value="批量删除">删除</asp:ListItem>
                    <asp:ListItem Value="批量置顶">置顶</asp:ListItem>
                    <asp:ListItem Value="取消置顶">取消置顶</asp:ListItem>
                    <asp:ListItem Value="批量推荐">设为推荐</asp:ListItem>
                    <asp:ListItem Value="取消推荐">取消推荐</asp:ListItem>
                    <asp:ListItem Value="批量审核">审核</asp:ListItem>
                    <asp:ListItem Value="取消审核">取消审核</asp:ListItem>
                    <asp:ListItem Value="全部审核">全部审核</asp:ListItem>
                </asp:DropDownList>
                &nbsp;
                <asp:Button ID="BT_ToDo" runat="server" Text="执行" OnClick="BT_ToDo_Click" OnClientClick="return CheckSelected(this,'GV_List');"
                    CssClass="btn"></asp:Button>
                &nbsp;|&nbsp;
                <asp:DropDownList ID="DDL_ClassID1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_ClassID1_SelectedIndexChanged">
                </asp:DropDownList>
                <br />
                数据筛选：<asp:CheckBox ID="CB_MyWork" runat="server" AutoPostBack="True" OnCheckedChanged="DataFilter"
                    Text="我的" /><asp:CheckBox ID="CB_Special" runat="server" Text="专题" OnCheckedChanged="DataFilter"
                        AutoPostBack="True" /><asp:CheckBox ID="CB_OnTop" runat="server" AutoPostBack="True"
                            OnCheckedChanged="DataFilter" Text="置顶" /><asp:CheckBox ID="CB_Elite" runat="server"
                                AutoPostBack="True" OnCheckedChanged="DataFilter" Text="推荐" /><asp:CheckBox ID="CB_IsSlide"
                                    runat="server" AutoPostBack="True" OnCheckedChanged="DataFilter" Text="幻灯" /><asp:CheckBox
                                        ID="CB_Passed" runat="server" AutoPostBack="True" OnCheckedChanged="DataFilter"
                                        Text="已审核" /><asp:CheckBox ID="CB_UnPass" runat="server" AutoPostBack="True" OnCheckedChanged="DataFilter"
                                            Text="未审核" /><asp:CheckBox ID="CB_IsDraft" runat="server" AutoPostBack="True" OnCheckedChanged="DataFilter"
                                                Text="稿件" /></div>
            <div class="pagefield">
                <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
                    SubmitButtonClass="btn" SubmitButtonText="转向" CustomInfoSectionWidth="200px">
                </cc1:PageNavigation>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
