📄 myphoto.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page import="org.apache.struts.action.*,java.util.*,cn.com.tym.table.bean.*,cn.com.tym.pub.Constants"%>
<%@ page import="cn.com.tym.vip.*" %>
<%@ page import="cn.com.tym.admin.*"%>
<%@ page import="cn.com.tym.pub.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
document.doue.submit()
}
//-->
</script>
<table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td ><table width="578" border="0" cellpadding="0" cellspacing="0" class="Song_12_333333">
<tr>
<td width="187" align="left" valign="middle"><img src="images/icon_9.gif" width="22" height="22" hspace="5" align="absmiddle" />当前位置 > 我的相册</td>
<td width="391" align="right" valign="baseline"> <form name="doue" action='PhotoAction.do?method=myPhotoList&mmId=<%=(String)request.getAttribute("mmId")%>' id="form1" method="post">选择目录:
<select name="dirname" onchange="MM_jumpMenu('parent',this,0)">
<option value="">---请选择--</option>
<logic:present name="result" scope="request">
<logic:iterate id="arraylist" name="result">
<option value="<bean:write name="arraylist" property="photofileId"/>">
<bean:write name="arraylist" property="filename" />
</option>
</logic:iterate>
</logic:present>
</select>
</form></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> <table width="100%" height="126" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
ArrayList list=(ArrayList)request.getAttribute("photo");
Iterator it=list.iterator();
for(int i=1;i<=list.size();i++){
MyphotoBean bean=(MyphotoBean)it.next();
if ((i%4)!=0){
%> <td width="236"><table width="100"
border="0" align="left" cellpadding="0" cellspacing="1" class="albtd01">
<tbody>
<tr>
<td class="albtd02"><table cellspacing="0" cellpadding="8" width="70%"
border="0">
<tbody>
<tr>
<td align="middle" ><a href="#"><img src="<%=bean.getPhotoPath()%>" width="110" height="83" border="1" /></a></td>
</tr>
</tbody>
</table>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td class="Song_12_FF6600"><%=bean.getPhotoName()%></td>
</tr> <%
String id=((RegisterBean)request.getSession().getAttribute("user")).getRid();
String mmId=(String)request.getAttribute("mmId");
if(id.equals(mmId)){
%>
<tr>
<td align="left" valign="middle" class="Song_12_333333"><a href="PhotoAction.do?method=deletePhoto&photoId=<%=bean.getPhotoId()%>&mmId=<%=(String)request.getAttribute("mmId")%>" >删除</a> <a href="PhotoAction.do?method=myGoodPhoto&photoId=<%=bean.getPhotoId()%>" target="_blank">设置为形象图</a> <a href="PhotoAction.do?method=myPhotoLock&photoId=<%=bean.getPhotoId()%>" target="_blank">锁定</a></td>
</tr><%}%>
</table>
</td>
</tr>
</tbody>
</table></td>
<% }else{%>
<td ><table width="100"
border="0" align="left" cellpadding="0" cellspacing="1" class="albtd01">
<tbody>
<tr>
<td class="albtd02"><table cellspacing="0" cellpadding="8" width="70%"
border="0">
<tbody>
<tr>
<td align="middle" ><a href="#"><img src="<%=bean.getPhotoPath()%>" width="110" height="83" border="1" /></a></td>
</tr>
</tbody>
</table>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td class="Song_12_FF6600"><%=bean.getPhotoName()%></td>
</tr> <%
String id=((RegisterBean)request.getSession().getAttribute("user")).getRid();
String mmId=(String)request.getAttribute("mmId");
if(id.equals(mmId)){
%>
<tr>
<td align="left" valign="middle" class="Song_12_333333"><a href="PhotoAction.do?method=deletePhoto&photoId=<%=bean.getPhotoId()%>&mmId=<%=(String)request.getAttribute("mmId")%>" >删除</a> <a href="PhotoAction.do?method=myGoodPhoto&photoId=<%=bean.getPhotoId()%>" target="_blank">设置为形象图</a> <a href="PhotoAction.do?method=myPhotoLock&photoId=<%=bean.getPhotoId()%>" target="_blank">锁定</a></td>
</tr><%}%>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
<% }
}%>
</table></td>
</tr>
<tr>
<td colspan="1" align="center" bgcolor="#F5F5F5" class="Song_12_333333">
<jsp:include page="../../welcome/pagelables.jsp"/> </td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -