<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HelpCenterList.aspx.cs" Inherits="admin_Help_HelpCenterList" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>

<!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 id="Head1" runat="server">
    <title>帮助信息管理</title>
    <link href="../skin/Style.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="../../js/jquery.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
 <h3>操作提示</h3>
</div>
<div class="itemtitle_tect">
 <ul>
 <li>通过帮助管理，您可以进行编辑网站帮助信息；</li>
 </ul>
</div>
<div class="clr"></div>
         <div class="partition">
            <div class="Option">
                <span><strong>快捷操作</strong></span> <span>
                    <asp:LinkButton ID="ButJS" runat="server" PostBackUrl="HelpCenterAdd.aspx">添加帮助信息</asp:LinkButton>
                </span>
            </div>
        </div>
         <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="gvHelpCenter" runat="server" Font-Overline="false" CssClass="talbe_list"
                HeaderStyle-CssClass="itemtitle" AutoGenerateColumns="false" GridLines="None"
                CellPadding="0" DataKeyNames="ID" OnRowDeleting="gvHelpCenter_RowDeleting" OnRowDataBound="gvHelpCenter_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox runat="server" ID="CheckBox1" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="帮助标题">
                        <ItemTemplate>
                            <%# Eval("Title") %>
                        </ItemTemplate>
                        <ItemStyle CssClass="left2" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="帮助类别">
                        <ItemTemplate>
                            <%# Eval("Name") %>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="日期">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# GetShortDate(Eval("AddDate").ToString()) %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <a href="HelpCenterEdit.aspx?ID=<%# Eval("ID") %>">编辑 </a>|
                            <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="delete" OnClientClick="return confirm('您确认要删除吗？')" ></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
                <p> 
                    <uc1:PageNo ID="PageNo1" runat="server" />
                 </p>
                <input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />
                <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click"
                    Text="批量删除" CssClass="i_button" />
                 <asp:Label ID="lblMessge" runat="server" Visible="false"></asp:Label>
            </div>
        </div>
    </form>
</body>
</html>
