📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Login" %>
<!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>
<script language="JavaScript">
<!-- Hide
var timerID = null
var timerRunning = false
function MakeArray(size) {
this.length = size;
for(var i = 1; i <= size; i++)
{
this[i] = "";
}
return this;
}
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false
}
function showtime (){
var now = new Date();
var year = now.getYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var day = now.getDay();
Day = new MakeArray(7);
Day[0]="星期天";
Day[1]="星期一";
Day[2]="星期二";
Day[3]="星期三";
Day[4]="星期四";
Day[5]="星期五";
Day[6]="星期六";
var timeValue = "";
timeValue += year + "年";
timeValue += ((month < 10) ? "0" : "") + month + "月";
timeValue += date + "日 ";
timeValue += (Day[day]) + " ";
timeValue += ((hours <= 12) ? hours : hours - 12);
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
document.all.clock.innerText = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true
}
function startclock () {
stopclock();
showtime()
}
//-->
</script>
</head>
<body style="font-family: Times New Roman" onLoad="startclock()">
<form id="form1" runat="server">
<table style="width: 992px; height: 555px">
<tr>
<td background="images/logo.jpg" colspan="3" style="width: 213px; border-top-style: none;
border-right-style: none; border-left-style: none; height: 177px; border-bottom-style: none">
</td>
</tr>
<tr>
<td valign="bottom" id="clock" style="height: 12px" background="images/10.jpg"></td>
<td valign="bottom" style="height: 12px" background="images/10.jpg">
<p align="right">欢迎使用网上考试系统 </td>
</tr>
<tr>
<td rowspan="3" style="width: 213px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<strong><span style="font-size: 14pt"><span style="color: #3366cc"><span style="font-family: 华文楷体">网上考试系统<br />
<br />
网上考试系统是由马颖丹、张晓晶合作开发。由于时间仓促,系统中的不足之处还请广大网友指出,我们一定虚心接受并加以改正,谢谢大家!<br />
</span>
<br />
</span>
<br />
</span></strong>
</td>
<td colspan="2" style="height: 270px; width: 757px;">
<strong><span style="font-size: 14pt">
<span style="font-size: 16pt"><span style="font-family: 华文楷体"><span
style="font-size: 24pt"><span style="color: #3366cc">欢迎进入网上考试系统</span></span><br />
<br />
</span><span style="font-size: 14pt; color: #3366cc">
<span style="font-family: 华文楷体"> 考试说明:</span></span><span
style="font-family: 华文楷体"> </span></span><span style="font-family: 华文楷体">
<br />
</span></span></strong>
<h2>
<span style="color: #3366cc"><span style="font-family: 华文楷体">
<span style="font-size: 14pt">1、试题由系统随机生成。</span></span></span></h2>
<h2>
<span style="font-size: 14pt; color: #3366cc; font-family: 华文楷体">
2、考试过程中请不要刷新,这样题目不会改变,但选择的结果会清空。</span></h2>
<h2>
<span style="font-size: 14pt; color: #3366cc; font-family: 华文楷体">
3、考试过的类型不能再次参加考试。</span></h2>
<p>
<span style="font-size: 14pt; color: #3366cc; font-family: 华文楷体">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbUsername"
ErrorMessage="用户名不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbPassword"
ErrorMessage="密码不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbYZ"
Display="Dynamic" ErrorMessage="请输入验证码" Width="133px"></asp:RequiredFieldValidator></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="height: 7px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; width: 757px;">
用户名:
<asp:TextBox ID="tbUsername" runat="server"></asp:TextBox>
<span style="color: #ff0033">*</span>
密码:
<asp:TextBox ID="tbPassword" runat="server" TextMode="Password"></asp:TextBox>
<span style="color: #ff0033">*
<asp:Label ID="Label1" runat="server" ForeColor="Black" Text="输入验证码:" Width="97px"></asp:Label><asp:TextBox
ID="tbYZ" runat="server" ForeColor="Black" Width="70px"></asp:TextBox><asp:Label
ID="Label2" runat="server" ForeColor="Red" Text="*" Width="7px"></asp:Label><asp:Label
ID="Label3" runat="server" Width="52px"></asp:Label></span>
</td>
</tr>
<tr>
<td colspan="2" style="height: 32px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; width: 757px;">
<asp:RadioButton ID="rbStudent"
runat="server" Text="考生" Checked="True" GroupName="121333" />
<asp:RadioButton ID="rbTeacher" runat="server" Text="教师" GroupName="121333" />
<asp:RadioButton ID="rbManager" runat="server" Text="管理员" GroupName="121333" />
<asp:ImageButton ID="imbtnLogin" runat="server" ImageUrl="~/images/btn_dl.jpg" OnClick="imbtnLogin_Click" />
<asp:ImageButton ID="imbtnRegister" runat="server" ImageUrl="~/images/btn_zc.jpg" CausesValidation="False" OnClick="imbtnRegister_Click" />
<asp:ImageButton ID="imbtnReinstall" runat="server" ImageUrl="~/images/btn_reinstall_1.gif" OnClick="imbtnReinstall_Click" CausesValidation="False" />
<asp:ImageButton ID="imbtnCancel" runat="server" ImageUrl="~/images/btn_cancel_1.gif" CausesValidation="False" OnClick="imbtnCancel_Click" /></td>
</tr>
<tr>
<td colspan="3" rowspan="1" style="border-top-style: solid; border-right-style: solid;
border-left-style: solid; text-align: center; border-bottom-style: solid">
Copyright © 2008-2008<br />
网上考试系统 yingdan0303@126.com</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -