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

📄 application.jsp

📁 国外的一套开源CRM
💻 JSP
字号:
<jsp:useBean id="uIXMLFileUtil" class="com.sourcetap.sfa.ui.UIXMLFileUtil" scope="application" />

<%@ include file="/includes/header.jsp" %>

    <table WIDTH="100%" CLASS="freeFormSectionTitleTable"><tr>
      <td>
        Application: Import/Export
      </td>
    </table>

    <table WIDTH="100%" HEIGHT="100%" CLASS="freeFormSectionDisplayTable">
<%

	String action = "";
	if (request.getParameter("action") != null) {
		action = request.getParameter("action");
	}
	
	if ( action.equals("") )
	{
%>
	<p><br><br>You can use this page to import or export the application definitions from the system.  If you choose to import, all existing 
	application definitions will be deleted.  If you are unsure, you should not import definitions into an existing system.<p><br><hr><br><p>
	<a href="<ofbiz:url>/applications</ofbiz:url>?action=showExport">Click here to export application definitions to XML files</a><p><p>
	<a href="<ofbiz:url>/applications</ofbiz:url>?action=showImport">Click here to import application definitions from XML files</a><p>
<%
	}

	if (action.equals("showExport")) {
		String filePath = System.getProperty("ofbiz.home");
		filePath += "/hot-deploy/sfa/sfadb";
%>
      <form method="post" action="<ofbiz:url>/applications</ofbiz:url>">
         <input type="hidden" value="doExport" name="action" >

        <TR>
         <TD CLASS="freeFormSectionLabel">
		  File Path:
		 </TD>
		 <TD CLASS="freeFormSectionField">
		  <input MAXLENGTH=100 SIZE=80 type="text" name="filePath" value="<%=filePath%>">
		 </TD>
        </TR>

        <TR>
		 <TD CLASS="freeFormSectionSaveButtonArea" COLSPAN="2">
          <input type="submit" value="Write Files" >
		 </TD>
        </TR>

      </FORM>
     </TABLE>
<%

		return;
	}

	if (action.equals("doExport")) {
		String filePath = request.getParameter("filePath");
		String message = uIXMLFileUtil.saveAll (delegator, filePath);
%>
        <TR>
		 <TD CLASS="freeFormSectionField" COLSPAN="2">
          <%=message%>
		 </TD>
        </TR>
<%
		return;
	}

%>

<%@ include file="/includes/footer.jsp" %>

⌨️ 快捷键说明

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