<%@ page language="C#" autoeventwireup="true" inherits="Admin_ContentManagement_ArticleList, ShopWe" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
    <link href="../css/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../css/volti.css" rel="stylesheet" type="text/css" />
    <link href="../Themes/Default/Plugin/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../Themes/Default/JS/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../css/admin.js"></script>

    <script type="text/javascript" src="../Themes/Default/Plugin/ThickBox/thickbox.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
            <tr>
                <td style="width: 265px">
                    <div class="name_noe">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" height="22px">
                                    默认操作</td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Button ID="ArticleOrderButton" runat="server" Text="更新排序" OnClick="ArticleOrderButton_Click"
                                        CssClass="butt_tle" Height="22px" Width="70px" />
                                    <asp:Button ID="DeleteSelect" runat="server" Text="删除所选文章" OnClick="DeleteSelect_Click"
                                        CssClass="butt_tle" Height="22px" Width="90px" />
                                    <a href="AddArticle.aspx" class="blue_ys">
                                        <img src="../Themes/Default/Images/add.png" />
                                        添加文章</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 235px">
                    <div class="name_noe">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" style="height: 22px">
                                    搜索文章</td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:DropDownList ID="ArticleClass" runat="server" Width="150px" Height="22px" CssClass="input_tle">
                                    </asp:DropDownList>
                                    <asp:Button ID="SearchButton" runat="server" Text="搜索文章" OnClick="SearchButton_Click"
                                        class="butt_tle" Height="22px" Width="70px" /></td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td>&nbsp;
                    
                </td>
            </tr>
        </table>
        <div id="all">
            <div class="k_all3">
                <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                    <thead>
                        <tr>
                            <th style="width: 30px">
                                <input id="ChkAll" type="checkbox" onclick="Check(this,'CheckBoxSelect','RepeaterTable')" />
                            </th>
                            <th style="width: 32px">
                                <asp:LinkButton ID="CreateSort" CssClass="blue" runat="server" OnClick="CreateSort_Click"
                                    OnClientClick="return confirm('会重新生成所有的排序，是否确定？');">排序</asp:LinkButton>
                            </th>
                            <th style="width: 260px">
                                文章名称
                            </th>
                            <th style="width: 60px">
                                文章类型
                            </th>
                            <th style="width: 120px">
                                发布日期
                            </th>
                            <th style="width: 60px">
                                前台显示</th>
                            <th>
                                编辑文章
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="RepeaterTable" runat="server" OnItemCommand="RepeaterTable_ItemCommand">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%# Eval("ArticleGuid") %>'
                                            BorderStyle="None" BorderWidth="0px" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ArticleOrder" Width="22px" Text='<%# Eval("ArticleOrder") %>' runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                        <%# Eval("ArticleTitle")%>
                                        <a href="../../ArticleInfo.aspx?id=<%# Eval("ArticleGuid") %>" class="blue" target="_blank">
                                            [查看]</a>
                                    </td>
                                    <td>
                                        <%# GetArticleClass(new Guid(Eval("ArticleClass").ToString()))%>
                                    </td>
                                    <td>
                                        <%# Eval("JoinDate")%>
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="ImageButtonIsShow" CommandArgument='<%# Eval("ArticleGuid")%>'
                                            ImageUrl='<%# GetIsShowImg(new Guid(Eval("ArticleGuid").ToString()))%>' runat="server" />
                                    </td>
                                    <td>
                                        <img src="../Themes/Default/Images/bj.png" alt="编辑文章" width="10" height="10" />
                                        <a href='AddArticle.aspx?id=<%# Eval("ArticleGuid") %>&keepThis=true&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=400&width=740'
                                            class="thickbox" title="编辑文章">编辑文章</a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
            <div class="k_all3">
                <div id="bk_line">
                    <div class="txte">
                         <img src="../Themes/Default/Images/bj.png" /> <asp:Literal ID="CountItem" runat="server"></asp:Literal>
                    </div>
                    <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" AlwaysShow="True" CssClass="yahoo2"
                        OnPageChanged="AspNetPagerItem_PageChanged">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
