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

📄 imguploadfield.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@page buffer="50kb"%>
<%@ page import="com.cyberway.dynaform.document.web.ItemForm"%>
<%@ page import="com.cyberway.utility.DateUtil"%>
<%@ page import="com.cyberway.utility.sequence.Sequence"%>
<%@ page import="com.cyberway.utility.property.DefaultProperty"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/smartweb" prefix="s" %>
<%
String contextPath = request.getContextPath();
String isnew = request.getParameter("ISNEW");
String isedit = request.getParameter("ISEDIT");
%>
<html:html>
<head>
<title>{*[Image upload]*} </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%= contextPath %>/css/info.css" type="text/css">
<script src="<%= contextPath %>/js/billitem.js"></script>
<script src="<%= contextPath %>/js/check.js"></script>
<script src="<%= contextPath %>/js/util.js"></script>
<script language="JavaScript">
<!--
var contextPath = '<%=contextPath %>';
var isnew = <%=isnew%>;

function ev_save() {
  formItem.submit();
}

function ev_showbigimg() {
	window.open('<%= contextPath %>/dynaform/form/imguploadfield/showbigimg.jsp?id=<c:out value="${ItemForm.id}" />', '_blank');
}
-->
</script>
</head>
<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 scroll=no>
<tr><td>
<html:form action="/dynaform/document/saveitem.do" styleId="formItem" method="post" enctype="multipart/form-data">
<input type='button' name='save' value='{*[Save]*}' onclick='ev_save()' id='btnsave' style='display:none'>
<input type='hidden' name='ISNEW' value='<%=isnew%>'>
<input type='hidden' name='ISEDIT' value='<%=isedit%>'>
<input type='hidden' name='_type' value='imgupload'>
<html:errors/>
<html:hidden property="id"/>
<html:hidden property="docid"/>
<html:hidden property="name"/>
<html:hidden property="filename"/>

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="list-datas">
      <c:choose>
        <c:when test="${!empty param.ISEDIT and param.ISEDIT eq 'TRUE'}" >
		  <c:if test="${!empty ItemForm.filename and ItemForm.filename ne ''}">
		    <a href="javascript:ev_showbigimg()">
            <img height='120' width='120' src='<%= contextPath %>/dynaform/document/downloadattachfile.do?id=<c:out value="${ItemForm.id}" />' alt='{*[Click for large imgae]*}'>
			</a>
  		  </c:if>
          <input type='file' name="value" value='abc'>
		</c:when>
        <c:otherwise>
		  <c:if test="${!empty ItemForm.filename and ItemForm.filename ne ''}">
		    <a href="javascript:ev_showbigimg()">
            <img height='120' width='120' src='<%= contextPath %>/dynaform/document/downloadattachfile.do?id=<c:out value="${ItemForm.id}" />' alt='{*[Click for large imgae]*}'>
			</a>
  		  </c:if>
		</c:otherwise>
      </c:choose>
	</td>
  </tr>
</table>
</html:form>
</body>
</html:html>


⌨️ 快捷键说明

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