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

📄 hd.jsp

📁 --- --^_^-------------- 广师公寓中心 1.请装上j2sdk和Tomcat。 2.然后在把此文件解压到到Tomcat的安装目录的webapps目录下
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%
int counter=0;
Cookie cookies[]=request.getCookies();
if(cookies!=null){
   for(int i=0;i<cookies.length;i++){
       if(cookies[i].getName().equals("counter"))
	       counter=Integer.parseInt(cookies[i].getValue());
		  }
}
%> 
<%
if(session.getAttribute("login")== null)
  {%>
  <jsp:forward page="login.jsp"/>
  <%}
%>
<html>
<head>
<title>后台管理</title>
<style type="text/css">
<!--
table {
	font-family: "宋体";
	font-size: 14px;
	color: #000000;
}
.unnamed1 {
	border-right-style: dashed;
	border-right-color: #000000;
	border-right-width: thin;
}
.unnamed2 {
	border-bottom-width: thin;
	border-bottom-style: dashed;
	border-bottom-color: #000000;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/background.gif">
<!-- ImageReady Slices (glry) -->
<table id="__01" width="680" height="425" border="0" cellpadding="0" cellspacing="0" align="center" background="images/glry_11.gif">
  <!--DWLayoutTable-->
	<tr>
		<td height="55" colspan="6">
			<img src="images/glry_01.gif" width="680" height="55" alt=""></td>
	</tr>
	<tr>
		<td height="46" colspan="6">
			<img src="images/glry_02.gif" width="680" height="46" alt=""></td>
	</tr>
	<tr>
		<td height="41" colspan="6">
			<img src="images/glry_03.gif" width="680" height="41" alt=""></td>
	</tr>
	<tr>
		<td colspan="6" background="images/glry_04.gif" height="20" alt="">
			<font color="#FF0000" size="2"><jsp:include page="time.htm"/>
<%
    if(counter==0){
 //if(session.getAttribute("counter1") == null){
    out.print("欢迎首次光临!");
	}
else{
    out.print("今天您已经光临了"+counter+"次!");
	//out.print("您已经光临了"+session.getAttribute("counter1")+"次!");
    }
%></font></td>
	</tr>
	<tr>
		<td width="115" height="19">
			<a href="gongyu.jsp"><img src="images/glry_05.gif" alt="" width="115" height="19" border="0"></a></td>
		<td width="113">
			<a href="ry.jsp"><img src="images/glry_06.gif" alt="" width="113" height="19" border="0"></a></td>
		<td width="112">			
		    <a href="xszs.jsp"><img src="images/glry_07.gif" alt="" width="112" height="19" border="0"></a></td>
		<td width="113">
			<a href="wh.jsp"><img src="images/glry_08.gif" alt="" width="113" height="19" border="0"></a></td>
		<td width="113">
			<a href="lx.jsp"><img src="images/glry_09.gif" alt="" width="113" height="19" border="0"></a></td>
		<td width="114">
			<a href="hd.jsp"><img src="images/glry_10.gif" alt="" width="114" height="19" border="0"></a></td>
	</tr>
		<tr>
		<td colspan="6" background="images/glry_04.gif" height="20" alt="" bordercolorlight="#009999" class="unnamed2"><div align="left"><a href="gongyu.jsp">首页</a>>>后台管理                                      <a href="zhexiao.jsp">注销<%=session.getAttribute("username")%></a></div></td>
	</tr>
	<tr>
		<td height="197" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="unnamed1">
		  <!--DWLayoutTable-->
		            <tr>
		              <td width="113" height="7"></td>
                    </tr>
		            <tr>
		              <td height="22" valign="top"><a href="hd1.jsp"><img src="images/glry_06.gif" alt="" width="113" height="19" border="0"></a></td>
	                </tr>
		            <tr>
		              <td height="11"></td>
          </tr>
		            <tr>
		              <td height="20" valign="top"><a href="zs.jsp"><img src="images/glry_07.gif" alt="" width="112" height="19" border="0"></a></td>
	                </tr>
		            <tr>
		              <td height="11"></td>
          </tr>
		            <tr>
		              <td height="23" valign="top"><a href="hd3.jsp"><img src="images/glry_08.gif" alt="" width="113" height="19" border="0"></a></td>
	                </tr>
		            <tr>
		              <td height="9"></td>
          </tr>
		            <tr>
		              <td height="23" valign="top"><a href="hd4.jsp"><img src="images/glry_09.gif" alt="" width="113" height="19" border="0"></a></td>
	                </tr>
		            <tr>
		              <td height="9"></td>
          </tr>
		            <tr>
		              <td height="23" valign="top"><a href="hd6.jsp"><img src="images/glry_13.gif" alt="" width="113" height="19" border="0"></a></td>
	                </tr>
		            <tr>
		              <td height="47">&nbsp;</td>
          </tr>
	    </table></td>
	    <td colspan="5" valign="top"><div align="center">
	      <p>&nbsp;</p>
	      <p><font size="+2">欢迎^_^<font color="#FF0000"><%=session.getAttribute("username")%></font>^_^</font></p>
	    </div></td>
    </tr>
	<tr>
		<td height="48" colspan="6">
			<img src="images/glry_12.gif" width="680" height="48" alt=""></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>

⌨️ 快捷键说明

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