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

<%@ Register src="../UC_AjaxLoading.ascx" tagname="UC_AjaxLoading" 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">
    <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" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:Repeater ID="RP_Ask" runat="server" onitemcommand="RP_Ask_ItemCommand">
        <ItemTemplate>
            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td class="Title">
                        <strong>问答标题：<%# Eval("Title") %></strong>
                    </td>
                </tr>
                <tr>
                    <td height="1">
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        发布人：<%# Eval("UserName") %>　　发布时间：<%# Eval("UpdateTime")%>
                    </td>
                </tr>
                <tr>
                    <td height="1">
                    </td>
                </tr>
                <tr>
                    <td>
                        解决情况：<strong>
                            <%# Convert.ToInt32(Eval("State")) == 1 ? "已解决" : "未解决"%></strong>
                    </td>
                </tr>
                <tr>
                    <td>
                        问答内容：<%# Eval("Content")%>
                    </td>
                </tr>
                <tr>
                    <td height="1">
                    </td>
                </tr>
                <tr>
                    <td height="22" align="right" bgcolor="#F2F2F2"> 
                        操作：【<asp:LinkButton ID="LinkButton1" runat="server"  CommandName="DeleteAsk" OnClientClick="return confirm('确定要删除？')" CommandArgument='<%# Eval("ID")%>'>删除</asp:LinkButton>】【<a href="EditInfo.aspx?ModelID=<%=Request["ModelID"] %>&AskID=<%# Eval("ID")%>">修改</a>】【<a
                            href="javascript:history.back();">返回</a>】
                    </td>
                </tr>
                <tr>
                    <td height="1" bgcolor="#CCCCCC">
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:Repeater>
    <asp:Repeater ID="RP_Answer" runat="server" onitemcommand="RP_Answer_ItemCommand">
        <ItemTemplate>
                    <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
             　
                <tr>
                    <td height="1">
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        回答人：<%# Eval("UserName") %>　　发布时间：<%# Eval("UpdateTime")%>
                    </td>
                </tr>
                <tr>
                    <td height="1">
                    </td>
                </tr>
                <tr>
                    <td>
                        问答内容：<%# Eval("Content")%>
                    </td>
                </tr>
                <tr>
                    <td height="1">
                    </td>
                </tr>
                <tr>
                    <td height="22" align="right" bgcolor="#F2F2F2">
                        <%# Convert.ToInt32(Eval("Pass")) == 1 ? "状态：【已采纳】" : "" %>
                        
                        操作：【<asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="return confirm('确定要采纳该答案？')" CommandName="CaiNa" CommandArgument='<%# Eval("ID")%>'>采纳</asp:LinkButton>】【<asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('确定要删除该答案？')" CommandName="DelAnswer" CommandArgument='<%# Eval("ID")%>'>删除</asp:LinkButton>】【<a href="EditInfo.aspx?ModelID=<%=Request["ModelID"] %>&AnswerID=<%# Eval("ID")%>">修改</a>】【<a
                            href="javascript:history.back();">返回</a>】
                    </td>
                </tr>
                <tr>
                    <td height="1" bgcolor="#CCCCCC">
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:Repeater>
    </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
