⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mypic.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
	String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");
	String strFileType = igec.util.Tool.getStr(request.getParameter("type"));
	if(igec.util.Tool.IsEmpty(strFileType)) strFileType = "pic";
	String fun=igec.util.Tool.getStr(request.getParameter("fun"));//用户自定义函数,返回一个参数path 
	java.util.ArrayList list=new java.util.ArrayList();
  igec.site.base.bean.SysObj lo = new igec.site.base.bean.SysObj();  
  lo.setStrValue1(user.getStrUserId());
  lo.setStrValue2(strFileType);
  
  int	flag = site.business.MebPicInfoBusiness.getManageLists(list,lo,request);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title> 会员办公室--<%=site.bean.SitePara.strWebTitle%> </title>
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/content.css" type="text/css" />
<script language="javascript">
<!--
function setPic(strValue,strType){
	 <%if(!igec.util.Tool.IsEmpty(fun)){%> 
       window.opener.<%=fun%>(strValue,strType);
	 <%}else{%>
		 if(typeof(window.opener)=="undefined"){
	 	 	returnValue = strValue;
		 }else{
		 	alert("您没有提供返回函数!");
	   	return;
		 }
	 <%}%>
    window.close();
 }
 //-->
</script>
</head>
  
 <body leftmargin="0" topmargin="0">
  <input type='hidden' name="pic" id="pic" /> 
  <table border="0" width="95%" id="table2" class="PopTable" align="center">
  <tr>
  <th class="PopTableHeader">
   请选择您的图片(点击图片)
  </th>
  </tr>
  </table>
  <%if(list!=null&&list.size()>0){ 
      for(int i=0;i<list.size();){
%>
 <table border="0" width="95%" id="table24" class="PopTable" align="center">
 <tr>
<% 	
      	for(int n=0;n<4;n++){
      		if(i<list.size()){
      			 site.bean.MebPicInfoObj info = (site.bean.MebPicInfoObj)(list.get(i));
      			 if("0".equals(info.getStrFileType())){
%>	
		 <td align="center" height="100" width="100" class="PopTableData">
         <a onclick="javascript:setPic('<%=info.getFurl()%>','0');return true;" style="cursor:hand"><img src="<%=site.bean.SitePara.strVirtualName+info.getFurl()%>" onload="javascript:if(this.height>100){this.height=100} if(this.width>100){this.width=100}"></a>
		 </td>
<%  			 
				}else if("1".equals(info.getStrFileType())){
%>		
		 <td align="center" height="100" width="100" class="PopTableData">
         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="90">
				<param name="movie" value="<%=site.bean.SitePara.strVirtualName+info.getFurl()%>" />
				<param name="quality" value="high" />
				<embed src="<%=site.bean.SitePara.strVirtualName+info.getFurl()%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="90"></embed>
				</object>
				<br><input type="radio" onclick="javascript:setPic('<%=info.getFurl()%>','1');" id="SR<%=info.getId()%>"><label for="SR<%=info.getId()%>">选中</label>
		 </td>
<%
			}
      		}else{
%>
		 <td align="center" height="80" width="25%">
       &nbsp;
		 </td>
<%
      		}
      		i++;
      	}
%>	  
		</tr>
    </table>
<%
      }
}else{
	out.println("<div align=center>您没有图片</div>");
}%> 
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <td height="50" align="center">
         <input type="button" style="button1" name="btnClose" onclick="javascript:window.close();" value="关闭" /></td>
      </tr> 
  </table> 
 </body>
 </html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -