<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Survey.QuestionDetail" Title="问题回答详情"
    CodeBehind="QuestionDetail.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td style="width: 60%">
                <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
            </td>
            <td style="width: 40%; text-align: right">
                <asp:Label ID="LblTitle" runat="server"></asp:Label>&nbsp;
            </td>
        </tr>
    </table>
    <table style="width: 100%; margin: 0 auto;" cellpadding="0" cellspacing="0">
        <tr>
            <td id="AdminTabs">
                <ul>
                    <!-- CSS Tabs -->
                    <li><a href='<%="ShowCountData.aspx?SurveyID="+HdnSurveyId.Value+"&SurveyName="+Server.UrlEncode(Convert.ToString(RequestString("SurveyName"))) %>'>
                        <span>调查结果分析</span></a> </li>
                    <li><a href='<%="ShowCountData.aspx?ShowType=Chart&SurveyID="+HdnSurveyId.Value+"&SurveyName="+Server.UrlEncode(Convert.ToString(RequestString("SurveyName"))) %>'>
                        <span>图表显示</span></a> </li>
                    <li><a href='<%="ShowCountData3.aspx?SurveyID="+HdnSurveyId.Value+"&SurveyName="+Server.UrlEncode(Convert.ToString(RequestString("SurveyName"))) %>'>
                        <span>列表式查看</span></a></li>
                    <li><a href='<%="ShowCountData2.aspx?SurveyID="+HdnSurveyId.Value+"&SurveyName="+Server.UrlEncode(Convert.ToString(RequestString("SurveyName"))) %>'><span>卡片式查看</span></a></li>
                    <li><a href='<%="ShowCountData4.aspx?SurveyID="+HdnSurveyId.Value+"&SurveyName="+Server.UrlEncode(Convert.ToString(RequestString("SurveyName"))) %>'><span>表格式查看</span></a></li>
                    <li id="current"><a href='javascript:;'>
                        <span>查看问题的回答详情</span></a></li>
                </ul>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="Server">
    <pe:ExtendedGridView ID="EgvQuestionDetail" runat="server" SerialText="序号" AutoGenerateColumns="False"
        OnRowDataBound="EgvQuestionDetail_RowDataBound" AllowPaging="False">
        <Columns>
            <pe:TemplateField HeaderText="序号">
                <HeaderStyle Width="4%" />
            </pe:TemplateField>
            <pe:TemplateField HeaderText="问题">
                <ItemStyle HorizontalAlign="Left" />
                <HeaderStyle Width="45%" />
                <ItemTemplate>
                    <pe:ExtendedAnchor IsChecked="true" runat="server" OperateCode="SurveyResultPreview"
                        href='<%# "AnswerList.aspx?SurveyID="+RequestString("SurveyID")+"&QuestionID="+Eval("QuestionId") %>'>
                        <%# Eval("QuestionContent") %>
                    </pe:ExtendedAnchor>
                </ItemTemplate>
            </pe:TemplateField>
            <pe:TemplateField HeaderText="问题类型">
                <HeaderStyle Width="10%" />
            </pe:TemplateField>
            <pe:TemplateField HeaderText="所属问卷">
                <HeaderStyle Width="16%" />
            </pe:TemplateField>
            <pe:TemplateField HeaderText="常规管理操作">
                <HeaderStyle Width="25%" />
                <ItemTemplate>
                    <pe:ExtendedAnchor IsChecked="true" runat="server" OperateCode="SurveyResultPreview"
                        href='<%# "AnswerList.aspx?SurveyID="+RequestString("SurveyID")+"&QuestionID="+Eval("QuestionId") %>'>
                        查看问题的回答详情</pe:ExtendedAnchor>
                </ItemTemplate>
            </pe:TemplateField>
        </Columns>
    </pe:ExtendedGridView>
    <asp:HiddenField ID="HdnSurveyId" runat="server" />
</asp:Content>
