﻿//***************************************************************************************
//	7WX API set 1.1 for Action Orient Programming (Leebai) 
//  Copyright 2002-2006 XJAWA   libq@xjawa.org
//  Deprecate! 代替文件为：7wx.js
//***************************************************************************************

//系统程序路径
function system_path(){
	this.servletRoot = "";
	this.webRoot = "";

	//系统程序路径
	this.message= this.servletRoot+"/servlet/org.xjawa.system.MessageServlet";			//MessageServlet路径
	this.misc= this.servletRoot+"/servlet/org.xjawa.system.MiscServlet";			//MiscServlet路径
	this.authority=this.servletRoot+"/servlet/org.xjawa.system.AuthorityServlet";//权限servlet路径
//	this.authority=this.servletRoot+"/servlet/com.cpn.user.Auth";//权限servlet路径
	this.Studio= this.servletRoot+"/servlet/org.xjawa.system.StudioServlet";			//StudioServlet路径
	this.fileview=this.servletRoot+"/servlet/org.xjawa.fileview.FileView";
	this.dbview=this.servletRoot+"/servlet/org.xjawa.dbview.DBView";
	this.dbquery=this.servletRoot+"/servlet/org.xjawa.dbview.DBQuery";
	this.UIEngine=this.servletRoot+"/servlet/org.xjawa.system.UIEngine";


	//公共程序路径
	this.user=this.servletRoot+"/servlet/org.xjawa.user.User";	//用户管理servlet路径
//	this.user=this.servletRoot+"/servlet/com.cpn.user.User";	//用户管理servlet路径
	this.outuser=this.servletRoot+"/servlet/com.cpn.user.OutUser";	//用户注册servlet路径

	this.CMSServlet= this.servletRoot+"/servlet/com.xjawa.cms.CMSServlet";				//CMSservlet路径
	this.cms5= this.servletRoot+"/servlet/com.xjawa.cms5.ContentManager";				//new CMSservlet路径
	this.cms5type= this.servletRoot+"/servlet/com.xjawa.cms5.TypeManager";			
	this.bbs=this.servletRoot+"/servlet/com.xjawa.bbsnew.BBSServlet";
	this.bbsst=this.servletRoot+"/servlet/com.xjawa.bbsnew.BBSStatic";
	this.msgboard=this.servletRoot+"/servlet/com.xjawa.msgboard.MsgBoard";
	this.vote=this.servletRoot+"/servlet/com.xjawa.vote.Vote";

	//在此添加项目程序路径
	this.book=this.servletRoot+"/servlet/com.xjawa.book.BookManage";
	this.bookview=this.servletRoot+"/servlet/com.xjawa.book.BookView";
	this.printshow=this.servletRoot+"/servlet/com.xjawa.printshow.PrintShow";
	this.survey=this.servletRoot+"/servlet/com.xjawa.cms5.survey.SurveyManager";
	this.uaa=this.servletRoot+"/servlet/com.uaa.xjawa.UAARoot";
	//this.user=this.servletRoot+"/servlet/com.uaa.xjawa.User";
	this.Member=this.servletRoot+"/servlet/com.uaa.xjawa.Member";
	this.vendor=this.servletRoot+"/servlet/com.uaa.xjawa.Vendor";
	this.Accuse=this.servletRoot+"/servlet/com.uaa.xjawa.Accuse";
	this.Order=this.servletRoot+"/servlet/com.uaa.xjawa.Order";
	this.Score_dic=this.servletRoot+"/servlet/com.uaa.xjawa.Score_dic";
	this.Consultation=this.servletRoot+"/servlet/com.uaa.xjawa.Consultation";
	this.Scorelost=this.servletRoot+"/servlet/com.uaa.xjawa.Scorelost";
	this.Dictionary=this.servletRoot+"/servlet/com.uaa.xjawa.Dictionary";
	this.Vehicle_Dic=this.servletRoot+"/servlet/com.uaa.xjawa.Vehicle_Dic";
	this.Inform=this.servletRoot+"/servlet/com.uaa.xjawa.Inform";
	this.Feedback=this.servletRoot+"/servlet/com.uaa.xjawa.Feedback";
	this.TBD=this.servletRoot+"/servlet/com.uaa.xjawa.TBD2";

	this.ProductInfo = this.servletRoot+"/servlet/org.xjawa.hep.rm.ProductInfo";
	this.TransactionManage = this.servletRoot+"/servlet/org.xjawa.hep.rm.TransactionManage";
	this.userinfo=this.servletRoot+"/servlet/org.xjawa.clientinfo.ClientInfo";


	this.test=this.servletRoot+"/servlet/com.xjawa.test.Test";
	this.testtab=this.servletRoot+"/servlet/aop7wx.TestTab";

	//以下属性已废弃，为兼容老程序保留
	this.UserServlet= this.servletRoot+"/servlet/com.xjawa.user.UserServlet";
	this.path = this.webRoot;
	this.systemManagerPath= this.webRoot + "/system";
	this.systemImgPath= this.webRoot + "/system/img"
	this.templatePath= this.webRoot + "/cms/template";							
	this.cmsManagerPath= this.webRoot + "/cms/manager";
	this.cmsManagImg= this.webRoot + "/cms/manager/image";
	this.cmsImagePath= this.webRoot + "/cms/sysimg";
	this.cmsEditPath= this.webRoot + "/cms/manager/edit";
	this.cmsDataPath= this.webRoot + "/cms/data";
	this.userManagPath= this.webRoot + "/user";
	this.userImagePath= this.webRoot + "/user/image";
	this.searchPath= this.webRoot + "/cms/search"
}
//外部使用的全局变量
systemPath=new system_path();

//其他函数
document.writeln("<link href='"+systemPath.webRoot+"/commonjs/css/7wx.css' type='text/css' rel='stylesheet'>");
document.writeln("<script src='"+systemPath.webRoot+"/commonjs/sys_core.js'></"+"script>");
document.writeln("<script src='"+systemPath.webRoot+"/commonjs/sys_tree.js'></"+"script>");
document.writeln("<script src='"+systemPath.webRoot+"/commonjs/sys_list.js'></"+"script>");
document.writeln("<script src='"+systemPath.webRoot+"/commonjs/sys_form.js'></"+"script>");
document.writeln("<script src='"+systemPath.webRoot+"/commonjs/sys_misc.js'></"+"script>");
document.writeln("<script src='"+systemPath.webRoot+"/commonjs/calendar.js'></"+"script>");
document.writeln("<script src='"+systemPath.webRoot+"/commonjs/sys_navi.js'></"+"script>");

