<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_FeedBackList, QianboCMS" EnableEventValidation="false" %>
<%@ Import Namespace="Qianbo.Common" %>
<%@ 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/layout.css" type="text/css" rel="Stylesheet" />
<script src="../../Js/Common.js" type="text/javascript"></script>
</head>

<body>
<form id="form1" runat="server">
  <table width="99%" cellspacing="1" cellpadding="0" class="wzdh" align="center">
    <tr>
      <td style="padding-left: 10px;"><img src="../Images/Skin/Default/you.gif" align="absmiddle" /> 您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="../Other/NoticeList.aspx">用户管理</a> &gt;&gt; 用户问答</td>
    </tr>
  </table>
  <table width="99%" cellspacing="1" cellpadding="0" class="border" align="center">
    <tr class="wzlist">
      <td><span style="float: left;"><a href="FeedBackList.aspx"></a>
        <asp:LinkButton ID="lnkbtnAll" runat="server" CausesValidation="False" OnClick="lnkbtnAll_Click">所有问答</asp:LinkButton></span>
        <span style="float: right;">
        按状态查看：
        <asp:DropDownList ID="ddlStateHeader" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlStateHeader_SelectedIndexChanged">
          <asp:ListItem Value="-1">请选择状态</asp:ListItem>
          <asp:ListItem Value="0">问答中</asp:ListItem>
          <asp:ListItem Value="1">已完成</asp:ListItem>
          <asp:ListItem Value="2">锁定</asp:ListItem>
        </asp:DropDownList>
        按分类查看：
        <asp:DropDownList ID="ddlCategoryHeader" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCategoryHeader_SelectedIndexChanged"></asp:DropDownList></span></td>
    </tr>
  </table>
  <table id="rptTable" class="border" cellpadding="0" cellspacing="1" align="center">
    <asp:Repeater ID="rptFeedBack" runat="server" OnItemCommand="rptFeedBack_ItemCommand" OnItemDataBound="rptFeedBack_ItemDataBound">
      <HeaderTemplate>
        <tr class="title">
          <td width="30px">选择</td>
          <td>主题</td>
          <td width="60px">回答数 </td>
          <td width="120px">分类</td>
          <td width="60px">状态</td>
          <td width="120px">开始日期</td>
          <td width="120px">最后回复</td>
          <td width="120px">回复人</td>
          <td width="60px">常规操作</td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
          <td><asp:CheckBox ID="chkBox" runat="server" />
            <asp:Label ID="lbId" runat="server" Text='<%#Eval("ID") %>' Visible="false"></asp:Label></td>
          <td><a href='FeedBack.aspx?id=<%#Eval("ID") %>'><%# Function.HtmlEncode(Eval("title").ToString()) %></a></td>
          <td><asp:Literal ID="LitReplyCount" runat="server" Text='<%#Eval("ID") %>'></asp:Literal></td>
          <td><%#SetCategory(Eval("categoryId")) %></td>
          <td><%#SetState(Eval("state")) %></td>
          <td><%#Eval("replyDate","{0:d}") %></td>
          <td><asp:Literal ID="LitLastAuthor" runat="server"></asp:Literal></td>
          <td><asp:Literal ID="LitLastDate" runat="server"></asp:Literal></td>
          <td><asp:LinkButton ID="lnkbtnDelete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("ID") %>' OnClientClick="return confirm('是否确定删除此问答？');">删除</asp:LinkButton></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
  <table width="99%" cellspacing="1" cellpadding="0" class="border" align="center">
    <tr class="wzlist">
      <td><webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页" OnPageChanging="Pager_PageChanging" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Never" ShowNavigationToolTip="True" Width="99%" LayoutType="Table" CustomInfoSectionWidth="10%"></webdiyer:AspNetPager></td>
    </tr>
  </table>
  <table width="99%" cellspacing="1" cellpadding="0" class="border" align="center">
    <tr class="wzlist">
      <td><input type="checkbox" id="chk" onclick="SelectAll('chk','rptTable');" />
        全选
        <asp:Button ID="btnDeleteAll" runat="server" Text="删除所选项" OnClientClick="return confirm('是否确定删除所选项？');" OnClick="btnDeleteAll_Click" CssClass="btn" /></td>
    </tr>
  </table>
  <table width="99%" cellspacing="1" cellpadding="0" class="border" align="center">
    <tr class="wzlist">
      <td>问题搜索：
        <asp:DropDownList ID="ddlCategory" runat="server"></asp:DropDownList>
        <asp:DropDownList ID="ddlState" runat="server">
          <asp:ListItem Value="-1">所有状态</asp:ListItem>
          <asp:ListItem Value="0">问答中</asp:ListItem>
          <asp:ListItem Value="1">已完成</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="btn" OnClick="btnSearch_Click" /></td>
    </tr>
  </table>
</form>
</body>
</html>