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

📄 photoxg.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ include file="/inc/pv/user.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>

<%
	if(checkPv(strMenuId,"add",user)<0){
		noPv(out);
		return;
	}
	String strOfficeStyle = site.bean.SitePara.strVirtualName + "/member/" + igec.util.CookieUtil.getCookieValue(request,site.bean.SitePara.strCookieUserTheme,"stand");

    site.bean.MebPhotoObj info=new site.bean.MebPhotoObj();
	igec.site.base.bean.LongSysObj lo=new  igec.site.base.bean.LongSysObj();
	lo.setStrValue1(igec.util.Tool.getStr(request.getParameter("id"))); 
    lo.setStrValue2("1");
    lo.setStrValue3(user.getStrUserId());
	    //getStrValue1 id,
    	//getStrValue2 flag 1 meber,0其他
	    //getStrValue3 mebid 
     info=site.business.MebPhotoBusiness.getMebPhoto(lo);
%>
<!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>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/clear.jsp"></script>
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script> 
<script language="JavaScript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/CalendarDlg.js"></script>
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/content.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/tree.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/mainframe.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="<%=strOfficeStyle%>/css/css.css" type="text/css" />
<script type="text/javascript" src="<%=site.bean.SitePara.strVirtualName%>/member/js/tree.jsp?baseurl=<%=strOfficeStyle%>"></script> 
<link rel="shortcut icon" href="<%=site.bean.SitePara.strVirtualName%>/favicon.ico">
<script>

function showpictype(){
   var sel=document.getElementById("islocal"); 
   if(sel.value=="1"){
	   document.getElementById("webtable").style.display="none";
	    document.getElementById("loctable").style.display="";
   }
   else{
	   document.getElementById("webtable").style.display="";
       document.getElementById("loctable").style.display="none";
   }
}
window.onload=showpictype;
window.resizeTo(830,600);

function init(){
  <%if(info!=null){%>
    SetSelValue("classid","<%=info.getClassid()%>");
  <%}%>
	showpictype();
} 
</script>
</head>  
  <body onload="init();">
