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

📄 fileuploaddlg.dsp

📁 ZK 基础介绍 功能操作 模块 结合数据库操作
💻 DSP
字号:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><%@ page contentType="text/html;charset=UTF-8" %><%--fileuploaddlg.dsp{{IS_NOTE	Purpose:		The content of the inline frame of the fileupload modal dialog		(fileuploaddlg.zul)	Description:			History:		Thu Jul 21 11:37:28     2005, Created by tomyeh}}IS_NOTECopyright (C) 2005 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT--%><%@ taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" %><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Upload</title><link rel="stylesheet" type="text/css" href="${c:encodeURL('~./zul/css/norm**.css.dsp')}"/><%-- We cannot use ${z:outLangStyleSheets()} since Executions.getCurrent()	is not available for this page. --%><script type="text/javascript"><!--function submitUpload() {	var wndid = '${param.uuid}';	var img = parent.$e(wndid + '!img');	if (img) img.parentNode.removeChild(img);		<%-- Bug 1578549: we have to remove the closable button first, since			it might mis-behave if user clicks it after submitting		--%>	parent.zkau.beginUpload(wndid);}function cancelUpload() {	parent.setTimeout("zk.focus(window); zkau.sendOnClose('${param.uuid}');", 100);}function init() {	var el = document.getElementById("form");	el.action = parent.zk.getUpdateURI(		"/upload?dtid=${param.dtid}&uuid=${param.uuid}");	el = document.getElementById("file");	if (el) el.focus();}// --></script></head><body onload="init()">	<form id="form" enctype="multipart/form-data" method="POST" onsubmit="submitUpload()">	<%-- We have to encode dtid and uuid in action rather than hidden fields,		because 1) dtid must be ready before parsing multi-part requests.		2) parsing multi-part might fail	--%>	<%-- change the following if you want the return URI to be different from the default	<input type="hidden" name="nextURI" value="~./zul/html/fileuploaddlg-done.dsp"/>	--%>	<input type="hidden" name="native" value="${param.native}"/>	<table border="0" width="100%"><c:set var="maxcnt" value="${empty param.max ? 1: param.max}"/><c:forEach var="cnt" begin="1" end="${maxcnt}">	<tr>		<td align="right"><c:if test="${maxcnt gt 2}">${cnt}</c:if></td>		<td><input class="file" type="file" id="file" name="file"/></td>	</tr></c:forEach>	<tr align="left">		<td colspan="2" style="border: outset 1px">		<input class="button" type="submit" value="${c:l('mesg:org.zkoss.zul.mesg.MZul:UPLOAD_SUBMIT')}" onclick="parent.zk.progress()"/>		<input class="button" type="button" value="${c:l('mesg:org.zkoss.zul.mesg.MZul:UPLOAD_CANCEL')}" onclick="cancelUpload()"/>		</td>	<tr>	</table>	</form></body></html>

⌨️ 快捷键说明

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