📄 albumlist.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="../../lybbs/jsp/common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:blog key="blogName"/>--相册--照片列表</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="../../lybbs/jsp/common/include/header.jsp" %>
<style type="text/css">
.titletd {
FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #282828
}
.titletable {
BORDER-RIGHT: #333333 1px dashed; BORDER-TOP: #333333 1px dashed; FILTER: Alpha(Opacity=65); BORDER-LEFT: #333333 1px dashed; BORDER-BOTTOM: #333333 1px dashed; BACKGROUND-COLOR: #ffffff
}
.holderbox {
BORDER-RIGHT: #f0f0f0 3px solid; PADDING-RIGHT: 0px; BORDER-TOP: #f0f0f0 3px solid; PADDING-LEFT: 30px; FONT-SIZE: 12px; FLOAT: left; PADDING-BOTTOM: 10px; OVERFLOW: hidden; BORDER-LEFT: #f0f0f0 3px solid; WIDTH: 175px; PADDING-TOP: 10px; BORDER-BOTTOM: #f0f0f0 3px solid; HEIGHT: 175px
}
</style>
<SCRIPT language="JavaScript">
function doDeleteAlbum(id){
if(confirm('确定要删除此文件吗?')) {
document.myform.action="blog_albumUpload.do?action=delete&albumID="+id;
document.myform.submit();
}
}
function uploadPhoto(url, width, height) {
window.open(url, "attachment", "statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
}
</SCRIPT>
</head>
<bean:define id="currentUserID" name="userBean" property="authorID" scope="session"/>
<body topmargin=0 leftmargin=0>
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
<TR>
<TD class=noBgStyle id=blogTitleBg background="lyblog/images/title_bg.jpg">
<TABLE width=100% cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD height=94>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<tr>
<td class=menuStyle height=22>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=left>
<lybbs:typeUserHeaderTag forumID="0"/>
</td>
<td align=right>
<lybbs:web key="returnHomeLink"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center >
<tr>
<td bgcolor="#FFFFFF">
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign=top width=70><img src="lyblog/images/face.gif" border="0"></td>
<td valign=top>
<h3><a href="blog_album.do?userID=<bean:write name="albumDir" property="userID" scope="request"/>"><bean:write name="albumDir" property="userName" scope="request"/>的相册</a></h3>
<a href="bbs_index.do">论坛</a> | <a href="blog_index.do">博客</a><logic:equal name="albumDir" property="userID" value="<%=currentUserID.toString()%>" scope="request"> | <a href="javascript:uploadPhoto('blog_albumUpload.do?action=create&albumDirID=<bean:write name="albumDir" property="albumDirID" scope="request"/>', 580, 480)">上传照片</a></logic:equal>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#F5F5FA">
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign=top width=70>
<img src="<bean:write name="albumDir" property="dirImg" scope="request"/>" width=65 border=0>
</td>
<td valign=top>
<h3><bean:write name="albumDir" property="dirName" scope="request"/></h3>
<bean:write name="albumDir" property="dirDescription" scope="request"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#F5F5FA">
<logic:iterate id="element" name="albumFileList" scope="request">
<div class=holderbox>
<a href="blog_albumDetail.do?dirID=<bean:write name="albumDir" property="albumDirID" scope="request"/>&userID=<bean:write name="albumDir" property="userID" scope="request"/>&albumID=<bean:write name="element" property="albumID"/>&fileSize=<bean:write name="element" property="fileSize"/>" target=_blank><img src="<bean:write name="element" property="fileZoomPath"/>" border=0></a><br>
<bean:write name="element" property="fileRealName"/><br>
<logic:equal name="albumDir" property="userID" value="<%=currentUserID.toString()%>" scope="request">
<a href="blog_albumUpload.do?action=edit&albumID=<bean:write name="element" property="albumID"/>"><img src="lyblog/images/icon_modify.gif" border=0></a> <a href="javascript:doDeleteAlbum(<bean:write name="element" property="albumID"/>);"><img src="lyblog/images/icon_del.gif" border=0></a>
</logic:equal>
<logic:notEqual name="albumDir" property="userID" value="<%=currentUserID.toString()%>" scope="request">
<logic:equal name="userBean" property="userMode" value="7" scope="session">
<a href="blog_albumUpload.do?action=edit&albumID=<bean:write name="element" property="albumID"/>"><img src="lyblog/images/icon_modify.gif" border=0></a> <a href="javascript:doDeleteAlbum(<bean:write name="element" property="albumID"/>);"><img src="lyblog/images/icon_del.gif" border=0></a>
</logic:equal>
</logic:notEqual>
</div>
</logic:iterate>
</td>
</tr>
<tr>
<td bgcolor="#F5F5FA">
<bean:write name="pageUtils" property="pageInfo" filter="false"/>
</td>
</tr>
</table>
<lybbs:web key="foot"/>
<div style="display:none">
<form name="myform" method="post">
<input type=hidden name="sessionToken" value="<%=StringUtils.getSessionToken(request)%>">
</form>
</div>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -