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

📄 coltest.aspx

📁 大学英语学习系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ColTest.aspx.cs" Inherits="Student_ColTest_ColTest" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#666666" class="style2" id="TABLE2" runat="server" style="width: 583px; height: 56px">
            <tr>
                <td align="right" bgcolor="#ffffff" bordercolor="#ffffff" colspan="7" height="22">
                    进入群体测试 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                
                <asp:Button ID="BtnReturn" runat="server" Text="返回" OnClick="BtnReturn_Click" /></td>
          </tr>
            <tr>
                <td align="right" bgcolor="#ffffff" bordercolor="#ffffff" colspan="1" style="height: 21px">
                    <span style="color: #ff0000; font-family: 宋体">学号</span></td>
                <td align="left" bgcolor="#ffffff" bordercolor="#ffffff" colspan="1" style="height: 21px">
                    <asp:TextBox ID="sNo" runat="server" ReadOnly="True"></asp:TextBox></td>
                <td align="right" bgcolor="#ffffff" bordercolor="#ffffff" colspan="1" style="height: 21px">
                    <span style="color: #ff0000; font-family: 宋体">姓名</span></td>
                <td align="left" bgcolor="#ffffff" bordercolor="#ffffff" colspan="4"
                    style="height: 21px;">
                    <asp:TextBox
                            ID="sName" runat="server" Width="133px" ReadOnly="True"></asp:TextBox></td>
            </tr>
          <tr>
              <td align="center" bgcolor="#ffffff" bordercolor="#ffffff" colspan="7" height="22">
                    <asp:GridView ID="txtView" runat="server" AutoGenerateColumns="False" DataKeyNames="TESTNO"
                        DataSourceID="SqlDataSource1" Width="583px" AllowPaging="True" OnSelectedIndexChanged="txtView_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField DataField="TESTNO" HeaderText="测试编号" ReadOnly="True" SortExpression="TESTNO" />
                            <asp:BoundField DataField="TNO" HeaderText="出题人" SortExpression="TNO" />
                            <asp:BoundField DataField="DOTEXTTIME" HeaderText="开考时间" SortExpression="DOTEXTTIME" />
                            <asp:BoundField DataField="SETTEXTTIME" HeaderText="测试用时" SortExpression="SETTEXTTIME" />
                            <asp:BoundField DataField="FULLMARK" HeaderText="总分" SortExpression="FULLMARK" />
                            <asp:BoundField DataField="AVERAGEGRADE" HeaderText="平均难度" SortExpression="AVERAGEGRADE" />
                            <asp:BoundField DataField="TESTSTYLE" HeaderText="试卷类型" SortExpression="TESTSTYLE" />
                            <asp:CommandField ShowSelectButton="True" ButtonType="Button" />
                        </Columns>
                    </asp:GridView>
              </td>
          </tr>
            <tr>
                <td align="right" bgcolor="#ffffff" bordercolor="#ffffff" colspan="2" height="22">
                    试卷号</td>
                <td align="left" bgcolor="#ffffff" bordercolor="#ffffff" colspan="5" height="22">
                    <asp:Label ID="testNo" runat="server" Text="请选择你要考的试卷"></asp:Label></td>
            </tr>
            <tr>
                <td align="center" bgcolor="#ffffff" bordercolor="#ffffff" colspan="7" style="height: 22px">
                        <asp:Button ID="btnTest" runat="server" OnClick="btnTest_Click" Text="进入群体测试" /></td>
            </tr>
        </table>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                        SelectCommand="SELECT * FROM [TAB_TESTINFO] WHERE datediff(d,[DOTEXTTIME],getdate()) <= 0"></asp:SqlDataSource>
        <br />
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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