<form  name="myform" id="myform" action="<%=site.bean.SitePara.strVirtualName%>/member/photo.do" onsubmit="return CheckForm(this);" target="ifrTarget"  method="post">
<input type="hidden" name="opt" id="opt" value="opu" /> 
<input type="hidden" name="iid" id="iid" value="<%=strMenuId%>" />
<input type="hidden" name="id" id="id" value="<%=info.getId()%>" />
<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0" >
    <tr>
      <td height="50"><font color="#112382" class="font14"><strong>&nbsp;&nbsp;&nbsp;&nbsp;</strong></font>
        <table  width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="77%"><font color="112382" class="font14"><strong>发布相册信息</strong></font></td>
            <td width="23%">&nbsp;</td>
          </tr>
        </table>
		<div class="TableContenttop"><img src="images/bg_fd790d.gif" width="5" height="2" /></div>
      </td>
    </tr>
    <tr style="display:none">
      <td height="110" valign="middle"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border2">
        <tr>
          <td height="30" class="font14"><font color="#ff5400"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 友情提示:</strong></font></td>
        </tr>
        <tr>
          <td> &nbsp;&nbsp;&nbsp; <span class="zi20">如果您的信息里涉及到行业里的很多分类,建议您将信息分开发。例如你要发供应冷轧板201\202\301,可分发为三条信息:供应冷轧板201;供应冷轧板202;供应冷轧板301。PS:发商机时请确保您的商机类型与内容符合,否则,本站将直接删除不符合的商机。</span></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="39" valign="middle"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="20">提示:带<font color="ff0000"> * </font>为必填项</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="110" valign="top">
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dedede"> 
		 <tr>
          <td height="30" align="right" bgcolor="#f5f5f5"><strong>相册分类:</strong><font color="ff0000"> * </font>&nbsp;</td>
          <td height="20" bgcolor="#FFFFFF"> &nbsp;
          <select name="classid" id="classid" label="相册分类">          
				  <option value="">请选择分类</option>
          <script src="<%=site.bean.SitePara.strVirtualName%>/dynamic/js/memberclass.jsp?posid=S00002&typeflag=0&mebid=<%=user.getStrUserId()%>"></script> 
          </select>&nbsp;</td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#f5f5f5"><strong>显示状态:</strong><font color="ff0000"> * </font>&nbsp;</td>
          <td height="20" bgcolor="#FFFFFF"> &nbsp;
		  <%if(igec.util.Tool.IsEmpty(info.getShowflag())||"1".equals(info.getShowflag())){%>
		  <input type="radio" name="showflag" value="0"/> 隐藏&nbsp;<input type="radio" name="showflag" value="1" checked/>显示          <% } else { %>
		    <input type="radio" name="showflag"  checked value="0"/> 隐藏&nbsp;<input type="radio" name="showflag" value="1"/>显示
    	  <% } %></td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#f5f5f5"><strong>图片标题:</strong><font color="ff0000"> * </font>&nbsp;</td>
          <td height="20" bgcolor="#f5f5f5"> &nbsp;
             <input type="text" name="title"  id="title" size="50" maxlength=100 minLength=1  EmptyDisable  label="信息标题"  value="<%=info.getTitle()%>"/></td>
        </tr> 
        <tr>
          <td height="20" align="right" bgcolor="#f5f5f5"><strong>描&nbsp;&nbsp;述:</strong><font color="ff0000"> * </font>&nbsp;</td>
          <td height="20" bgcolor="#FFFFFF">&nbsp; 
		  <textarea name="intro" id="intro"  EmptyDisable  label="详细说明" rows="6" cols="50" onblur="CheckLength(this,100);"><%=info.getTitle()%></textarea></td>
        </tr>
		<tr>
          <td height="20" align="right" bgcolor="#f5f5f5"><strong>上传类型:</strong><font color="ff0000"> * </font>&nbsp;</td>
          <td height="20" bgcolor="#FFFFFF">&nbsp; 
		    <select name="islocal" onchange="javascript:showpictype();" id="islocal" label="上传类型"> 
				  <option value="1">本地上传</option>
				  <option value="0">网络地址</option>
           </select>&nbsp;		  </td>
		</tr>
        <tr>
          <td height="20" align="right" bgcolor="#f5f5f5"><strong>相册图片:</strong>&nbsp;</td>
          <td height="20" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="132"   height="100" align="center"><table  border="0" cellpadding="0" cellspacing="1" bgcolor="#b2b3b5">
                <tr>
                  <td><img src="<%=site.bean.SitePara.strVirtualName+info.getFurl()%>" id="specialfurl"  name="specialfurl" width="92" height="93" /></td>
                </tr>
              </table>                </td>
              <td width="10" align="center">&nbsp;</td>
              <td width="608"   class=border2>
			  <table id="webtable" width="100%" border="0" cellpadding="0" cellspacing="1"> 
				 <tr>
                  <td width="37%" height="20" >&nbsp;<strong>网络上传&nbsp;</strong> </td>
				  <td width="63%" height="20" >
				   <input type="text" size="50"  name="weburl" id="weburl"  onpropertychange="javascript:picDataBase(this.value);"/>                  </td>
                </tr>  
              </table>
			  <table id="loctable" width="100%" border="0" cellpadding="0" cellspacing="1"> 
				 <tr>
                  <td width="24%" height="24" ><strong>&nbsp;图片库上传</strong>&nbsp; </td>
				  <td width="76%" height="24" >
				  <input type="button" value="选择已有图片"   onclick="window.open ('<%=strOfficeStyle%>/person/mypic.jsp?fun=picDataBase','ShowMyPic','width=600, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no')">                  </td>
                </tr>
                <tr>
                  <td width="24%" height="24"><strong>&nbsp;本地上传</strong></td>
				  <td width="76%" height="24"><div id="Layer1" style="position:absolute; OVERFLOW: hidden;z-index:1;"><iframe class="TBGen" style="top:10px;margin-top:10px;" ID="UploadFiles" src="<%=site.bean.SitePara.strVirtualName%>/inc/upload/?wt=<%=request.getParameter("wt")%>&ft=pic&recf=addUploadFile_Show" frameborder=0 scrolling=no width="290" height="20"></iframe></div><div id="Layer2" style="position:absolute;margin-top:10px; OVERFLOW: hidden;width:236px; height:30px;z-index:1;"><input type="text" value="<%=info.getFurl()%>" name="furl" style="width:222px;height:14px" readonly></div>
				  </td>
                </tr>
              </table></td>
			  <td width="20">&nbsp;</td>
            </tr>
			
          </table>
		  </td>
        </tr>
		<tr>
          <td height="20" align="right" bgcolor="#f5f5f5"><strong>显示顺序:</strong>&nbsp;</td>
          <td height="20" bgcolor="#FFFFFF">&nbsp; 
		  <input type="text" name="xh" size=5 id="xh"  ValueFormat="int" EmptyDisable  label="显示顺序" value="<%=info.getXh()%>" minlength=1  maxlength=5 /></td>
        </tr> 
		</table>
	  </td>
    </tr>
    <tr> 
      <td height="52" valign="top"><table  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#dddddd">
        <tr>
          <td height="1"></td>
        </tr>
      </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td  align="center" height="50"><input type="submit" name="Submit" value="更新" />
            &nbsp;&nbsp;&nbsp; <input type="button" onclick="javascript:window.close();" name="Submit2" value="关闭" />
		    </td>
          </tr>
        </table></td>
    </tr>
  </table></td>
    </tr>
  </table>
  </form>
<iframe height="1" src="" name="ifrTarget" frameborder="0" scrolling="no"></iframe>

<br />
 <br />
<script language=javascript>
document.onkeydown=nextpage
function nextpage(event) {
	event = event ? event : (window.event ? window.event : null); 
	if (event.keyCode==13) userlogin();
}
</script>
<script language="JavaScript">
function userlogin(){
	document.loginform.submit();
}

function CheckForm(loObj){ 
  if(!Check(loObj)) return false;
  return true;
 }
</script>

<script language="javascript">
<!--

function picDataBase(strFilePath){
   addUploadFile_Show(strFilePath,'');
}
function addUploadFile_Show(strFilePath,strFileType){
	try{
	document.all("furl").value = strFilePath;
	document.all("specialfurl").src = "<%=site.bean.SitePara.strVirtualName%>/"+strFilePath;
	//document.all("specialfurl").style.display="";
	}catch(e){
		alert(e.description);
	}
}

//-->
</script>
  </body>
 </html>

⌨️ 快捷键说明

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