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

📄 jitkimportsvg.jsp

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib uri="http://www.esri.com/adf/web" prefix="a"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.esri.com/jitk/web" prefix="jitk"%>
<f:view>
<f:loadBundle basename="res.solutions_jitk_tasks" var="msg" />
<html>
  <head>
    <title>Import SVG File</title>
    <script type="text/javascript" language="Javascript">
  
      function validate() {
        var fn = document.getElementById("fn").value.toLowerCase();
        if (fn == null || fn == "" || fn.indexOf(".svg") == -1) {
        	alert(document.getElementById('jitkImportSVG_noValidFileSpecified').value);
       		return false;
       	
       	} else return true;
      }
      
      function start() {
      	<%
			String msg = request.getParameter("message");
			if (msg != null) {
				int pos = msg.indexOf("?request");
				msg = msg.substring(0, pos);
				if (msg.trim().length() > 0) {
					out.println("alert('" + msg + "');");
				/*
					out.println("document.getElementById(\"warningFileType\").innerHTML = '" + msg + "'");
					out.println("document.getElementById(\"warningFileType\").style.display = \"block\"");
				*/
				}
			}
        %>
      }
    </script>
    <link rel="stylesheet" type="text/css" href="../../css/jitk_taskwindow.css" />
    <link rel="stylesheet" type="text/css" href="../../css/jitk_layout.css" />
  </head>
  <body onload="start()">
    <% 
      if (request.getParameter("error") != null)
      	out.println("<div class=\"jitk-message error\">" + request.getParameter("error") + "</div>");
    %>
    <form id="f" action="../../importSVG" method="POST" enctype="multipart/form-data">
    	<h:inputHidden id="jitkImportSVG_noValidFileSpecified" value="#{msg['jitk.task.importSVG.msg.error.noValidFileSpecified']}" />
      <input type="hidden" name="requestPage" value="<%=request.getParameter("requestPage")%>" />
      <input type="hidden" name="successPage" value="<%=request.getParameter("successPage")%>" />

		<div id="warningFileType" style="display:none;height:15px;background-color:#ff4040;color:black;font-size:10px;"></div>
		<h:outputText value="#{msg['jitk.task.importSVG.label.SvgFile']}" /><br/>
          	<input type="file" id="fn" name="fn" value='<%=request.getParameter("filename")%>' size="35" />
		<br/>
		<br/>
		<h:commandButton action="submit" onclick="if (!validate()) return false;" value="#{msg['jitk.task.importSVG.button.import']}"/>
		<h:commandButton action="cancel" onclick="parent.JitkImportSVGUtil.closeWindow();" value="#{msg['jitk.task.importSVG.button.cancel']}"/>
    </form>
  </body>
</html>
</f:view>

⌨️ 快捷键说明

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