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

📄 main.jsp

📁 国外的一套开源CRM
💻 JSP
字号:
<%@ page import="org.ofbiz.base.util.UtilProperties" %>
<%@ page import="com.sourcetap.sfa.ui.UIXMLFileUtil" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="org.ofbiz.entity.*" %>
<%@ page import="org.ofbiz.entity.model.*" %>
<%@ page import="org.ofbiz.base.util.*" %>
<jsp:useBean id="delegator" type="org.ofbiz.entity.GenericDelegator" scope="application" />

<%String contextRoot=(String)request.getAttribute("_CONTEXT_ROOT_");%>

<%String companyName = UtilProperties.getPropertyValue(contextRoot + "/WEB-INF/sfa.properties", "company.name");%>
<%@ include file="/includes/windowTitle.jsp" %>

<%
 //The incoming request is from a WAP Phone, send it to the WAP interface.
 if(request.getHeader("x-up-subno") != null){
   RequestDispatcher rd = request.getRequestDispatcher("login.wml.jsp");
     if(rd != null) rd.forward(request,response);
 }
 
 // check to see if the database has been initialized
 List screensGV = delegator.findAll("UiScreen");
 if ( screensGV.size() == 0 )
 {
 	Debug.logError("Sysyem has not been initialized.  Loading Data now", "main");
 	String filePath = System.getProperty("ofbiz.home");
	filePath += "/hot-deploy/sfa/sfadb";
 
 	try {
 		int rows = UIXMLFileUtil.loadAll(delegator, filePath);
 		Debug.logError("loaded " + rows, "main" );
 	}
 	catch ( Exception e )
 	{
 		Debug.logError(e, "main");
 	}
 	
 }
%>

<FRAMESET  cols = "90,*" frameborder=yes bordercolor=silver>
   <FRAME name=menu id=menu SRC="/sfa/control/menu" SCROLLING="No"></FRAME>
   <FRAME name="mainwindow" id="mainwindow" SRC="/sfa/control/mainwindow" frameborder=0></frame>
</FRAMESET>

</head>

⌨️ 快捷键说明

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