www.pudn.com > Jsp-Blog.rar > favourite.jsp, change:2010-05-28,size:4374b


<%@page language="java" contentType="text/html;charset=utf-8"%> 
<jsp:directive.page import="java.util.ArrayList" /> 
<jsp:directive.page import="java.util.Iterator" /> 
<jsp:directive.page import="myblog.entity.Logs" /> 
<html> 
	<head> 
			<script type="text/javascript"> 
function manage(logid){ 
document.forms[0].action="/myblog/logAdmin?logid="+logid; 
document.forms[0].submit(); 
} 
 
 
</script> 
 
		<title>收藏首页</title> 
		<link rel="stylesheet" href="css/index.css" type="text/css"> 
	</head> 
	<body> 
		<form action="/myblog/log" method="post"> 
			<table width="800" border="0" cellspacing="0" cellpadding="0"> 
				<tr> 
					<td valign="top"> 
						<img src="images/menu[1].jpg" width="980" height="36" /> 
					</td> 
				</tr> 
				<tr> 
					<td height="168" valign="top" background="images/wrapper[1].jpg"> 
						<table width="915" border="0" cellspacing="0" cellpadding="0"> 
							<tr> 
								<td width="55" height="153" valign="top"> 
									  
								</td> 
								<td width="190" valign="top"> 
									<table width="168" border="0" align="center" cellpadding="0" 
										cellspacing="0"> 
										<tr> 
											<td width="185"> 
												<p> 
													<img src="images/tb032.jpg" width="40" height="40" /> 
													<strong><font color="#FF0000">添加收藏状态窗口</font> </strong> 
												</p> 
												<p> 
													<strong><font color="#FF0000">可以点此<a 
															href="index.jsp">返回</a> </font> </strong> 
												</p> 
											</td> 
										</tr> 
									</table> 
								</td> 
								<td width="64" valign="top"> 
									  
								</td> 
								<td width="707" valign="top"> 
 
									<table width="400" border="0" align="center" cellpadding="4" 
										cellspacing="0"> 
										<tr> 
											<td colspan="2" align="center"> 
												<% 
													Object username = session.getAttribute("username"); 
													Object favlist = request.getAttribute("favlist"); 
													if (favlist != null) { 
														ArrayList list = (ArrayList) favlist; 
														Iterator ite = list.iterator(); 
														while (ite.hasNext()) { 
															Logs log = (Logs) ite.next(); 
												%> 
											 
										<tr> 
											<td width="534"> 
												创建时间: 
												<%=log.getCreatedate()%> 
												     
												<% 
												if (!username.equals("tourist")) { 
												%> 
												<img src="/myblog/images/admin.gif" alt="日志管理" 
													onclick="manage('<%=log.getLogid()%>')"> 
												<% 
												} 
												%> 
											</td> 
										</tr> 
										<tr> 
											<td width="534"> 
												日志标题: 
												<b> <%=log.getLogtitle()%> </b> 
											</td> 
										</tr> 
										<tr> 
											<td width="534"> 
												日志内容: 
												<%=log.getLogcontent()%> 
											</td> 
										</tr> 
										<tr> 
											<td width="534"> 
												<hr color="ff80cc"> 
											</td> 
										</tr> 
										<% 
											} 
											}else{ 
										%> 
										<tr> 
										<td width="534" align="center"> 
										<font color="red">您还没有登录,无法看见您的收藏点此</font><a href="login.jsp">登录</a> 
										</td> 
										</tr> 
										<%} %> 
									</table> 
 
								</td> 
							</tr> 
						</table> 
					</td> 
				</tr> 
				<tr> 
					<td height="116" valign="top" background="images/footer[1].jpg"> 
						<table width="919" border="0" cellspacing="0" cellpadding="0"> 
							<tr> 
								<td width="283" height="94"> 
									  
								</td> 
								<td width="636" valign="top"> 
									<table width="458" height="40" border="0" align="center" 
										cellpadding="0" cellspacing="0"> 
										<tr> 
											<td align="center"> 
												<p> 
													<strong>2010年潍坊学院计算机与通信工程学院毕业设计</strong> 
												</p> 
												<p> 
													<strong>2006级   
														网络工程一班     徐仁强</strong> 
												</p> 
											</td> 
										</tr> 
									</table> 
								</td> 
							</tr> 
						</table> 
					</td> 
				</tr> 
			</table> 
		</form> 
	</body> 
</html>