?? login.jsp.bak
字號:
<%@page contentType="text/html;charset=GBK"%>
<%@page import="java.util.*"%>
<html>
<head>
<title>用戶登陸</title>
<script language="javascript" type="">
function checkForm() {
if (document.form1.username.value == "") {
alert("用戶名不能為空");
form1.username.focus();
return false;
}
document.form1.submit();
}
function resetForm() {
document.form1.reset();
}
function check1Form()
{
alert("用戶名不能為空");
}
</script>
<%
synchronized(application) {
Vector ListUser=null;
ListUser =(Vector)application.getAttribute("UserName");
String UserName1="";
UserName1=(String) session.getAttribute("sName");
if ((session.isNew())&&(!UserName1.equals("")))
{
ListUser.remove(UserName1);
}
}
%>
<style type="text/css">
<!--
.style2 {font-size: 24px}
-->
</style>
</head>
<body bgcolor="#FF9900">
<br>
<table align="center">
<tr bgcolor="#FFFF99">
<td width="93%" align="right"><span class="style2">BBS登陸</span></td>
</td>
</tr>
</table>
<br>
<table width="100" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
</tr>
<tr align="center" valign="middle">
<td>
<form name="form1" method="post" action="logincheck.jsp">
<table width="273" align="center">
<tr bgcolor="#FFFF99">
<td width="38%" height="18" align="right">用戶名:</td>
<td width="62%">
<input type="text" name="username">
</td>
</tr>
<tr bgcolor="#FFFF99">
<td width="38%" height="18" align="right">密碼:</td>
<td width="62%">
<input type="password" name="password">
</td>
</tr>
<tr bgcolor="#FFFF99">
<td width="38%" height="19" align="right">身份:</td>
<td width="62%">
<input type="radio" name="userType" value="Y">
會員
<input type="radio" name="userType" value="N" checked>
非會員 </td>
</tr>
</table>
</form>
</td></tr>
<tr bgcolor="#FF9900" valign="middle" align="center">
<td height="20"><img src="button_1.gif" width="52" height="21" onClick="checkForm();" style="cursor:hand" alt=""> <img src="button_2.gif" width="52" height="21" onClick="resetForm();" style="cursor:hand" alt=""></td>
</tr>
<tr bgcolor="#FF9900" valign="middle" align="center">
<td height="50"> </td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -