⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addextram.aspx

📁 一个不错的在线考试系统!~~实现了基本的在线考试系统的主要功能
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
                        <tr>
                            <td>试题题干:</td>
                            <td><asp:TextBox ID="tbox_title" runat="server" TextMode=multiline Rows="4" CssClass=multibox Width="306px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>可选答案:</td>
                            <td>
                                <div id="multioption" style="width:100%;float:left">
                                    A.<asp:TextBox ID="tbox_optionA" runat="server" CssClass=singlebox></asp:TextBox><br />
                                    B.<asp:TextBox ID="tbox_optionB" runat="server" CssClass=singlebox></asp:TextBox><br />
                                    C.<asp:TextBox ID="tbox_optionC" runat="server" CssClass=singlebox></asp:TextBox><br />
                                    D.<asp:TextBox ID="tbox_optionD" runat="server" CssClass=singlebox></asp:TextBox>
                               </div>
                               <div id="multiradio" style="display:none;width:100%">
                                    <input type=radio id=radio_sele1 />正确/是<input type=radio id=radion_sele2 />错误/否
                               </div>
                            </td>
                        </tr>
                        <tr>
                            <td>正确答案:</td>
                            <td>
                                <div id="multiselect" style="width:100%;float:left">
                                    <asp:CheckBoxList ID="chb_answer" runat="server" RepeatDirection=horizontal><asp:ListItem Value="A">A</asp:ListItem><asp:ListItem Value="B">B</asp:ListItem><asp:ListItem Value="C">C</asp:ListItem><asp:ListItem Value="D">D</asp:ListItem></asp:CheckBoxList>
                                </div>
                                <div id="truefalse" style="display:none;width:100%;float:left">
                                    <asp:RadioButtonList ID="rab_answer" runat="server" RepeatDirection=horizontal><asp:ListItem Value="A" Selected=true>正确/是</asp:ListItem><asp:ListItem Value="B">错误/否</asp:ListItem></asp:RadioButtonList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>试题解析:</td>
                            <td><asp:TextBox id="tbox_explain" runat="server" TextMode="multiline" CssClass=multibox Width="314px">50字内</asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><asp:Button ID="btn_submit" runat="server" Text="提交" CssClass=button OnClick="btn_submit_Click" /><input type=button value="清空" class=button onclick=commandcacle() /></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <!--试题维护与浏览-->
        <fieldset class=fieldset id=bro style="margin-top:0px;width:100%;display:none">
            <div style="width:100%;text-align:center">
                <table style="width:95%;;" cellspacing=0px>
                    <tbody>
                        <tr>
                            <td colspan=2 style="font-weight:bolder;padding-left:30%;color:MidnightBlue;border:#5e85b1 1px solid">试题浏览与维护</td>
                        </tr>
                        <tr>
                             <td style="border:#5e85b1 1px solid;width:20%" align="left">课程名称:</td>
                             <td style="border:#5e85b1 1px solid;width:80%" align="left"><asp:DropDownList ID="ddl_brocourse" runat="server"></asp:DropDownList></td>
                       </tr> 
                    </tbody>                 
                </table> 
               <div >
                    <div style="width:95%;height:14px;;margin-top:0px;text-align:left;padding-top:0px">
                        <table style="width:95%;color:White;font-size:12px;font-weight:bolder;background-color:#507CD1" cellpadding=0px cellspacing=0px>
                            <tbody>
                                <tr>
                                    <td style="width:30%;text-align:center;border:white 1px solid">课程名称</td>
                                    <td style="width:15%;text-align:center;border:white 1px solid">题型</td>
                                    <td style="width:35%;text-align:center;border:white 1px solid">试题内容</td>
                                    <td style="width:10%;text-align:center;border:white 1px solid">程度</td>
                                    <td style="width:10%;text-align:left;border:white 1px solid">详情</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div style="width:97%;overflow-y:scroll;height:340px;margin-top:0px;padding-top:0px;padding-left:3px">
                        <table id="tb_windcate" width=98% cellspacing=0px cellpadding=0px style="border:#507CD1 1px solid;font-size:11px"></table>
                    </div>
                </div>        
            </div>
        </fieldset>
        <!--试题查询-->
        <fieldset class=fieldset id=sel style="margin-top:0px;width:100%;display:block">
            <div style="width:100%">
                <table class=tb>
                    <tr>
                        <td colspan="2" align="center" style="font-weight:bolder;color:MidnightBlue;padding-left:30%">试题综合查询</td>
                    </tr>
                    <tr>
                        <td width=20%>课程名称:</td>
                        <td width=80%><asp:DropDownList ID="ddl_selcourse" runat="server" ></asp:DropDownList><span style="color:Red;font-weight:bolder">教师ID:</span><asp:Label ID="lab_loginID" runat="Server" ForeColor="red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>试题类型:</td>
                        <td><asp:DropDownList ID="ddl_subject" runat="Server"><asp:ListItem value="1">单选题</asp:ListItem><asp:ListItem Value="2">多选题</asp:ListItem><asp:ListItem Value="3">判断题</asp:ListItem></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td>难易程度:</td>
                        <td><asp:DropDownList ID="ddl_difuct" runat="server"><asp:ListItem Value="难">难</asp:ListItem><asp:ListItem Value="中等">中等</asp:ListItem><asp:ListItem Value="易">易</asp:ListItem></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td>试题题干</td>
                        <td><asp:TextBox ID="tbox_headcontent" runat="server" CssClass=singlebox></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:Button ID="btn_select" runat="server" Text="查  询" CssClass=button OnClick="btn_select_Click" />&nbsp;&nbsp;&nbsp;<input type=button value="清 空" class=button onclick="tbox_headcontent.value=''" /></td>
                    </tr>
                    <tr>
                        <td colspan=2 rowspan=8 >
                            <div >
                            <!--本想使用Ajax技术来做把查询的结果添加至表中-->
<%--                                <table id="select_answer" class=tb style="width:100%">
                                    <tbody>
                                        <tr>
                                            <td>课程名称</td>
                                            <td>题型</td>
                                            <td>试题内容</td>
                                            <td>难易程度</td>
                                            <td>查看详情</td>
                                        </tr>
                                    </tbody>
                                </table>--%>
                                <div style="width:96%;float:left;height:14px;background-color:#507CD1;margin-top:0px;margin-left:0px">
                                    <table style="width:100%;color:White;font-size:12px;font-weight:bolder;margin-left:0px" cellpadding=0px cellspacing=0px>
                                        <tbody>
                                            <tr>
                                                <td style="width:30%;text-align:center;border:white 1px solid">课程名称</td>
                                                <td style="width:15%;text-align:center;border:white 1px solid">题型</td>
                                                <td style="width:35%;text-align:center;border:white 1px solid">试题内容</td>
                                                <td style="width:10%;text-align:center;border:white 1px solid">程度</td>
                                                <td style="width:10%;text-align:left;border:white 1px solid">详情</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div style="overflow-y:scroll;height:210px;width:100%">
                                <asp:GridView ID="gvw_select" runat="server" AutoGenerateColumns="False" ShowHeader="false" Width=100% PageSize="100" Font-Size="11px" >
                                    <Columns>
                                        <asp:TemplateField >
                                            <ItemStyle Width=30% />
                                            <ItemTemplate>
                                                <%=ddl_selcourse.SelectedItem.Text%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField >
                                            <ItemStyle Width=15% />
                                            <ItemTemplate>
                                                <%=ddl_subject.SelectedItem.Text%>
                                            </ItemTemplate>                                          
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemStyle Width=35% />
                                            <ItemTemplate>
                                               <%# TenString(DataBinder.Eval(Container.DataItem,"title").ToString())%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField > 
                                            <ItemStyle Width=10% />                               
                                            <ItemTemplate>
                                                <%=ddl_difuct.SelectedItem.Text%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField >
                                            <ItemStyle Width=10% />                                        
                                            <ItemTemplate>
                                                <a onclick="window.open('viewtitle.aspx?id=<%# DataBinder.Eval(Container.DataItem,"num")%>&&type=1','','width=470px,height=390px,top=250px,left=250px');return false" href="#">查看</a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
                   
            </div>
        </fieldset>      
     </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -