<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="QuestionsManage, App_Web_okxwxbf0" stylesheettheme="Themes" theme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../css/layerDiv.css" rel="stylesheet" type="text/css" />

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

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

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

    <script type="text/javascript" src="../js/jquery.pngFix.pack.js"></script>

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

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

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

    <script language="javascript">
        function CheckAll() {
            var cked = false;
            cked = document.getElementById("chkSelAll").checked;
            for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
                var e = document.getElementsByTagName("*")[i];
                try {
                    if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                        e.checked = cked;
                    }
                }
                catch (exception) {
                }
            }
        }

        function CheckSelect() {
            var count = 0;
            for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
                var e = document.getElementsByTagName("*")[i];
                try {
                    if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                        if (e.checked == true) {
                            count++;
                        }
                    }
                }
                catch (exception) {
                }
            }
            if (count == 0) {
                alert("请选择您要删除的项！");
                return false;
            }
            else {
                return confirm('您确定要删除所选项吗?');
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="panelGrid" runat="server" Height="100%" CssClass="table_box">
        <%-----------------------------------提示信息_start--------------------------------%>
        <%-----------------------------------提示信息_end--------------------------------%>
        <table cellpadding="0" cellspacing="0" class="table_box">
            <tr>
                <td class="r_top_box">
                    <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                        <tr>
                            <td style="width: 83px; height: 34px;" align="left">
                                &nbsp;&nbsp;查询条件：
                            </td>
                            <td style="width: 100px; height: 34px;">
                                <asp:DropDownList ID="ddlFieldName" runat="server" Width="95px" Height="22px">
                                    <asp:ListItem Value="Title">标题</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 148px; height: 34px;">
                                <asp:TextBox ID="txtFieldValue" runat="server" Width="135px" MaxLength="50"></asp:TextBox>
                            </td>
                            <td align="left" width="100">
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" OnClick="btnSearch_Click" />
                            </td>
                            <td width="" align="left">
                                <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" Style="cursor: pointer;"
                                    AutoPostBack="True" OnSelectedIndexChanged="rblStatus_SelectedIndexChanged">
                                    <asp:ListItem Value="End">已解决</asp:ListItem>
                                    <asp:ListItem Value="NotEnd">未解决</asp:ListItem>
                                    <asp:ListItem Value="All" Selected="True">全部</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td align="left">
                                <%--<asp:Button ID="btnQuestionCenter" runat="server" 
                onclick="btnQuestionCenter_Click" Text="转到问题中心首页" />--%>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="margintop5">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
                            <tr>
                                <td align="left" id="ClassArea" runat="server" height="100%" valign="top" class="tree_box" style="height:100%; margin-top:4px;">
                                        <asp:TreeView ID="tree" runat="server" ShowLines="True" DataSourceID="XmlDataSource1"
                                            ExpandDepth="1" OnDataBound="tree_DataBound" OnSelectedNodeChanged="tree_SelectedNodeChanged" Width="170px">
                                            <LevelStyles>
                                                <asp:TreeNodeStyle Font-Underline="False" />
                                                <asp:TreeNodeStyle Font-Underline="False" />
                                            </LevelStyles>
                                            <SelectedNodeStyle ForeColor="" />
                                            <NodeStyle ForeColor="Black" />
                                            <RootNodeStyle HorizontalPadding="0px" />
                                            <DataBindings>
                                                <asp:TreeNodeBinding DataMember="Item" TextField="ClassName" ValueField="ID" />
                                                <asp:TreeNodeBinding DataMember="Root" TextField="ClassName" ValueField="ID" />
                                            </DataBindings>
                                        </asp:TreeView>
                                        <asp:XmlDataSource ID="XmlDataSource1" runat="server" EnableCaching="False"></asp:XmlDataSource>
                                </td>
                                <td valign="top" style="width:99%; height:100%;">
                                    <asp:GridView ID="gvQuestion" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" OnRowDataBound="gvQuestion_RowDataBound">
                                        <Columns>
                                            <asp:BoundField DataField="ClassName" HeaderText="分类" HeaderStyle-Width="70px">
                                                <HeaderStyle Width="70px" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="标题">
                                                <ItemStyle HorizontalAlign="Left"/>
                                                <ItemTemplate>
                                                    <a target="_blank" href='QuestionInfo.aspx?id=<%#Eval("ID") %>&source=ql'>
                                                        <%# Common.CutString(Eval("Title").ToString(), 26).Replace("…", "")%></a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <%--<asp:BoundField DataField="UserName" HeaderText="创建者" HeaderStyle-Width="90px" >
                       </asp:BoundField>--%>
                                            <asp:BoundField DataField="ClickRate" HeaderText="点击量" HeaderStyle-Width="60px">
                                                <HeaderStyle Width="60px" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="发布者">
                                                <ItemTemplate>
                                                    <%--<asp:HyperLink ID="hlkUserName" runat="server"></asp:HyperLink>--%>
                                                    <asp:Label ID="lblUserName" runat="server" Text=""></asp:Label>
                                                    <asp:TextBox ID="txtUserID" runat="server" Visible="false" Text='<%# Eval("UserID") %>'></asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="CreateTime" HeaderText="创建时间"></asp:BoundField>
                                        </Columns>
                                        <EmptyDataRowStyle BackColor="#E0E0E0" />
                                        <EmptyDataTemplate>
                                        </EmptyDataTemplate>
                                    </asp:GridView>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="page_bg_left">
                                                <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager"
                                                    PageSize="10" FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;"
                                                    LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                                    OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页" ShowCustomInfoSection="Left"
                                                    CustomInfoTextAlign="Left" ShowInputBox="Always">
                                                </cc1:AspNetPager>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <table cellpadding="0" cellspacing="0" width="100%" class="table_box">
        <tr>
            <td> <asp:TextBox ID="txtClassID" runat="server" Visible="false"></asp:TextBox>
        <asp:TextBox ID="txtProductID" runat="server" Visible="false"></asp:TextBox>
        </tr>
    </table>
       </div>
    </form>
</body>
<%--<script language="javascript" type="text/javascript">
    $(document).ready(function()
    {
        Validator();
    });
    function Validator()
    {
        $('#<%= btnSave.ClientID %>').bind('click', function()
        {

            return GetValidatorMessage();
        });
        $("#<%=txtDescription.ClientID %>").textlimit(500);
    }
    </script>--%>
</html>
