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

<%@ 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 runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>知道回答管理</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
    <form id="form1" runat="server">
       <div class="talbe_border marie">
                <asp:GridView ID="grdAnswer" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                    OnRowDeleting="grdAnswer_RowDeleting" CssClass="talbe_list" GridLines="None">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
							<HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                        </asp:TemplateField>
						<asp:TemplateField HeaderText="回答内容">
                            <ItemTemplate>
                                <div style=" width: 300px; text-overflow:ellipsis; overflow:hidden;"><a href='#' title="<%# Eval("Detail")%>">
                                    <%# Eval("Detail")%>
                                </a></div>
                            </ItemTemplate>
							<ItemStyle CssClass="left2" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="问题内容">
                            <ItemTemplate>
                                <%# Eval("Caption") %>
                                </a>
                            </ItemTemplate>
							<ItemStyle CssClass="left2" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="是否被采纳">
                            <ItemTemplate>
                                <%# Eval("State").ToString()=="True"?"已采纳":"未采纳"%>
                            </ItemTemplate>
							<HeaderStyle CssClass="th30" />
                        </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:BoundField DataField="UserName" HeaderText="回答人">
						<HeaderStyle CssClass="th30" />
						</asp:boundfield>
                        <asp:CommandField HeaderText="操作" ShowDeleteButton="True">
						<HeaderStyle CssClass="th30" />
						</asp:commandfield>
                    </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" CssClass="i_button" OnClick="btnDelete_Click"
                    Text="批量删除" OnClientClick="return confirm('你确定要删除吗?')" />
                <asp:Label ID="lblMessage" runat="server" Text="Label" Visible="False"></asp:Label>
            </div>
        </div>
    </form>
</body>
</html>
