📄 back_photoselect.jsp~14~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.ArrayList" %>
<html>
<head>
<title>
back_photoSelect
</title>
</head>
<script language="javascript" type="text/javascript">
function deletephoto(id){
if(confirm("你真的想删除此相片吗?")){
window.location.href="deletePhotoAction.do?sign="+7+"&id="+id;
}
}
</script>
<jsp:useBean id="photo" scope="session" class="OperationDB.operation">
</jsp:useBean>
<body bgcolor="#ffffff">
<table width="573" border="0" align="center" cellpadding="0" cellspacing="0" background="images/back1.gif">
<tr>
<td width="573" valign="top"><table width="227" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="myimage/back_noword_03.jpg" width="573" height="25" alt=""></td>
</tr>
</table>
<table width="573" border="0" cellpadding="0" cellspacing="0" background="images/back_noword_05.jpg">
<tr>
<td valign="top" align="center">
<%out.println("<p align=left> <img src=myimage/icon.gif width=10 height=10> 相片查询</p>");%>
<table width="455" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#9A9EC5">
<% ArrayList list=photo.findphoto();
for(int i=0;i<list.size();i++){
ActionForm.photoActionForm paf=(ActionForm.photoActionForm)list.get(i);
if(i%2==0){
%>
<tr bgcolor="#FFFFFF">
<td width="230"><div align="center">
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="150"><div align="center"><a href="#" onClick="window.open('back_photoSelectOne.jsp?image=<%=paf.getPhotoAddress()%>','','width=600,height=700');"><img src="<%=paf.getPhotoAddress()%>" width="160" height="140" alt=""></a></div></td>
</tr>
<tr>
<td height="20"><div align="center"><%=paf.getPhotoDescription()%></div></td>
</tr>
<tr>
<td height="20"><div align="center"><a href="javascript:deletephoto('<%=paf.getId()%>')">删除</a></div></td>
</tr>
</table>
</div></td>
<%}else{%>
<td width="212"><div align="center">
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="150"><div align="center"><a href="#" onClick="window.open('back_photoSelectOne.jsp?image=<%=paf.getPhotoAddress()%>','','width=600,height=700');"><img src="<%=paf.getPhotoAddress()%>" width="160" height="140" alt=""></a></div></td>
</tr>
<tr>
<td height="20"><div align="center"><%=paf.getPhotoDescription()%></div></td>
</tr>
<tr>
<td height="20"><div align="center"><a href="javascript:deletephoto('<%=paf.getId()%>')">删除</a></div></td>
</tr>
</table>
</div> </td>
</tr>
<%}
}%>
<%if(list.size()%2 ==1){%>
<td bgcolor="#FFFFFF"><div align="center">
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td 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>
</td>
</tr>
</table>
<table width="227" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="myimage/back_noword_18.jpg" width="573" height="21" alt=""></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -