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

📄 backnote.jsp

📁 一个仿造淘宝的jsp网站。功能比较完善
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:useBean id="masterbean"
	class="com.jc.taobao.gjj.logic.MasterNoteBean" scope="session" />
<jsp:useBean id="masternote" class="com.jc.taobao.gjj.entity.MasterNote"
	scope="session" />
<jsp:useBean id="followbean"
	class="com.jc.taobao.gjj.logic.FollowNoteBean" scope="session" />
<jsp:useBean id="follownote" class="com.jc.taobao.gjj.entity.FollowNote"
	scope="session" />
<jsp:useBean id="user" class="com.jc.taobao.gjj.entity.UserInfo"
	scope="session" />
<jsp:useBean id="userbean" class="com.jc.taobao.gjj.logic.UserInfoBean"
	scope="session" />
<jsp:useBean id="photo" class="com.jc.taobao.gjj.entity.PhotoInfo"
	scope="session" />
<jsp:useBean id="photobean"
	class="com.jc.taobao.gjj.logic.PhotoInfoBean" scope="session" />
<jsp:useBean id="mode" class="com.jc.taobao.gjj.entity.ModeInfo"
	scope="session" />
<jsp:useBean id="modebean" class="com.jc.taobao.gjj.logic.ModeInfoBean"
	scope="session" />
<%@  page import="com.jc.taobao.gjj.entity.*"%>
<%@  page import="com.jc.taobao.gjj.logic.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'BackNote.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

		<link href="CSS/backnote.css" rel="stylesheet" type="text/css">
		<style type="text/css">
<!--
.style1 {font-size: 24px}
.style2 {font-size: 16px}
.style7 {
	font-size: 14px;
	font-weight: bold;
	color: #057198;
}
.style8 {font-size: 13px; }
.style9 {color: #4B6EA6}
.style10 {color: #FF9900}
.style14 {font-size: 14}
.style16 {font-size: 13px; font-weight: bold; }
.style18 {font-size: 14px}
.style19 {font-size: 12px}
.style20 {color: #FF6633}
-->
    </style>
		<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
    </script>
		<script type="text/javascript" src="js/ubb.js"></script>
		<script type="text/javascript" src="js/Random.jsp"></script>
		<script type="text/javascript">
		   function myclickfromseemode(obj)
		   {
		     document.getElementById("frommodeservletid").value=obj;
		     document.frommode.submit();
		   }
		</script>
	</head>

	<body>
		<div id="backbuttomdiv">
			<div id="backtop">
				<img src="image/gao/12.jpg" width="986" height="107">
			</div>
			<div id="backtop2" align="left">
				<table width="986" height="25" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td bgcolor="#F0F0F0">
							<span class="style8"> <%
 	String username = (String) session.getAttribute("loginusername");
 	if (username == null) {
 		out.print("你好,");
 	} else {
 %> <%=username%>, <%
 }
 %>欢迎您来淘宝论坛!</span>
						</td>
					</tr>
				</table>
				<form action="servlet/Forum1fromSeeModeServlet" name="frommode">
				<input type="hidden" id="frommodeservletid" name="frommodeservlet">
				</form>
			</div>
			<%
						ArrayList array = (ArrayList) session
						.getAttribute("arraymasterinformation");

				if (!array.isEmpty() || array.size() != 0) {
					masternote = (MasterNote) array.get(0);
			%>
			<div id="backtop3">
				<table width="986" height="73" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td height="13">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td height="23">
							<img src="image/taobaoluntan/home.gif" width="20" height="20">
							&nbsp;&nbsp;&nbsp;&nbsp;
							<span class="style7"><a href="Forum1.jsp">淘宝论坛</a>
								&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp; <a href="javascript:myclickfromseemode('<%=masternote.getModeid() %>')"><%=((ModeInfo) modebean.getquerybymodeid(
											Integer.valueOf(masternote.getUserid())).get(0)).getModelname() %>
							</a>&nbsp;&nbsp; &gt;&gt; &nbsp;&nbsp;<a href="javascript:window.history.go(0);"><%=masternote.getMastertitle() %>
							</a>
							</span>
						</td>
					</tr>
					<tr>
						<td height="31" align="left" valign="middle">
							<div align="right">
								<img src="image/taobaoluntan/reply.png" width="114" height="24">
								&nbsp;&nbsp;&nbsp;
								<img src="image/taobaoluntan/reply.png" width="114" height="24">
							</div>
						</td>
					</tr>
				</table>
			</div>
			<div id="backnavigation1">
			</div>


			<div id="backfont">
				<div id="backfontleft">
					<table width="187" height="501" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td height="34" bgcolor="#F4FBFF">
								<div align="center" class="style2">
									<%=((UserInfo) ((ArrayList) userbean
								.getquerybyuserid(Integer.valueOf(masternote
										.getUserid()))).get(0)).getUsername()%>
								</div>
							</td>
						</tr>
						<%
								int photoid = ((UserInfo) ((ArrayList) userbean
								.getquerybyuserid(Integer.valueOf(masternote
										.getUserid()))).get(0)).getPhotoid();
								String photopath = ((PhotoInfo) ((ArrayList) photobean
								.getquerybyphotoid(Integer.valueOf(photoid))).get(0))
								.getPhotopath();
						%>
						<tr>
							<td height="140" bgcolor="#F4FBFF">
								<div align="center" class="style1">
									<img src="<%=photopath%>" width="101" height="101">
								</div>
							</td>
						</tr>
						<tr height="43">
							<td bgcolor="#F4FBFF">
								<div align="center">
									<img src="image/taobaoluntan/huiyuanleibie.gif">
								</div>
							</td>
						</tr>
						<tr>
							<td height="211" valign="top" bgcolor="#F4FBFF">
								<table width="196" height="201" border="0" cellpadding="0"
									cellspacing="0">
									<tr>
										<td height="34" colspan="2">
											&nbsp;
										</td>
									</tr>
									<%
											user = (UserInfo) userbean.getquerybyuserid(
											Integer.valueOf(masternote.getUserid())).get(0);
									%>
									<tr>
										<td width="58" height="35">
											<div align="center">
												<img src="image/taobaoluntan/emailme.gif">
												:
											</div>
										</td>
										<td width="138">
											<span class="style8">
												<%
												out.print(user.getUseremail());
												%>
											</span>
										</td>
									</tr>
									<tr>
										<td height="35">
											<div align="center">
												<img src="image/taobaoluntan/oicqme.gif">
												:
											</div>
										</td>
										<td>
											<span class="style8">
												<%
												out.print(user.getUsertel());
												%>
											</span>
										</td>
									</tr>
									<tr>
										<td height="35">
											<div align="center">
												<img src="image/taobaoluntan/Profile.gif">
												:
											</div>
										</td>
										<td>
											<span class="style8">有信息<%=followbean.getFollownotCountbymid(Integer.valueOf(masternote.getMid()))%>条</span>
										</td>
									</tr>
									<%
											mode = (ModeInfo) modebean.getquerybymodeid(
											Integer.valueOf(masternote.getUserid())).get(0);
									%>
									<tr>
										<td height="35">
											<div align="center">
												<img src="image/taobaoluntan/homepage.gif">
												:
											</div>
										</td>
										<td>
											<span class="style8">
												<%
												out.print(mode.getModelname());
												%>
											</span>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td bgcolor="#F4FBFF">
								<div align="center" class="style1"></div>
							</td>
						</tr>
					</table>
				</div>

				<div id="backfontright">
					<table width="784" height="502" border="0" cellpadding="0"
						cellspacing="0">
						<tr height="20">
							<td height="46">
								<div align="center">
									<img src="image/gao/2.jpg" width="753" height="30">
								</div>
							</td>
						</tr>
						<tr height="20">
							<td height="37">
								&nbsp;&nbsp;&nbsp;&nbsp;主题:
								<%
								out.print(masternote.getMastertitle());
								%>
							</td>
						</tr>
						<tr height="20">
							<td height="37">
								&nbsp;&nbsp;&nbsp;&nbsp;帖子内容:
							</td>

⌨️ 快捷键说明

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