⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 backtop.jsp

📁 这是一个上传下载的原代码
💻 JSP
字号:
<%@page language="java" import="com.model.entity.*,com.project.util.DateTimeUtil" pageEncoding="UTF-8"%>
<%@page import="com.model.entity.NewsInfo"%>
<%NewsInfo newsInfo = new NewsInfo();%>
<%
	UserInfo userInfo = new UserInfo();
	if(session.getAttribute("userInfo") == null){
		response.sendRedirect(request.getContextPath() + "/login.jsp");
	}else{
		userInfo = (UserInfo)session.getAttribute("userInfo");		
	}
%>
<table align="center" width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="100">
            <param name="movie" value="<%=request.getContextPath() %>/jsp/flash/banner.swf" />
            <param name="quality" value="high" />
            <embed src="<%=request.getContextPath() %>/jsp/flash/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="100"></embed>
        </object></td>
      </tr>
      <tr>
        <td width="20" height="27" background="<%=request.getContextPath() %>/jsp/images/dao.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="center" valign="middle"><img src="<%=request.getContextPath() %>/jsp/images/r.jpg" width="9" height="20" /></td>
              
            </tr>
        </table></td>
        <td width="750" background="<%=request.getContextPath() %>/jsp/images/dao.jpg" class="nei20">用户名:<b><%=userInfo.getUserName() %></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <%=DateTimeUtil.getClientDate() %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         <a href="<%=request.getContextPath() %>/showNews.do">返回首页</a>
         <a href="<%=request.getContextPath() %>/out.do">退出系统</a>
        </td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF">
        <table width="780" height="25" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100%">&nbsp;</td>
              <%
              	if("admin".equals(userInfo.getUserName())){
              %>
              <td width="76" height="25" valign="top"><a href="<%=request.getContextPath() %>/bglist.do"><img src="<%=request.getContextPath() %>/jsp/images/button1.gif" width="103" height="25" border="0" /></a>
              <td width="65" height="25" valign="top"><a href="<%=request.getContextPath() %>/jsp/back/BackNewsAdd.jsp"><img src="<%=request.getContextPath() %>/jsp/images/button2.gif"  width="71" height="25" border="0" /></td>
              <td width="63" height="25" valign="top"><a href="<%=request.getContextPath() %>/inforlist.do"><img src="<%=request.getContextPath() %>/jsp/images/button3.gif" width="72" height="25" border="0" /></td>
              <td width="60" height="25" valign="top"><a href="<%=request.getContextPath() %>/bgroll.do?newsId=4028827d153b57b801153b889e7b0010"><img src="<%=request.getContextPath() %>/jsp/images/button4.gif"  width="71" height="25" border="0" /></td>
              <td width="16" height="25" valign="top"><a href="<%=request.getContextPath() %>/service.do"><img src="<%=request.getContextPath() %>/jsp/images/button5.gif"  width="63" height="25" border="0" /></td>
              <%
              	}else{
              %>
              <td width="76" height="25" valign="top"><a href="<%=request.getContextPath() %>/bglist.do"><img src="<%=request.getContextPath() %>/jsp/images/button1.gif" width="103" height="25"  border="0"/></a></td>
              <td width="65" height="25" valign="top"><a href="<%=request.getContextPath() %>/jsp/back/BackNewsAdd.jsp"><img src="<%=request.getContextPath() %>/jsp/images/button2.gif"  width="71" height="25" border="0" /></td>
              <%
              	}
              %>
            </tr>
        </table></td>
      </tr>
    </table>

⌨️ 快捷键说明

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