📄 index-ec.jsp
字号:
}
function clearStatus() {
var theWindow = getWindow();
if (theWindow) {theWindow.status = '';}
}
function getMode() {
var theMode = getParm(document.cookie, 'mode', ';');
return ((theMode == "Floating") || (theMode == "NoFrames")) ? theMode : "Frames";
}
function smOnError (msg, url, lno) {
smCallerWin.onerror = oldErrorHandler;
if (confirm(smSecurityMsg)) {setTimeout('setMode("' + smNewMode + '");', 100);}
return true;
}
function smSetCookie(theMode) {
document.cookie = 'mode=' + theMode + '; path=/';
if (getMode() != theMode) {
alert(smCookieMsg);
return false;
} else {
return true;
}
}
function setMode(theMode, callerWin) {
smNewMode = theMode
smCallerWin = (theBrowser.code == 'NS') ? callerWin : self;
var okToGo = true;
var currentMode = getMode();
if (theMode != currentMode) {
if (currentMode == 'Floating') {
if (smSetCookie(theMode)) {self.close();}
} else {
var dest = '';
if (theBrowser.canFloat) {
if ((theMenu.savePage) && (callerWin)) {
if (theBrowser.canOnError) {
oldErrorHandler = smCallerWin.onerror;
smCallerWin.onerror = smOnError;
}
var p = theMenu.contentWin().location.pathname;
if (theBrowser.canOnError) {smCallerWin.onerror = oldErrorHandler;}
if (p) {
dest = fixPath(p);
} else {
if (!confirm(smSecurityMsg)) {okToGo = false;}
}
}
} else {
alert(smNoFloat);
okToGo = false;
}
if (okToGo && smSetCookie(theMode)) {
if (theMode == 'NoFrames') {
location.href = (index3 == '') ? ((dest == '') ? '/' : dest) : index3;
} else {
location.href = index2 + '?page=' + escape(dest);
}
}
}
}
}
function fixPath(p) {
return (p.substring(0,2) == '/:') ? p.substring(p.indexOf('/', 2), p.length) : p;
}
function getParm(theStr, parm, delim) {
// returns value of parm from string
if (theStr.length == 0) {return '';}
var sPos = theStr.indexOf(parm + "=");
if (sPos == -1) {return '';}
sPos = sPos + parm.length + 1;
var ePos = theStr.indexOf(delim, sPos);
if (ePos == -1) {ePos = theStr.length;}
return unescape(theStr.substring(sPos, ePos));
}
function pageFromSearch(def, m, selIt) {
var s = self.location.search;
if ((s == null) || (s.length <= 1)) {return def;}
var p = getParm(s, 'page', '&');
p = (p != '') ? fixPath(p) : fixPath(s.substring(1, s.length));
if (m != null) {
var e = m.findEntry(p, 'URL', 'exact');
if ((e != -1) && selIt) {
m.setEntry(e, true);
m.selectEntry(e);
}
}
return p;
}
function loadURLInTop(theURL) {
var theWindow = getWindow();
if (theWindow) {theWindow.top.location.href = theURL;}
}
function defOnError(msg, url, lno) {
if (jsErrorMsg == '') {
return false;
} else {
alert(jsErrorMsg + '.\n\nError: ' + msg + '\nPage: ' + url + '\nLine: ' + lno + '\nBrowser: ' + navigator.userAgent);
return true;
}
}
// Declare global variables
var theBrowser = new browserInfo;
var jsErrorMsg = '页面发生脚本错误';
jsErrorMsg += '请通知管理员.';
if (theBrowser.canOnError) {self.onerror = defOnError;}
var theMenu = new Menu;
var JoustFrameset = true;
var statusTimeout = 0;
var index1 = 'index.html';
//var index2 = 'index2.htm';
//var index3 = 'index3.htm';
var smCallerWin;
var smNewMode;
var oldErrorHandler;
var smNoFloat = 'Sorry, your browser does not support this feature!';
var smCookieMsg = 'You must have Cookies enabled to change the display mode!';
var smSecurityMsg = 'Due to security restrictions imposed by your browser, I cannot ';
smSecurityMsg += 'change modes while a page from another server is being displayed. ';
smSecurityMsg += 'The default home page for this site will be displayed instead.';
var floatingMode = (getMode() == 'Floating');
var myOpener = null;
if (floatingMode == true) {
if (self.opener) {
myOpener = self.opener;
if (myOpener.JoustFrameset) {myOpener.setTimeout('setGlobals();', 100);}
} else {
document.cookie = 'mode=Frames; path=/';
floatingMode = false;
}
} else {
if (getMode() != 'Frames') {document.cookie = 'mode=Frames; path=/';}
}
// ############ End ############
function initOutlineIcons(imgStore) {
var ip = 'graphics/menu/';
ip += (theBrowser.platform == 'Mac') ? 'mac/' : ((theBrowser.platform == 'OS/2') ? 'os2/' : 'win/');
imgStore.add('iconPlusTop', ip + 'plustop.gif', 18, 16);
imgStore.add('iconPlus', ip + 'plus.gif', 18, 16);
imgStore.add('iconPlusBottom', ip + 'plusbottom.gif', 18, 16);
imgStore.add('iconPlusOnly', ip + 'plusonly.gif', 18, 16);
imgStore.add('iconMinusTop', ip + 'minustop.gif', 18, 16);
imgStore.add('iconMinus', ip + 'minus.gif', 18, 16);
imgStore.add('iconMinusBottom', ip + 'minusbottom.gif', 18, 16);
imgStore.add('iconMinusOnly', ip + 'minusonly.gif', 18, 16);
imgStore.add('iconLine', ip + 'line.gif', 18, 16);
imgStore.add('iconBlank', ip + 'blank.gif', 18, 16);
imgStore.add('iconJoinTop', ip + 'jointop.gif', 18, 16);
imgStore.add('iconJoin', ip + 'join.gif', 18, 16);
imgStore.add('iconJoinBottom', ip + 'joinbottom.gif', 18, 16);
//Add folder and document images to the imgStore.
imgStore.add('Folder', ip + 'folderclosed.gif', 18, 16);
var di = 'graphics/menu/';
if ((theBrowser.code == 'NS') || (theBrowser.code == 'MSIE')) {
di += theBrowser.code.toLowerCase() + '_doc';
imgStore.add('Document', di + '.gif', 18, 16);
imgStore.add('DocumentMouseOver', di + '_mo.gif', 18, 16);
imgStore.add('DocumentSelected', di + '_sel.gif', 18, 16);
} else {
imgStore.add('Document', di + 'doc.gif', 18, 16);
}
}
//-->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function initialise() {
// Tell where to find the various index files it needs
index1 = 'index-ec.jsp';
//index2 = 'index2.htm';
//index3 = 'index3.htm';
// Set up parameters to control menu behaviour
theMenu.autoScrolling = true;
theMenu.modalFolders = false;
theMenu.linkOnExpand = false;
theMenu.toggleOnLink = false;
theMenu.showAllAsLinks = false;
theMenu.savePage = true;
theMenu.tipText = "status";
theMenu.selectParents = false;
theMenu.name = "theMenu";
theMenu.container = "self.menu";
theMenu.reverseRef = "parent";
theMenu.contentFrame = "text";
theMenu.defaultTarget = "text";
// Initialise all the icons
initOutlineIcons(theMenu.imgStore);
// Now set up the menu with a whole lot of addEntry and addChild function calls
var level1ID = -1;
var level2ID = -1;
var level3ID = -1;
var level4ID = -1;
var level5ID = -1;
//level表示最高级,level2子级,level3子子级,Document文件,folder文件夹。
//Set the initial state of the folder to "open"
//以上不要改变
//仿照下面的格式增加项目即可;
l2ID = theMenu.addEntry(-1, "Folder", "联系人客户关系管理", "desk.jsp", "联系人客户关系管理...");
<%
/*
for(int i=0;i<Configuration.UnixClientIP.length;i++){%>
l2ID00<%=i%> = theMenu.addChild(l2ID, "Folder", "<%=Configuration.UnixClientHostname[i]%>", "", "<%=Configuration.UnixClientIP[i]%>");
<%if (Configuration.os[i].equalsIgnoreCase("true")){%>
l2ID00<%=i%>0= theMenu.addChild(l2ID00<%=i%>, "Folder", "操作系统及硬件", "", "操作系统及硬件...");
l2ID00<%=i%>1 = theMenu.addChild(l2ID00<%=i%>0 , "Document", "CPU", "os/cpu.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "CPU...");
l2ID00<%=i%>2 = theMenu.addChild(l2ID00<%=i%>0 , "Document", "系统内存", "os/memory.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "系统内存...");
l2ID00<%=i%>3 = theMenu.addChild(l2ID00<%=i%>0 , "Document", "系统硬盘", "os/diskio.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "系统硬盘...");
l2ID00<%=i%>4 = theMenu.addChild(l2ID00<%=i%>0 , "Document", "页交换空间", "os/pg.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "页交换空间...");
l2ID00<%=i%>5 = theMenu.addChild(l2ID00<%=i%>0 , "Document", "文件系统", "os/fs.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "文件系统...");
l2ID00<%=i%>6 = theMenu.addChild(l2ID00<%=i%>0 , "Document", "进程", "os/osprocess.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "进程...");
<% } //end if
if (Configuration.cicsclient[i].equalsIgnoreCase("true")){%>
l2ID00<%=i%>1= theMenu.addChild(l2ID00<%=i%>, "Folder", "cics", "", "cics...");
l2ID00<%=i%>cicslogspace= theMenu.addChild(l2ID00<%=i%>1, "Document", "cicslogspace", "cics/cicslogspace.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "cicslogspace...");
l2ID00<%=i%>cicsregions= theMenu.addChild(l2ID00<%=i%>1, "Document", "cicsregions", "cics/cicsregions.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "cicsregions...");
l2ID00<%=i%>cicsregspar= theMenu.addChild(l2ID00<%=i%>1, "Document", "cicsregspar", "cics/cicsregspar.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "cicsregspar...");
l2ID00<%=i%>sfserror= theMenu.addChild(l2ID00<%=i%>1, "Document", "sfserror", "cics/sfserror.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "sfserror...");
l2ID00<%=i%>regionerror= theMenu.addChild(l2ID00<%=i%>1, "Document", "regionerror", "cics/regionerror.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "regionerror...");
<% } //end if
if (Configuration.snaclient[i].equalsIgnoreCase("true")){%>
l2ID00<%=i%>2= theMenu.addChild(l2ID00<%=i%>, "Folder", "sna", "", "sna...");
l2ID00<%=i%>snals= theMenu.addChild(l2ID00<%=i%>2, "Document", "snals", "sna/snals.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "snals...");
l2ID00<%=i%>snasession= theMenu.addChild(l2ID00<%=i%>2, "Document", "snasession", "sna/snasession.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>", "snasession...");
<%} //end if
if (Configuration.sybaseclient[i]!=null){%>
l2ID00<%=i%>3= theMenu.addChild(l2ID00<%=i%>, "Folder", "sybase", "", "sybase...");
<%
for (int j=0;j<Configuration.sybaseclient[i].length;j++){
%>
l2ID00<%=i%><%=j%>3= theMenu.addChild(l2ID00<%=i%>3, "Folder", "<%=Configuration.sybaseclient[i][j]%>", "", "<%=Configuration.sybaseclient[i][j]%>...");
l2ID00<%=i%><%=j%>31= theMenu.addChild(l2ID00<%=i%><%=j%>3, "Document", "sybaselog", "sybase/sybaselog.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>&servername=<%=Configuration.sybaseclient[i][j]%>", "sybaselog...");
l2ID00<%=i%><%=j%>32= theMenu.addChild(l2ID00<%=i%><%=j%>3, "Document", "sybasedata", "sybase/sybasedata.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>&servername=<%=Configuration.sybaseclient[i][j]%>", "sybasedata...");
l2ID00<%=i%><%=j%>33= theMenu.addChild(l2ID00<%=i%><%=j%>3, "Document", "engine", "sybase/engine.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>&servername=<%=Configuration.sybaseclient[i][j]%>", "engine...");
l2ID00<%=i%><%=j%>34= theMenu.addChild(l2ID00<%=i%><%=j%>3, "Document", "连接", "sybase/sybconnect.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>&servername=<%=Configuration.sybaseclient[i][j]%>", "连接...");
l2ID00<%=i%><%=j%>35= theMenu.addChild(l2ID00<%=i%><%=j%>3, "Document", "交易", "sybase/sybtran.jsp?ipaddress=<%=Configuration.UnixClientIP[i]%>&servername=<%=Configuration.sybaseclient[i][j]%>", "交易...");
<% } //end for
} // end if
} //end for
*/
%>
l2ID7 = theMenu.addChild(l2ID, "Folder", "系统维护", "", "系统维护...");
l2ID71 = theMenu.addChild(l2ID7, "Document", "数据字典", "conf/index.jsp?txt_type=1", "数据字典...");
l2ID72 = theMenu.addChild(l2ID7, "Document", "分配权限", "conf/index.jsp?txt_type=2", "分配权限...");
l2ID8 = theMenu.addChild(l2ID, "Folder", "联系人模块", "", "联系人模块...");
l2ID81 = theMenu.addChild(l2ID8, "Document", "所有联系人", "person/index.jsp?txt_type=1", "所有联系人...");
l2ID82 = theMenu.addChild(l2ID8, "Document", "新增联系人", "person/index.jsp?txt_type=1&txt_edit=1", "新增联系人...");
l2ID83 = theMenu.addChild(l2ID8, "Document", "修改信息", "person/index.jsp?txt_type=1&txt_edit=2", "修改信息...");
l2ID9 = theMenu.addChild(l2ID, "Folder", "客户模块", "", "客户模块...");
l2ID91 = theMenu.addChild(l2ID9, "Document", "所有客户", "cust/index.jsp?txt_type=1", "所有客户...");
l2ID92 = theMenu.addChild(l2ID9, "Document", "客户登记", "cust/index.jsp?txt_type=1&txt_edit=1", "客户登记...");
l2ID93 = theMenu.addChild(l2ID9, "Document", "修改信息", "cust/index.jsp?txt_type=1&txt_edit=2", "修改信息...");
l2ID10 = theMenu.addChild(l2ID, "Folder", "联系人客户关系", "", "联系人客户关系管理...");
l2ID101 = theMenu.addChild(l2ID10, "Document", "指定客户", "relation/index.jsp?txt_type=1", "指定客户...");
theMenu.entry[l2ID].isopen = true;
}
self.defaultStatus = "";
//-->
</script>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (self.name == 'menu') {
self.location.href = "menu2.html";
} else {
initialise();
var thePage = pageFromSearch('Welcome.html', theMenu, true);
//下面用js脚本写FRAMESET结构;
if (theBrowser.IE){
self.document.writeln('<frameset rows="*" cols="168,*" border="0" framespacing="2">');
self.document.writeln('<frame name="menu" src="menu.jsp" border="0" scrolling="auto" marginwidth="1" marginheight="1" APPLICATION="yes">');
self.document.writeln('<frame name="text" src="desk.jsp" marginwidth="10" marginheight="10" APPLICATION="yes">');
self.document.writeln('</frameset>');
}else{
self.document.writeln('<frameset rows="*" cols="168,*" border="2" framespacing="2">');
self.document.writeln('<frame name="menu" src="menu.html" border="0" scrolling="auto" marginwidth="1" marginheight="1" APPLICATION="yes">');
self.document.writeln('<frame name="text" src="desk.html" marginwidth="10" marginheight="10" APPLICATION="yes">');
self.document.writeln('</frameset>');
}
}
//-->
</SCRIPT>
<NOSCRIPT>
<BODY BGCOLOR="#FFFFCC">
<h1>Fold Menu Tree</h1>
Your browser does not support JavaScript
<P>If you have any problems with this site, please contact the Webmaster.</P>
</BODY>
</NOSCRIPT>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -