<%@ page language="VB" autoeventwireup="false" inherits="WebExam.Web.exam_editpaper_ranTest, App_Web_4fcdyx4d" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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 runat="server">
    <title>编辑随机试题</title>
    <link href="../../style/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #btnsave
        {
            width: 55px;
        }
        .style1
        {
            width: 52px;
        }
        .style2
        {
            width: 58px;
        }
    </style>
    <script src="/jslib/jquery/jquery-lastest.js" type="text/javascript"></script>
    <script src="/jslib/jquery/plugins/url/jquery.url.packed.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">

    <script type="text/javascript">
   
       function addRan(){
           var subjectId = jQuery.url.param("subjectid");
         if(subjectId=="") return;
         var difficulty=window.$get("<%= DDL_d.ClientID %>").value;
         var kp=window.$get("<%= LB_keyPoint.ClientID %>").value;
         var count=window.$get("<%= RTB_testTotal.ClientID %>").value;
         var score=window.$get("<%= RTB_score.ClientID %>").value;
         parent.parent.parent.saveRanTest(subjectId, difficulty, kp, count, score);
         parent.parent.$.modal.close();
       }
    
    </script>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="margin-left: 10px">
                        <p>
                            <b>科目：</b>

                            <asp:Label ID="L_selectedSubjectName" runat="server" Font-Bold="True">尚未选择科目</asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                             <asp:Label ID="L_tx" runat="server" Font-Bold="True"></asp:Label>
                        </p>
                        <table cellpadding="10">
                            <tr>
                                <td align="right" class="style1">
                                    难度：
                                 </td>
                                <td align="left" class="style2">
                                    <asp:DropDownList ID="DDL_d" runat="server" AutoPostBack="True">
                                        <asp:ListItem Text="不限" Value="-1" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="0" Value="0"></asp:ListItem>
                                        <asp:ListItem Text="1" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="2" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="3" Value="3"></asp:ListItem>
                                        <asp:ListItem Text="4" Value="4"></asp:ListItem>
                                        <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td align="right">
                                    知识点：
                                 </td>
                                <td class="style2">
                                    <asp:ListBox ID="LB_keyPoint" runat="server" CssClass="FormText1" AutoPostBack="True">
                                    </asp:ListBox>
                                </td>
                                <td>
                                    符合条件的试题总量：<asp:Label ID="L_testTotal" runat="server" Font-Bold="True">0</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    数量：
                                 </td>
                                <td align="left" class="style2">
                                    <telerik:RadNumericTextBox ID="RTB_testTotal" runat="server" ButtonsPosition="Right"
                                        MinValue="1" ShowSpinButtons="true" Skin="Telerik" Type="Number" Value="10">
                                        <NumberFormat AllowRounding="True" DecimalDigits="0" KeepNotRoundedValue="False" />
                                    <NumberFormat AllowRounding="True" DecimalDigits="0" KeepNotRoundedValue="False" /></telerik:RadNumericTextBox>
                                </td>
                                <td align="right">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;每题/空分数：
                                 </td>
                                <td class="style2">
                                    <telerik:RadNumericTextBox ID="RTB_score" runat="server" ButtonsPosition="Right"
                                        MinValue="0.1" ShowSpinButtons="true" Skin="Telerik" DecimalDigits="2" Type="Number"
                                        Value="1.00">
                                    </telerik:RadNumericTextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr><td colspan="5" align="center">
                                <asp:Label ID="Label1" runat="server" Text="你无权使用该题库，你所添加的随机题将无法产生。" 
                                    ForeColor="Red" Font-Bold="True"></asp:Label>
                            
                            </td></tr>
                            <tr>
                                <td colspan="5" align="center">
                                    <input id="Button1"  type="button" value="  确  定  " 
                                        onclick="javascript:return addRan();" />
                        </td>
                               
                            </tr>
                        </table>
                        <asp:TextBox ID="TB_selectedSubjectId" runat="server" Style="display: none"></asp:TextBox>
                    </div>
    </form>
</body>
</html>
