📄 head.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%><%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%> <style type="text/css" media="all"> @import url("css/maven-base.css"); @import url("css/maven-theme.css"); @import url("css/site.css"); @import url("css/screen.css");</style><c:set var="base" value="${pageContext.request.contextPath}" /><html:link href="${base}/index.jsp">回到首页!</html:link><center> <table width="971" height="65" border="0"> <tr> <th width="300" height="61" background="${base}/images/header.jpg" scope="col"> </th> </tr> </table> <table width="973" height="30" border="0"> <tr> <tr> <c:choose> <c:when test="${empty user}"> <td colspan="3" align="left"><html:link action="/login">顾客登录</html:link></td> <c:if test="${empty admin}"> <td colspan="3" align="right"><html:link action="/adminLogin">管理员登录</html:link></td> </c:if> <c:if test="${admin!=null}"> <td><html:link action="/showAdminAll">返回</html:link></td> <td><html:link action="/showAddProduct">添加新书</html:link></td> <td><html:link action="/addType">添加新的分类</html:link></td> <td><html:link action="/addCompany">添加出版社</html:link></td> <td colspan="3" align="right">当前是管理员:${admin.name}登录 <a href="${base}/adminLogout.do" >[退出]</a> </td> </c:if> </c:when> <c:otherwise> <c:if test="${empty admin}"> <td colspan="3" align="left"><html:link action="/adminLogin">管理员登录</html:link></td> </c:if> <c:if test="${user!=null}"> <td colspan="3" align="left"><html:link action="/login">返回</html:link></td> <td colspan="3" align="left"><html:link action="/getType">按分类浏览书籍</html:link></td> <td colspan="3" align="left"><html:link action="/getPub">按出版社浏览书籍</html:link></td> <td colspan="3" align="left"><html:link action="/showCar">查看购物车</html:link></td> <td colspan="3" align="left">欢迎您,${user.name}! <a href="${base}/logout.do" >[退出]</a> </td> </c:if> </c:otherwise> </c:choose> </tr> </table></center>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -