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

📄 onlineextram.aspx

📁 一个不错的在线考试系统!~~实现了基本的在线考试系统的主要功能
💻 ASPX
字号:
<%@ page language="C#" autoeventwireup="true" inherits="student_onlineextram, App_Web_xmf1oimm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>寒冰考试系统--在线考试</title>
    <link href="../main.css" rel=stylesheet type="text/css" />
</head>
<body>
    <form id="onlineextram" runat="server">
    <div>
        <fieldset class=fieldset style="margin-top:0px;width:100%;">
            <div style="width:100%;text-align:center">
                <table class=tb  cellspacing=0px >
                    <tbody>
                        <tr>
                            <td colspan=2 style="font-weight:bolder;padding-left:25%;color:MidnightBlue;border:#5e85b1 1px solid">以下为你需要考试的科目</td>
                        </tr>
                        <tr>
                             <td rowspan=3 width=20% style="font-size:14px;font-weight:bolder;color:Navy">注意事项:</td>
                             <td width=80% style="color:Red;text-DECORATION:underline;font-weight:bolder;font-size:12px">1。每门课程只能参加一次考试</td>
                       </tr> 
                       <tr>
                            <td style="color:Red;text-DECORATION:underline;font-weight:bolder;font-size:12px">2。要求在规定时间内答题,超出时间系统自动提交</td>
                       </tr>
                       <tr>
                            <td style="color:Red;text-DECORATION:underline;font-weight:bolder;font-size:12px">3。答题中途不得退出窗口或关闭答题窗口,否则该科目计为0分</td>
                       </tr>
                    </tbody>                 
                </table> 
                <div >
                    <div style="width:98%;height:14px;;margin-top:0px;text-align:left;padding-top:0px">
                            <table style="width:98%;color:White;font-size:12px;font-weight:bolder;background-color:#507CD1" cellpadding=0px cellspacing=0px>
                                <tbody>
                                    <tr>
                                        <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:15%;text-align:center;border:white 1px solid">失效时间</td>
                                        <td style="width:25%;text-align:center;border:white 1px solid">面向科目</td>
                                        <td style="width:15%;text-align:center;border:white 1px solid">进入考场</td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                    <div style="overflow-y:scroll;height:300px;width:100%;padding-left:7px">
                            <asp:GridView ID="gvw_extramselect" runat="server" AutoGenerateColumns="False" ShowHeader="False" Width=100% PageSize="100" Font-Size="11px" DataKeyNames="num" CellPadding="4" ForeColor="#333333" >
                                <Columns>
                                    <asp:TemplateField >
                                        <ItemStyle Width=35% />
                                        <ItemTemplate>
                                            <%# TenString(DataBinder.Eval(Container.DataItem,"name").ToString()) %>
                                        </ItemTemplate>                                          
                                    </asp:TemplateField>
                                    <asp:TemplateField >
                                        <ItemStyle Width=10% />
                                        <ItemTemplate>
                                           <%# DataBinder.Eval(Container.DataItem,"time")%>分
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="endtime" DataFormatString="{0:MM/dd}" HtmlEncode="False" >
                                        <ItemStyle Width="15%" />
                                    </asp:BoundField>
                                     <asp:TemplateField >
                                        <ItemStyle Width=25% />
                                        <ItemTemplate>
                                           <%# TenString(DataBinder.Eval(Container.DataItem,"coursename").ToString())%>
                                        </ItemTemplate>  
                                    </asp:TemplateField>             
                                    <asp:TemplateField >
                                        <ItemStyle Width=15% HorizontalAlign="center" />                                        
                                        <ItemTemplate>
                                            <a onclick="if (confirm('确定要进入考场吗?')) window.open('extrampaper.aspx?id=<%=loginID%>&&paperID=<%# DataBinder.Eval(Container.DataItem,"num")%>','','fullscreen');else return false;" href="#">考试</a>
                                        </ItemTemplate>
                                   </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#EFF3FB" />
                                <EditRowStyle BackColor="#2461BF" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                    </div>
                </div>
            </div>        
        </fieldset>    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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