📄 head_photoselect.jsp~15~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<html>
<head>
<title>
head_PhotoSelect
</title>
</head>
<jsp:useBean id="photo" scope="page" class="OperationDB.operation">
</jsp:useBean>
<jsp:useBean id="p" scope="session" class="Tool.MyPagination">
</jsp:useBean>
<%
String str=(String)request.getParameter("Page");
int Page=1;
List list=null;
if(str==null){
list=photo.findphoto();
int pagesize=6;
list=p.getInitPage(list,Page,pagesize);
}
else{
Page=p.getPage(str);
list=p.getAppointPage(Page);
}
%>
<body bgcolor="#ffffff">
<%
out.println("<br><p align=left> <img src=myimage/icon.gif width=10 height=10> 查询所有的相片</p>");
%>
<table width="470" border="1" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCFFCC">
<%
for(int i=0;i<list.size();i++){
ActionForm.photoActionForm pf=(ActionForm.photoActionForm)list.get(i);
if(i%2==0){
%>
<tr bgcolor="#FFFFFF">
<td width="212"><div align="center">
<table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="150"><div align="center">
<a href="#" onClick="window.open('back_photoSelectOne.jsp?image=<%=pf.getPhotoAddress()%>','','width=600,height=700');">
<img src="<%=pf.getPhotoAddress()%>" alt="" width="140" height="160">
</a></div></td>
</tr>
<tr>
<td height="20"><div align="center"><%=pf.getPhotoDescription()%></div></td>
</tr>
<tr>
<td height="20"><div align="center"><%=pf.getPhotoTime()%></div></td>
</tr>
</table>
</div></td>
<%}else{%>
<td width="261" ><div align="center">
<table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="150"><div align="center">
<a href="#" onClick="window.open('back_photoSelectOne.jsp?image=<%=pf.getPhotoAddress()%>',' ',' width=160 ,height=160');">
<img src="<%=pf.getPhotoAddress()%>" alt="" width="140" height="160">
</a>
</div></td>
</tr>
<tr>
<td height="20"><div align="center"><%=pf.getPhotoDescription()%></div></td>
</tr>
<tr>
<td height="20"><div align="center"><%=pf.getPhotoTime()%></div></td>
</tr>
</table>
</div></td>
</tr>
<%}}%>
<%if(list.size()%2==1){%>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<table width="141" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="141" height="150"><div align="center"></div></td>
</tr>
<tr>
<td height="20"><div align="center"></div></td>
</tr>
<tr>
<td height="20"><div align="center"></div></td>
</tr>
</table>
</div>
</td>
</tr>
<%}%>
</table>
<%=p.printCtrl(Page)%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -