<%@ page language="C#" autoeventwireup="true" inherits="Exam_HomeWorkMessageLFRM, 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>
</head>
<body>
    <form id="form1" runat="server">
    <table width="110%" cellpadding="0" cellspacing="0" class="table_3">
        <tr>
            <td class="nav_font">
                <img src="../Images/ico4.gif" />
                当前的位置：试题和考试管理 &gt; 批改作业 &gt; 批改
            </td>
        </tr>
    </table>
    <div align="right">
        <asp:Button ID="btnSave" runat="server" Text="阅 卷" OnClick="btnSave_Click" />&nbsp;<asp:Button
            ID="btnReturn" runat="server" Text="返 回" OnClick="btnReturn_Click" /></div>
    <div align="left">
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><asp:Label
            ID="lblMessage2" runat="server" ForeColor="Red"></asp:Label>
    </div>
    <div>
        <asp:GridView ID="gvShowWrongQuestion" runat="server" AutoGenerateColumns="False"
            Width="110%" DataKeyNames="Themaid,answerid,mark" OnRowDataBound="gvShowWrongQuestion_RowDataBound">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="学员答题情况">
                    <ItemTemplate>
                        <table width="100%">
                            <tr align="left">
                                <td width="100%">
                                    <asp:Label ID="lblNumber" runat="server" Font-Size="12px"></asp:Label>
                                    <br />
                                    <asp:Label ID="lblRightAnswer" runat="server" Text="本题正确答案：" ForeColor="Red"></asp:Label>
                                    <asp:Label ID="lblRAnswer" runat="server"></asp:Label>
                                    <br />
                                    <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>
                        <div width="780px" align="left">
                            <asp:Label ID="lblTitle" runat="server" Width="780px" Font-Size="12px"></asp:Label><br />
                            <asp:Label ID="lblHD" runat="server" Text="答案："></asp:Label>
                        </div>
                        <div width="780px" align="left">
                            <asp:Label ID="lblQuestionAnswer" runat="server" Width="780px" Font-Size="12px"></asp:Label>
                        </div>
                    </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>
    </div>
    </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>
