📄 index.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>主页</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 36px}
-->
</style>
</head>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<body>
<c:if test="${sessionScope.admin.quanxian==null}">
必须先登录
<%response.setHeader("refresh","2;URL=login.jsp"); %>
</c:if>
<c:if test="${sessionScope.admin.quanxian==1}">
<table width="600" height="243" border="1" align="center">
<tr>
<td><p align="center" class="STYLE1">欢迎${sessionScope.admin.truename },您所能做的操作是:</p>
<p align="center" class="STYLE1"><a href="search.jsp">模糊查询</a></p>
<p align="center" class="STYLE1"><a href="del.do">删除</a></p>
<p align="center" class="STYLE1"><a href="edit.do">修改</a></p>
<p align="center" class="STYLE1"><a href="searchall.do">全部查询</a></p>
<p align="center" class="STYLE1"><a href="exit.do">退出</a></p></td>
</tr>
</table>
</c:if>
<c:if test="${sessionScope.admin.quanxian==2}">
<table width="600" height="243" border="1" align="center">
<tr>
<td><p align="center" class="STYLE1">欢迎${sessionScope.admin.truename },您所能做的操作是:</p>
<p align="center" class="STYLE1"><a href="search.jsp">模糊查询</a></p>
<p align="center" class="STYLE1"><a href="editself.jsp">修改</a></p>
<p align="center" class="STYLE1"><a href="searchall.do">全部查询</a></p>
<p align="center" class="STYLE1"><a href="exit.do">退出</a></p></td>
</tr>
</table>
</c:if>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -