<%@ page language="C#" autoeventwireup="true" inherits="Exam_MarkMessageLFRM, App_Web_t61aasr1" stylesheettheme="Themes" theme="Themes" %>

<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>

    <script src="../js/artDialog3/artDialog.min.js"></script>

    <script>        (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img class="img_style" src="../Images/homen.gif" />
                    您的当前位置：试题和考试管理 &gt; 考试阅卷 &gt; 阅卷</span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="left" style="line-height: 30px;">
                            <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><asp:Label
                                ID="lblMessage2" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                        <td align="right">
                            <asp:Button ID="btnSave" runat="server" Text="阅 卷" OnClick="btnSave_Click" />&nbsp;<asp:Button
                                ID="btnReturn" runat="server" Text="返 回" OnClick="btnReturn_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="margintop5">
                <asp:GridView ID="gvShowWrongQuestion" runat="server" AutoGenerateColumns="False"
                    Width="100%" DataKeyNames="Themaid,answerid,mark" OnRowDataBound="gvShowWrongQuestion_RowDataBound"
                    SkinID="0" BorderColor="#efefef" BorderStyle="Solid" BorderWidth="1">
                    <PagerSettings Visible="False" />
                    <Columns>
                        <asp:TemplateField HeaderText="学员答题情况" HeaderStyle-CssClass="headerStyle">
                            <ItemTemplate>
                                <table width="100%" cellpadding="5" cellspacing="0">
                                    <tr>
                                        <td class="exam_r_big_title" valign="top">
                                            <span class="font_white">
                                                <asp:Label ID="lblCount" runat="server"></asp:Label></span> <span class="exam_font_tip" style="font-size:12px;">
                                                    考题类型：<font class="blue_font">
                                                        <asp:Label ID="lblNumber" runat="server"></asp:Label></font></span>
                                        </td>
                                    </tr>
                                    <tr align="left">
                                        <td width="100%">
                                            <table cellpadding="5" cellspacing="0" width="100%">
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblTitle" runat="server" ForeColor="#0066a1" Font-Size="12px" Width="780px"
                                                            Font-Bold="True"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblHD" runat="server" Text="学员答案：" ForeColor="#0066FF"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblQuestionAnswer" runat="server" Font-Size="12px" Width="780px"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblRightAnswer" runat="server" Text="本题正确答案：" ForeColor="Red"></asp:Label>
                                                        <asp:Label ID="lblRAnswer" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblMark" runat="server" Text="该题分数：" ForeColor="Red"></asp:Label>
                                                        <asp:Label ID="lblMark2" runat="server"></asp:Label>
                                                        <asp:Label ID="lblMark3" runat="server" Text="得分："></asp:Label>
                                                        <asp:TextBox ID="txtMark" runat="server" MaxLength="3" Width="50" Text="0"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                            <HeaderStyle ForeColor="Red" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="question" HeaderText="问题" />
                        <asp:BoundField DataField="Type" HeaderText="类型" />
                        <asp:BoundField DataField="UserAnswer" HeaderText="用户答案" />
                        <asp:BoundField DataField="answer" HeaderText="正确答案" />
                        <asp:BoundField DataField="mark" HeaderText="分数" />
                    </Columns>
                    <EmptyDataTemplate>
                        <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                    </EmptyDataTemplate>
                    <EmptyDataRowStyle Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" Font-Size="X-Large" />
                </asp:GridView>
            </td>
        </tr>
    </form>
</body>

<script type="text/javascript" language="javascript">
    function isDigit1(s) {

        var v = document.getElementById(s).value;
        //alert(v);
        var patrn = /^[0-9]{1,20}$/;
        if (!patrn.exec(v)) {
            alert('请输入数字。');
            document.getElementById(s).value = 0;
            return;

        }
        return true
    }    
</script>

</html>
