📄 login.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<jsp:directive.page import="Beans.LoginBean"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登陆</title>
<link rel="stylesheet" rev="stylesheet" href="style/login.css" type="text/css" media="all" />
</head>
<body>
<form name="form1" method="post" action="Login.jsp" id="form1">
<div id="login">
<div id="img123"><img src="images/bslogin_02.gif" width="559" height="66"></div>
<div id="denglu">
<table width="550" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="20%"> <div align="right"><img src="images/name.gif" width="11" height="16">
用户名:</div></td>
<td width="18%"><input name="id" type="text" id="id" tabindex="1" class="textbox" style="width:130px;" /></td>
<td width="15%"> <div align="right"><img src="images/mm.gif" width="11" height="12">
密 码: </div></td>
<td align="left"> <input name="pwd" type="password" id="TextBox2" tabindex="2" class="textbox" style="width:130px;" />
</td>
</tr>
<tr>
<td> </td>
<td colspan="2"> <table id="RadioButtonList1" border="0" width="221" height="22">
<tr>
<td><br /></td><td><br></td><td><br /></td><td><br /></td>
</tr>
</table></td>
<jsp:useBean id="log" class="Beans.LoginBean">
<jsp:setProperty name="log" property="*"/>
</jsp:useBean>
<%
int temp;
temp=log.getType();
if (temp==32){
session.putValue("type",String.valueOf(temp));
session.putValue("name",log.getname());
session.putValue("id",String.valueOf(log.getId()));
response.sendRedirect("admin.jsp");
}
else
if (temp>0)
{
session.putValue("type",String.valueOf(temp));
session.putValue("name",log.getname());
session.putValue("id",String.valueOf(log.getId()));
response.sendRedirect("main.jsp");
}
%>
<td align="left"><input type="submit" name="Button1" value=" 登 录 " id="Button1" class="button" />
<input type="submit" name="Button2" value=" 关 闭 " id="Button2" class="button" onclick="window.close();" /></td>
</tr>
</table>
</div>
<map name="Map" id="Map"><area shape="rect" coords="1,2,89,29" href="http://www.zfsoft.com" target="_blank" alt="访问正方软件!" />
</map>
</div>
</form> <br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -