synergyInfoToJson.jsp 979 Bytes
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="sc" class="weaver.synergy.SynergyComInfo" scope="page" />
<jsp:useBean id="sm" class="weaver.synergy.SynergyManage" scope="page" />
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<%@ page import="weaver.general.Util"%>
<%@ page import="net.sf.json.JSONArray"%>
<%@ page import="net.sf.json.JSONObject"%>
<%
	JSONObject loginCheckObject = new JSONObject();

	String _synergypath = Util.null2String(request.getParameter("path"));
	
	String _s_hpid = sc.isSynergyModule(_synergypath, request);
	
	int hpid = 0;
	boolean isuse = false;
	if (!"".equals(_s_hpid)) {
		hpid = -Util.getIntValue(_s_hpid);
		rs.execute("select * from synergyconfig where hpid=" + hpid);
		if (rs.next()) {
			if ("1".equals(rs.getString("isuse"))) {
				isuse = true;
			}
		}
	}

	loginCheckObject.put("hpid", hpid);
	loginCheckObject.put("isuse", isuse);
	
	out.print(loginCheckObject.toString());
%>