navigation.jsp

来自「这是一个上传下载的原代码」· JSP 代码 · 共 48 行

JSP
48
字号
<%@ page language="java" import="com.model.entity.*,com.project.util.DateTimeUtil" pageEncoding="UTF-8"%>
<%
	UserInfo userInfo = new UserInfo();
	if(session.getAttribute("userInfo") == null){
		response.sendRedirect(request.getContextPath() + "/login.jsp");
	}else{
		userInfo = (UserInfo)session.getAttribute("userInfo");		
	}
 %>
<table width="188" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="26" background="<%=request.getContextPath() %>/jsp/images/lanbiao11.jpg" class="hei25"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;栏目导航 </div></td>
                </tr>
                <tr>
                  <td valign="top" background="<%=request.getContextPath() %>/jsp/images/lanbiao1.jpg"><table width="188" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="41" align="center" valign="middle" class="nei25"><img src="<%=request.getContextPath() %>/jsp/images/dh.jpg" width="4" height="8" /></td>
                        <td width="147" class="song30"><a href="<%=request.getContextPath() %>/colligateInfo.do">综合信息</a></td>
                      </tr>
                      <tr>
                        <td align="center" valign="middle" class="nei25"><img src="<%=request.getContextPath() %>/jsp/images/dh.jpg" width="4" height="8" /></td>
                        <td class="song30"><a href="<%=request.getContextPath() %>/economyInfo.do">经济运行工作</a></td>
                      </tr>
                      <tr>
                        <td width="41" align="center" valign="middle" class="nei25"><img src="<%=request.getContextPath() %>/jsp/images/dh.jpg" width="4" height="8" /></td>
                       <%
                       	if("admin".equals(userInfo.getUserName())){
                       %> 
                        <td class="song30"><a href="<%=request.getContextPath() %>/cityCircsInfo.do">地方动态</a></td>
                       <%
                       }else{
                       %>
                        <td class="song30"><a href="<%=request.getContextPath() %>/cityCircsInfo.do">地方动态</a></td>
                       <%
                       }
                        %>
                      </tr>
                      <tr>
                      	<td width="41" align="center" valign="middle" class="nei25"><img src="<%=request.getContextPath() %>/jsp/images/dh.jpg" width="4" height="8" /></td>
                      	<td class="song30"><a href="JavaScript:revert();">数据反馈</a></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="2"><img src="<%=request.getContextPath() %>/jsp/images/lanbiao2.jpg" width="188" height="2" /></td>
                </tr>
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?