<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="ExamQuestionAddEFRM, App_Web_83cyu5ij" 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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title></title>

    <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/artDialog3/artDialog.min.js"></script>

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

    <style>
        html
        {
            overflow-x: hidden;
        }
    </style>
    <style type="text/css">
        .style1
        {
            height: 20px;
        }
    </style>
</head>

<script type="text/javascript">
    // String 构造函数的原型对象的一个方法。
    String.prototype.trim = function() {
        // 用正则表达式将前后空格
        // 用空字符串替代。
        return this.replace(/(^\s*)|(\s*$)/g, "");
    }

    $(document).ready(function() {
        Validator();
    });
    function Validator() {
        $('#<%= txtMark.ClientID %>').onlypressInt();
        $("#<%=txtQuestion.ClientID %>").textlimit(4000);
        $("#<%=txtText.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer1.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer2.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer3.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer4.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer5.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer6.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer7.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer8.ClientID %>").textlimit(4000);
        $("#<%=txtAnswer8.ClientID %>").textlimit(4000);
        $("#<%=txtParse.ClientID %>").textlimit(4000);
        $("#<%=txtRemark.ClientID %>").textlimit(4000);
    }
    /*function mylosefocus() {
    var txt = document.getElementById('<%=txtMark.ClientID %>').value;      
    var pattern = /^\d+$/;
    if (!pattern.exec(txt)) {
    alert("分数必须是数字");
    return false;
    }
    else {
    return true;
    }        
    }*/
    function AnswerIsNull() {
        var message = "";
        var num = 4;
        document.getElementById("ddlExerciseType").value;
        if (document.getElementById("ddlExerciseType").value == 2) {
            num = document.getElementById("ddlOption").value;
            var ckedA = false;
            ckedA = document.getElementById("chkA").checked;
            var ckedB = false;
            ckedB = document.getElementById("chkB").checked;
            if (num >= 3) {
                var ckedC = false;
                ckedC = document.getElementById("chkC").checked;
            }
            if (num >= 4) {
                var ckedD = false;
                ckedD = document.getElementById("chkD").checked;
            }
            if (num >= 5) {
                var ckedE = false;
                ckedE = document.getElementById("chkE").checked;
            }
            if (num >= 6) {
                var ckedF = false;
                ckedF = document.getElementById("chkF").checked;
            }
            if (num >= 7) {
                var ckedG = false;
                ckedG = document.getElementById("chkG").checked;
            }
            if (num == 8) {
                var ckedH = false;
                ckedH = document.getElementById("chkA").checked;
            }
            if (ckedA || ckedB || ckedC || ckedD || ckedE || ckedF || ckedG || ckedH) {

            }
            else {
                // alert("答案不能为空");  ddlDifficulty           
                if (message == "")
                    message += "答案不能为空！";
                else
                    message += "\r\n答案不能为空！";
            }
        }
        if (document.getElementById("ddlExerciseType").value == 1) {
            num = document.getElementById("ddlOption").value;
            var rbtnA = false;
            rbtnA = document.getElementById("rbtnA").checked;
            var rbtnB = false;
            rbtnB = document.getElementById("rbtnB").checked;
            if (num >= 3) {
                var rbtnC = false;
                rbtnC = document.getElementById("rbtnC").checked;
            }
            if (num >= 4) {
                var rbtnD = false;
                rbtnD = document.getElementById("rbtnD").checked;
            }
            if (num >= 5) {
                var rbtnE = false;
                rbtnE = document.getElementById("rbtnE").checked;
            }
            if (num >= 6) {
                var rbtnF = false;
                rbtnF = document.getElementById("rbtnF").checked;
            }
            if (num >= 7) {
                var rbtnG = false;
                rbtnG = document.getElementById("rbtnG").checked;
            }
            if (num == 8) {
                var rbtnH = false;
                rbtnH = document.getElementById("rbtnH").checked;
            }
            if (rbtnA || rbtnB || rbtnC || rbtnD || rbtnE || rbtnF || rbtnG || rbtnH) {

            }
            else {
                // alert("答案不能为空");  ddlDifficulty           
                if (message == "")
                    message += "答案不能为空！";
                else
                    message += "\r\n答案不能为空！";
            }
        }
        var num1 = document.getElementById("ddlExerciseType").value;
        var ckedR = false;
        var ckedW = false;
        if (num1 == 3) {
            ckedR = document.getElementById("rbtnRight").checked;
            ckedW = document.getElementById("rbtnWrong").checked;

            if (ckedR || ckedW)
            { }
            else {
                // alert("答案不能为空");  ddlDifficulty           
                if (message == "")
                    message += "答案不能为空！";
                else
                    message += "\r\n答案不能为空！";
            }
        }
        if (document.getElementById("ddlExerciseType").value == 4) {

            if (document.getElementById("txtText").value.trim() != "")
            { }
            else {
                if (message == "")
                    message += "答案不能为空！";
                else
                    message += "\r\n答案不能为空！";
            }
        }
        if (document.getElementById("ddlSubject").value == 0) {
            if (message == "")
                message += "考试科目不能为空！";
            else
                message += "\r\n考试科目不能为空！";
        }
        if (document.getElementById("ddlExerciseType").value == 0) {
            if (message == "")
                message += "类型不能为空！";
            else
                message += "\r\n类型不能为空！";
        }
        if (document.getElementById("ddlDifficulty").value == 0) {
            if (message == "")
                message += "难度不能为空！";
            else
                message += "\r\n难度不能为空！";
        }
        if (document.getElementById("txtQuestion").value.trim() == "") {
            if (message == "")
                message += "题目不能为空！";
            else
                message += "\r\n题目不能为空！";
        }
        if (document.getElementById("ddlExerciseType").value != 5 && document.getElementById("ddlExerciseType").value != 3 && document.getElementById("ddlExerciseType").value != 4) {
            var number = 4;
            number = document.getElementById("ddlOption").value;
            if (document.getElementById("txtAnswer1").value.trim() == "") {
                if (message == "")
                    message += "答案A内容不能为空！";
                else
                    message += "\r\n答案A内容不能为空！";
            }
            if (document.getElementById("txtAnswer2").value.trim() == "") {
                if (message == "")
                    message += "答案B内容不能为空！";
                else
                    message += "\r\n答案B内容不能为空！";
            }
            if (number >= 3) {
                if (document.getElementById("txtAnswer3").value.trim() == "") {
                    if (message == "")
                        message += "答案C内容不能为空！";
                    else
                        message += "\r\n答案C内容不能为空！";
                }
            }
            if (number >= 4) {
                if (document.getElementById("txtAnswer3").value.trim() == "") {
                    if (message == "")
                        message += "答案D内容不能为空！";
                    else
                        message += "\r\n答案D内容不能为空！";
                }
            }
            if (number >= 5) {
                if (document.getElementById("txtAnswer5").value.trim() == "") {
                    if (message == "")
                        message += "答案E内容不能为空！";
                    else
                        message += "\r\n答案E内容不能为空！";
                }
            }
            if (number >= 6) {
                if (document.getElementById("txtAnswer6").value.trim() == "") {
                    if (message == "")
                        message += "答案F内容不能为空！";
                    else
                        message += "\r\n答案F内容不能为空！";
                }
            }
            if (number >= 7) {
                if (document.getElementById("txtAnswer7").value.trim() == "") {
                    if (message == "")
                        message += "答案G内容不能为空！";
                    else
                        message += "\r\n答案G内容不能为空！";
                }
            }
            if (number == 8) {
                if (document.getElementById("txtAnswer8").value.trim() == "") {
                    if (message == "")
                        message += "答案H内容不能为空！";
                    else
                        message += "\r\n答案H内容不能为空！";
                }
            }
        }
        if (document.getElementById("txtMark").value.trim() == "") {
            if (message == "")
                message += "分数不能为空！";
            else
                message += "\r\n分数不能为空！";
        }
        if (message != "") {
            //alert(message);
            art.dialog({ content: message, lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            return false;
        }
        else { return true; }
    }
    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) {
            }
        }
    }    
</script>

<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title" id="divTitle" runat="server">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：试题和考试管理 > 试题库维护 > 试题编辑</span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="right" height="20" width="80px">
                            考试科目：
                        </td>
                        <td align="left" width="200px">
                            <asp:DropDownList ID="ddlSubject" runat="server" Width="200px" AppendDataBoundItems="True">
                                <asp:ListItem Value="0">全部</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right" height="20" width="80px">
                            题目类型：
                        </td>
                        <td width="80px">
                            <asp:DropDownList ID="ddlExerciseType" runat="server" Width="100px" AppendDataBoundItems="True"
                                AutoPostBack="True" OnSelectedIndexChanged="ddlExerciseType_SelectedIndexChanged">
                                <asp:ListItem Value="1">单选</asp:ListItem>
                                <asp:ListItem Value="2">多选</asp:ListItem>
                                <asp:ListItem Value="3">判断</asp:ListItem>
                                <asp:ListItem Value="4">问答</asp:ListItem>
                                <asp:ListItem Value="5">填空</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            难度：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtMark" runat="server" MaxLength="2" Width="50px">1</asp:TextBox>
                            <asp:DropDownList ID="ddlDifficulty" runat="server" Width="100px" AppendDataBoundItems="True">
                                <asp:ListItem Value="0">请选择</asp:ListItem>
                                <asp:ListItem Value="1">容易</asp:ListItem>
                                <asp:ListItem Value="2">普通</asp:ListItem>
                                <asp:ListItem Value="3">困难</asp:ListItem>
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlState" runat="server" Width="100px" AppendDataBoundItems="True"
                                Visible="False">
                                <asp:ListItem Value="1">在用</asp:ListItem>
                                <asp:ListItem Value="2">删除</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Button ID="btnSave" runat="server" Text="保 存" OnClientClick="return AnswerIsNull();"
                                OnClick="btnSave_Click" /><asp:Button ID="btnReturn" runat="server" OnClick="btnReturn_Click"
                                    Text="返 回" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" class="table_box margintop5">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="right" width="68px" style="border: solid 1px #efefef; background-color: #f9f9f9;">
                            试题题目：
                        </td>
                        <td align="left" width="800px" style="background-color: White; border: solid 1px #efefef;">
                            <asp:TextBox ID="txtQuestion" runat="server" Height="40px" TextMode="MultiLine" Width="680px"></asp:TextBox>
                            <asp:Label ID="lblLimit" runat="server" ForeColor="Red" Text="*限4000字"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="PanelAnswer" runat="server" Visible="False">
                    <table cellpadding="5" cellspacing="0" width="100%">
                        <tr>
                            <td align="right" width="90px" style="border: solid 1px #efefef; background-color: #f9f9f9;">
                                判断答案：
                            </td>
                            <td align="left" width="800px" style="background-color: White; border: solid 1px #efefef;">
                                <asp:Label ID="lblRight" runat="server" Text="正确"></asp:Label>
                                <asp:RadioButton ID="rbtnRight" runat="server" GroupName="check" CssClass="img_style" />
                                <asp:Label ID="lblWrong" runat="server" Text="错误"></asp:Label>
                                <asp:RadioButton ID="rbtnWrong" runat="server" GroupName="check" CssClass="img_style" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="PanelType" runat="server">
                    <table cellpadding="5" cellspacing="0" width="100%" bgcolor="#f9f9f9" style="border: solid 1px #efefef;">
                        <tr>
                            <td align="right" width="90px">
                                选项：<asp:Label ID="lblClozeNote" runat="server" Text="(填空数)" Visible="False" CssClass="img_style"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlOption" runat="server" Width="100px" AppendDataBoundItems="True"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddlOption_SelectedIndexChanged">
                                    <asp:ListItem Value="2">2</asp:ListItem>
                                    <asp:ListItem Value="3">3</asp:ListItem>
                                    <asp:ListItem Value="4">4</asp:ListItem>
                                    <asp:ListItem Value="5">5</asp:ListItem>
                                    <asp:ListItem Value="6">6</asp:ListItem>
                                    <asp:ListItem Value="7">7</asp:ListItem>
                                    <asp:ListItem Value="8">8</asp:ListItem>
                                </asp:DropDownList>
                                <asp:Label ID="lblWarn" runat="server" ForeColor="Red" Text="*请选择选项数目"></asp:Label>
                                <asp:DropDownList ID="ddlOptionType" runat="server" Width="80px" AutoPostBack="True"
                                    OnSelectedIndexChanged="ddlOptionType_SelectedIndexChanged">
                                    <asp:ListItem Value="1">普通</asp:ListItem>
                                    <asp:ListItem Value="2">图片</asp:ListItem>
                                    <asp:ListItem Value="3">语音</asp:ListItem>
                                </asp:DropDownList>
                                <asp:Label ID="lblMesg" runat="server" ForeColor="Red" Text="*请选择选项类型"></asp:Label>
                                <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="*图片限GIF,JPG格式" Visible="False"></asp:Label>
                                <asp:Label ID="lblSound" runat="server" ForeColor="Red" Text="*语音限WAV,MP3格式" Visible="False"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="PanelText" runat="server" Visible="False">
                    <table cellpadding="5" cellspacing="0" width="100%">
                        <tr>
                            <td align="right" width="60px" style="border: solid 1px #efefef; background-color: #f9f9f9;">
                                判断答案：
                            </td>
                            <td align="left" width="800px" style="background-color: White; border: solid 1px #efefef;">
                                <asp:TextBox ID="txtText" runat="server" Height="40px" TextMode="MultiLine" Width="680px"></asp:TextBox><asp:Label
                                    ID="lblNumber" runat="server" ForeColor="Red" Text="*限4000字"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td style="border: solid 1px #efefef;">
                <asp:Panel ID="PanelQuestion" runat="server">
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td align="right" width="60px">
                                答案A：
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer1" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000"></asp:TextBox>
                                <asp:Label ID="lblLimitA" runat="server" ForeColor="Red" Text="*限4000字"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgA" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadA" runat="server" Visible="False" />
                                <asp:Button ID="btnAddA" runat="server" Text="添加" OnClientClick="a()" Visible="False"
                                    OnClick="btnAddA_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                                <asp:Label ID="lblAnswerB" runat="server" Text="答案B：" Width="60px"></asp:Label>
                                &nbsp;
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer2" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgB" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadB" runat="server" Visible="False" />
                                <asp:Button ID="btnAddB" runat="server" Text="添加" Visible="False" OnClick="btnAddB_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                                <asp:Label ID="lblAnswerC" runat="server" Text="答案C：" Visible="False" Width="60px"></asp:Label>
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer3" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgC" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadC" runat="server" Visible="False" />
                                <asp:Button ID="btnAddC" runat="server" Text="添加" Visible="False" OnClick="btnAddC_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                                <asp:Label ID="lblAnswerD" runat="server" Text="答案D：" Visible="False" Width="60px"></asp:Label>
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer4" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgD" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadD" runat="server" Visible="False" />
                                <asp:Button ID="btnAddD" runat="server" Text="添加" Visible="False" OnClick="btnAddD_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                                <asp:Label ID="lblAnswerE" runat="server" Text="答案E：" Visible="False" Width="60px"></asp:Label>
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer5" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgE" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadE" runat="server" Visible="False" />
                                <asp:Button ID="btnAddE" runat="server" Text="添加" Visible="False" OnClick="btnAddE_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                                <asp:Label ID="lblAnswerF" runat="server" Text="答案F：" Visible="False" Width="60px"></asp:Label>
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer6" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgF" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadF" runat="server" Visible="False" />
                                <asp:Button ID="btnAddF" runat="server" Text="添加" Visible="False" OnClick="btnAddF_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                                <asp:Label ID="lblAnswerG" runat="server" Text="答案G：" Visible="False" Width="60px"></asp:Label>
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer7" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgG" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadG" runat="server" Visible="False" />
                                <asp:Button ID="btnAddG" runat="server" Text="添加" Visible="False" OnClick="btnAddG_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                                <asp:Label ID="lblAnswerH" runat="server" Text="答案H：" Visible="False" Width="60px"></asp:Label>
                            </td>
                            <td align="left" width="800px">
                                <asp:TextBox ID="txtAnswer8" runat="server" Height="40px" TextMode="MultiLine" Width="680px"
                                    MaxLength="4000" Visible="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px">
                            </td>
                            <td align="left" width="800px">
                                <asp:Image ID="ImgH" runat="server" Height="50px" Width="120px" Visible="False" ImageUrl="~/Exam/Question/xxxx.gif" />
                                <asp:FileUpload ID="FileUploadH" runat="server" Visible="False" CssClass="txt" />
                                <asp:Button ID="btnAddH" runat="server" Text="添加" Visible="False" OnClick="btnAddH_Click" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td style="border: solid 1px #efefef; background-color: #f9f9f9; border-top: none;">
                <asp:Panel ID="PanelCheck" runat="server" Visible="False">
                    <table>
                        <tr>
                            <td align="right" width="60px">
                                答案：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblA" runat="server" Text="A"></asp:Label>
                                <asp:CheckBox ID="chkA" runat="server" />
                                <asp:Label ID="lblB" runat="server" Text="B"></asp:Label>
                                <asp:CheckBox ID="chkB" runat="server" />
                                <asp:Label ID="lblC" runat="server" Text="C" Visible="False"></asp:Label>
                                <asp:CheckBox ID="chkC" runat="server" Visible="False" />
                                <asp:Label ID="lblD" runat="server" Text="D" Visible="False"></asp:Label>
                                <asp:CheckBox ID="chkD" runat="server" Visible="False" />
                                <asp:Label ID="lblE" runat="server" Text="E" Visible="False"></asp:Label>
                                <asp:CheckBox ID="chkE" runat="server" Visible="False" />
                                <asp:Label ID="lblF" runat="server" Text="F" Visible="False"></asp:Label>
                                <asp:CheckBox ID="chkF" runat="server" Visible="False" />
                                <asp:Label ID="lblG" runat="server" Text="G" Visible="False"></asp:Label>
                                <asp:CheckBox ID="chkG" runat="server" Visible="False" />
                                <asp:Label ID="lblH" runat="server" Text="H" Visible="False"></asp:Label>
                                <asp:CheckBox ID="chkH" runat="server" Visible="False" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="PanelRbtn" runat="server">
                    <table>
                        <tr>
                            <td align="right" width="60px">
                                答案：
                            </td>
                            <td align="left">
                                <asp:Label ID="lblRbA" runat="server" Text="A"></asp:Label>
                                <asp:RadioButton ID="rbtnA" runat="server" GroupName="rbtn" />
                                <asp:Label ID="lblRbB" runat="server" Text="B"></asp:Label>
                                <asp:RadioButton ID="rbtnB" runat="server" GroupName="rbtn" />
                                <asp:Label ID="lblRbC" runat="server" Text="C" Visible="False"></asp:Label>
                                <asp:RadioButton ID="rbtnC" runat="server" GroupName="rbtn" Visible="False" />
                                <asp:Label ID="lblRbD" runat="server" Text="D" Visible="False"></asp:Label>
                                <asp:RadioButton ID="rbtnD" runat="server" GroupName="rbtn" Visible="False" />
                                <asp:Label ID="lblRbE" runat="server" Text="E" Visible="False"></asp:Label>
                                <asp:RadioButton ID="rbtnE" runat="server" Visible="False" GroupName="rbtn" />
                                <asp:Label ID="lblRbF" runat="server" Text="F" Visible="False"></asp:Label>
                                <asp:RadioButton ID="rbtnF" runat="server" Visible="False" GroupName="rbtn" />
                                <asp:Label ID="lblRbG" runat="server" Text="G" Visible="False"></asp:Label>
                                <asp:RadioButton ID="rbtnG" runat="server" Visible="False" GroupName="rbtn" />
                                <asp:Label ID="lblRbH" runat="server" Text="H" Visible="False"></asp:Label>
                                <asp:RadioButton ID="rbtnH" runat="server" Visible="False" GroupName="rbtn" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="PanelRemark" runat="server">
                    <table cellpadding="5" cellspacing="0" width="100%">
                        <tr>
                            <td colspan="2">
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px" style="border: solid 1px #efefef; background-color: #f9f9f9;">
                                题目解析：
                            </td>
                            <td align="left" width="800px" style="background-color: White; border: solid 1px #efefef;">
                                <asp:TextBox ID="txtParse" runat="server" Height="40px" TextMode="MultiLine" Width="680"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="60px" style="border: solid 1px #efefef; background-color: #f9f9f9;
                                border-left: none;">
                                备注：
                            </td>
                            <td align="left" width="800px" style="background-color: White; border: solid 1px #efefef;
                                border-left: none;">
                                <asp:TextBox ID="txtRemark" runat="server" Height="40px" TextMode="MultiLine" Width="680"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td style="border: solid 1px blue;">
                <asp:GridView ID="gvExamQuestion" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    DataKeyNames="ThemaID" OnRowCommand="gvExamQuestion_RowCommand" OnRowDataBound="gvExamQuestion_RowDataBound"
                    Width="100%" Visible="False">
                    <PagerSettings Visible="False" />
                    <Columns>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="ibtnCheck" runat="server" Text="编辑" />
                            </ItemTemplate>
                            <HeaderStyle Width="50px" />
                            <ItemStyle Width="50px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Name" HeaderText="课程">
                            <HeaderStyle Width="80px" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Question" HeaderText="问题">
                            <HeaderStyle Width="160px" />
                            <ItemStyle Width="160px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Type" HeaderText="类型">
                            <HeaderStyle Width="70px" />
                            <ItemStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Answer" HeaderText="答案">
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Difficulty" HeaderText="难度">
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="State" HeaderText="状态">
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Mark" HeaderText="分数">
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Parse" HeaderText="试题解析">
                            <ItemStyle Width="80px" Wrap="true" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remark" HeaderText="备注">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CreateTime" DataFormatString="{0:d}" HeaderText="创建时间">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LastWriteTime" DataFormatString="{0:d}" HeaderText="修改时间">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                    </Columns>
                    <EmptyDataTemplate>
                        <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                    </EmptyDataTemplate>
                    <EmptyDataRowStyle Font-Size="XX-Large" Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    <%-- <div class="page_bg_left">
        <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager"
            FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;"
            LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
            OnPageChanged="AspNetPager1_PageChanged" PrevPageText="上一页" ShowCustomInfoSection="Left"
            ShowInputBox="Always">
        </cc1:AspNetPager>
    </div>--%>
    </form>
</body>
</html>
