<%@ Control Language="C#" AutoEventWireup="true" CodeFile="answer.ascx.cs" Inherits="WebMain_answer_answer" %>
<asp:Panel ID="TestlistPanel" runat="server" Height="50px" Width="125px">
    <table width="728" border="0" cellpadding="0" cellspacing="0" background="/images/index_money_backall.jpg">
        <tr>
            <td valign="top" style="padding: 10px;">
                <table cellspacing="0" cellpadding="0" width="100%" background="/images/title_bg.gif"
                    border="0" align="center">
                    <tbody>
                        <tr>
                            <td width="5" style="height: 38px">
                                <img height="38" src="/images/title_l.gif" width="5"></td>
                            <td width="454" style="height: 38px">
                                <strong style="color: #617f99">&nbsp; 测试名称</strong></td>
                            <td width="17" style="height: 38px">
                                <img height="38" src="/images/title_space.gif" width="17"></td>
                            <td width="66" align="center" style="height: 38px">
                                <strong style="color: #617f99">测试次数</strong></td>
                            <td width="17" style="height: 38px">
                                <img height="38" src="/images/title_space.gif" width="17"></td>
                            <td width="130" style="height: 38px">
                            </td>
                            <td width="6" style="height: 38px">
                                <img height="38" src="/images/title_r.gif" width="6"></td>
                        </tr>
                    </tbody>
                </table>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="left" valign="top">
                            <asp:GridView ID="GridView_Test" runat="server" AutoGenerateColumns="False" PageSize="15"
                                Width="100%" ShowHeader="False" CellPadding="4" ForeColor="#333333" GridLines="None">
                                <PagerSettings FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageButtonCount="15"
                                    PreviousPageText="上一页" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/main_41.gif" />
                                        </ItemTemplate>
                                        <ItemStyle Width="20px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField ShowHeader="False">
                                        <ItemTemplate>
                                            <a href="<%=sUrl %>?id=<%# Eval("A_ID") %>&name=<%# Eval("A_Name") %>" target="_blank">
                                                <%# Eval("A_Name") %>
                                            </a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField ShowHeader="False">
                                        <ItemStyle Width="200px" />
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("A_Hit") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle BorderWidth="0px" BackColor="#F7F6F3" ForeColor="#333333" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                            <asp:Panel ID="NoTest" runat="server" Width="728px" HorizontalAlign="Center" Visible="false"
                                ForeColor="Red">
                                <br />
                                暂无心理测试数据!<br />
                            </asp:Panel>
                            <div id="tnt_pagination">
                                <asp:Table ID="PageBar" runat="server">
                                </asp:Table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="728" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <img src="/images/index_money_down.jpg" width="728" height="6" /></td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="TestPanel" runat="server" Width="728px">
    <style type="text/css">
    .button { background:url(/images/button.jpg) no-repeat; width:77px; height:31px; border:none; cursor:pointer; color:white; font-size:12px }
    </style>

    <script type="text/javascript">
    function checkAnswer() {
        var sForm = document.forms['Form1'];
        if (!sForm) {
            sForm = document.Form1;
        }
        sForm.action="<%=sUrl %>?action=checkanswer";
        sForm.submit();
    }
    </script>

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <asp:Label ID="TestName" runat="server" Text="Label"></asp:Label></td>
        </tr>
    </table>
    <asp:Panel ID="HaveSubject" runat="server">
        <table style="margin: 15px; width: 685px" border="0" cellspacing="3" cellpadding="3">
            <tr>
                <td>
                    <asp:Label ID="Subject" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="submitPanel" runat="server" Width="100%">
                        <input id="Submit" type="submit" value="提 交" class="button" onclick="checkAnswer();" />
                        <input id="Reset" type="reset" value="重 置" class="button" />
                        <input id="S_Class" type="hidden" name="S_Class" value="<%=Request.QueryString["id"] %>" />
                        <input id="S_SubjectCount" type="hidden" name="S_SubjectCount" value="<%=iCount.ToString() %>" />
                    </asp:Panel>
                    <asp:Panel ID="backPanel" runat="server" Visible="false" Width="100%">
                        <input id="back" type="button" value="返回列表" class="button" onclick="document.location.href='<%=sUrl %>';" />
                        <input id="backtest" type="button" value="重新测试" class="button" onclick="history.go(-1);" />
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Panel>
<asp:Panel ID="NoSubject" runat="server" Width="728px" HorizontalAlign="Center" Visible="false"
    ForeColor="Red">
    <br />
    暂无心理测试数据!<br />
    <br />
    <input id="backlist" type="button" value="返回列表" class="button" onclick="document.location.href='<%=sUrl %>';" /></asp:Panel>
