📄 lefts.jsp
字号:
<%@ page language="java" import="java.util.*,com.Bean.*"
pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%
Quanxian q = new Quanxian();
ArrayList lst = (ArrayList) q.selQuanxian();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'Lefts.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript" language="JavaScript">
function isNull()
{
if(document.form1.userName.value=="" || document.form1.userPassword.value=="")
{
alert("您还未登录!");
return false;
}
return true;
}
</script>
</head>
<body target='_left'>
<img border="0" src="60155.gif" width="200" height="143">
<br>
<br>
<br>
<form method="post" action="login" name="form1" target="_top">
<table width="223" border="1" height="161">
<tbody>
<tr>
<td>
<font size="2">用户名</font>
<br>
</td>
<td>
<input type="text" name="userName" size="16" maxlength="16"
align="center">
</td>
</tr>
<tr>
<td>
<font size="2">密码</font>
</td>
<td>
<input type="password" name="userPassword" size="16"
maxlength="16">
</td>
</tr>
<tr>
<td>
<font size="2">权限</font>
</td>
<td>
<input type="radio" value="1" name="quanxian">
<font size="2" color="blue">管理员</font>
<input type="radio" checked="true" value="2" name="quanxian">
<font size="2" color="blue">普通用户</font>
</td>
</tr>
</tbody>
</table>
<br>
<input type="reset" value="取消" name="button1">
<input type="submit" value="登录" name="button2" onclick="return isNull();">
</form>
<br>
<p></p>
<p>
<a href='UserZhuCe.jsp' target='mainFrame'>申请注册</a>
<br>
<br>
<!--<a href='indexs.jsp' target='_top' >点击进入后台</a> -->
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -