menu_workc.asp

来自「一套石油公司内部的运营管理系统」· ASP 代码 · 共 761 行 · 第 1/3 页

ASP
761
字号
<%
show=request("show")
child=request("child")
subMenuId=request("subMenuId")
%>
<SCRIPT>
<!--
	function hideAll() {
		var subMenuId=<%=subMenuId%>;
		if (subMenuId==1) {
			document.all("first").style.display=""
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"		
			document.all("eighth").style.display="none"		
			switchPoint1.innerText=5
		}
		if (subMenuId==2) {
			document.all("first").style.display="none"
			document.all("second").style.display=""
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"		
			document.all("eighth").style.display="none"		
			switchPoint2.innerText=5
		}
		if (subMenuId==3) {
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display=""
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"		
			document.all("eighth").style.display="none"		
			switchPoint3.innerText=5
		}
		if (subMenuId==4) {
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display=""
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"		
			document.all("eighth").style.display="none"		
			switchPoint4.innerText=5
		}
		if (subMenuId==5) {
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display=""
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"		
			document.all("eighth").style.display="none"		
			switchPoint5.innerText=5
		}
		if (subMenuId==6) {
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display=""		
			document.all("seventh").style.display="none"		
			document.all("eighth").style.display="none"		
			switchPoint6.innerText=5
		}
		if (subMenuId==7) {
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"
			document.all("eighth").style.display="none"		
			document.all("seventh").style.display=""		
			switchPoint7.innerText=5
		}
		if (subMenuId==8) {
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"
			document.all("eighth").style.display=""		
			document.all("seventh").style.display="none"		
			switchPoint8.innerText=5
		}
	}

	function switchSysBar1() {
		if (switchPoint1.innerText==5) {
			switchPoint1.innerText=6
			document.all("first").style.display="none"
		} else
		{
			switchPoint1.innerText=5
			document.all("first").style.display=""
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"
			document.all("eighth").style.display="none"
			switchPoint8.innerText=6
			switchPoint6.innerText=6
			switchPoint2.innerText=6
			switchPoint3.innerText=6
			switchPoint4.innerText=6
			switchPoint5.innerText=6
			switchPoint7.innerText=6
		}
	}

	function switchSysBar2() {
		if (switchPoint2.innerText==5) {
			switchPoint2.innerText=6
			document.all("second").style.display="none"
		} else
		{
			switchPoint2.innerText=5
			document.all("first").style.display="none"
			document.all("second").style.display=""
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"
			document.all("eighth").style.display="none"
			switchPoint8.innerText=6
			switchPoint1.innerText=6
			switchPoint6.innerText=6
			switchPoint3.innerText=6
			switchPoint4.innerText=6
			switchPoint5.innerText=6
			switchPoint7.innerText=6
		}
	}

	function switchSysBar3(){
	if (switchPoint3.innerText==5){
	switchPoint3.innerText=6
	document.all("third").style.display="none"
	}else{
	switchPoint3.innerText=5
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display=""
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"
			document.all("eighth").style.display="none"
			switchPoint8.innerText=6
			switchPoint1.innerText=6
			switchPoint2.innerText=6
			switchPoint6.innerText=6
			switchPoint4.innerText=6
			switchPoint5.innerText=6
			switchPoint7.innerText=6
	}}

	function switchSysBar4(){
	if (switchPoint4.innerText==5){
	switchPoint4.innerText=6
	document.all("fouth").style.display="none"
	}else{
	switchPoint4.innerText=5
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display=""
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"
			document.all("eighth").style.display="none"
			switchPoint8.innerText=6
			switchPoint1.innerText=6
			switchPoint2.innerText=6
			switchPoint3.innerText=6
			switchPoint6.innerText=6
			switchPoint5.innerText=6
			switchPoint7.innerText=6
	}}
	function switchSysBar5(){
	if (switchPoint5.innerText==5){
	switchPoint5.innerText=6
	document.all("fifth").style.display="none"
	}else{
	switchPoint5.innerText=5
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display=""
			document.all("sixth").style.display="none"		
			document.all("seventh").style.display="none"
			document.all("eighth").style.display="none"
			switchPoint8.innerText=6
			switchPoint1.innerText=6
			switchPoint2.innerText=6
			switchPoint3.innerText=6
			switchPoint4.innerText=6
			switchPoint6.innerText=6
			switchPoint7.innerText=6
	}}

	function switchSysBar6(){
	if (switchPoint6.innerText==5){
	switchPoint6.innerText=6
	document.all("sixth").style.display="none"
	}else{
	switchPoint6.innerText=5
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display=""		
			document.all("seventh").style.display="none"
			document.all("eighth").style.display="none"
			switchPoint8.innerText=6
			switchPoint1.innerText=6
			switchPoint2.innerText=6
			switchPoint3.innerText=6
			switchPoint4.innerText=6
			switchPoint5.innerText=6
			switchPoint7.innerText=6
	}}

	function switchSysBar7(){
	if (switchPoint7.innerText==5){
	switchPoint7.innerText=6
	document.all("seventh").style.display="none"
	}else{
	switchPoint7.innerText=5
			document.all("first").style.display="none"
			document.all("second").style.display="none"
			document.all("third").style.display="none"
			document.all("fouth").style.display="none"
			document.all("fifth").style.display="none"
			document.all("sixth").style.display="none"
			document.all("seventh").style.display=""		
			document.all("eighth").style.display="none"

⌨️ 快捷键说明

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