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

📄 index.jsp

📁 培训考试系统代码
💻 JSP
📖 第 1 页 / 共 3 页
字号:
		secNo=0;	//每次到下一个一级菜单时清空计数


		thrNo=0;	//每次到下一个一级菜单时清空计数


		isFirstLevel=true;


		if (isFirstLevel && i!=0)


		{


			stm_ep();


			stm_ep();


		}


		for (var j=i+1;j<theArr.length;j++)


		{			


			if (theArr[j].indexOf("|"+secArr[0]+"|")!=-1 && theArr[j].indexOf("|2|")!=-1)


			{


				theSecCount++;


			}


			


		}


		stm_ai(secArr[0],[0,secArr[1],"","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#f1f2ee",0,"#93a070",0,"images/1_11.gif","images/1_11_1.gif",3,3,0,0,"#fffff7","#000000","#000000","#003399","11px 'Tahoma','Arial'","11px 'Tahoma','Arial'",0,0]);


		stm_bpx("L1","initPosition",[1,4,0,0,0,4,0,7]);


		theFirstMenuID=secArr[0];


		if (i==0)


		{


			theFirstID=secArr[0];


			theFirstMenuText=secArr[1];


		}


		else


		{


			if(secArr[0]=="<%=theFirID%>")


			{


				theFirstMenuText=secArr[1];


			}


		}


		haveSub=false;


	}


	if (secArr[3]=="2")


	{


		theThrCount=0;//每次到下一个二级菜单时清空统计其下属三级菜单的计数


	//	thrNo=0;	//每次到下一个二级菜单时清空计数


		secNo++;


		if (theSecondMenuID=="")


		{


			theSecondMenuID=theFirstMenuID;


		}


		for (var j=i+1;j<theArr.length;j++)


		{			


			if (theArr[j].indexOf("|"+secArr[0]+"|")!=-1 && theArr[j].indexOf("|3|")!=-1)


			{


				haveSub=true;


				theThrCount++;


			}


			


		}


//		alert("i="+i+"||"+haveSub+"|||"+theSecondMenuID);


		theUrl=secArr[4]+"?firID="+theFirstMenuID+"&secNo="+secNo+"&thrNo="+thrNo+"&secCount="+theSecCount+"&thrCount="+theThrCount;


		if (haveSub)


		{


			stm_aix(secArr[0],theSecondMenuID,[0,secArr[1],"","",-1,-1,0,theUrl,"_self","","","","",0,0,0,"images/arrow_r.gif","images/arrow_r.gif",7,7]);


			stm_bpx("L2","initPosition",[1,2,0,0,0,4]);			


		}


		else


		{


			stm_aix(secArr[0],theSecondMenuID,[0,secArr[1],"","",-1,-1,0,theUrl,"_self","","","","",0,0,0,"","",0,0,0,0,1,"#f1f2ee",0,"#666666",0,"images/1_51.gif","images/1_51_1.gif",3,3,0,0,"#fffff7","#000000","#000000","#0066ff"]);


			isThird=false;


		}


		haveSub=false;


		theSecondMenuID=secArr[0];


	}


	if(secArr[3]=="3")


	{


		thrNo++;


		isThird=true;


		theUrl=secArr[4]+"?firID="+theFirstMenuID+"&secNo="+secNo+"&thrNo="+thrNo+"&secCount="+theSecCount+"&thrCount="+theThrCount;


		stm_aix(secArr[0],theSecondMenuID,[0,secArr[1],"","",-1,-1,0,theUrl,"_self"]); 


		if (theThrCount==thrNo)


		{


			if (isThird)	//如果同2级的上一个子菜单出现3级子菜单,则添加以下代码


			{


				stm_ep();


			}


		}


	}


}


stm_ep();


stm_em();


//-->


</script> </td>


                      <td>&nbsp;</td>


                    </tr>


                  </table></td>


              </tr>


              <tr> 


                <td height="13"><IMG SRC="images/1_20.gif" WIDTH=776 HEIGHT=13></td>


              </tr>


            </table>


		  </td>


          <td width="1" align="center" bgcolor="A1A1A1"></td>


        </tr>


        <tr> 


          <td align="center" bgcolor="A1A1A1"></td>


          <td valign="top">


		    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="B7D5F9">


              <tr> 


                <td width="182" valign="top">


				  <table width="182" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/2_08.gif">


                    <tr> 


                      <td valign="top"> 


					    <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">


                          <tr> 


                            <td height="39">


							  <table width="100%" height="39" border="0" cellpadding="0" cellspacing="0" background="images/2_01.gif">


                                <tr> 


                                  <td valign="top">


								    <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">


                                      <tr> 


                                        <td width="40%" align="center">&nbsp;</td>


                                        <td width="60%" class="14">


										<font color="#003399">


										<script>document.write(theFirstMenuText);</script>


										</font>


										</td>


                                      </tr>


                                    </table>


								  </td>


                                </tr>


                              </table>


							</td>


                          </tr>


<script language="javascript">


	var theFirID="";


	theFirID="<%=theFirID%>";


	if (theFirID=="null")


	{


		theFirID=theFirstID;


	}


	if (theFirID!="")


	{


		document.write("<tr>");


		document.write("	<td align='right' valign='top' background='images/2_08.gif'>");


		document.write("	<table width='171' height='29' border='0' cellpadding='0' cellspacing='0'>");


		var thr=0;


		theSecCount=0;


		for (var i=0;i<theArr.length;i++)


		{


			var tempArr=new Array();


			tempArr=theArr[i].split("|");


			if(tempArr[2]==theFirID && tempArr[3]=="2")


			{


				theSecCount++;


			}


		}


		var theCount=0;		//二级菜单的循环计数


		var theClick=0;		//记录以当前二级菜单中有三级子菜单的二级菜单个数


		for (var i=0;i<theArr.length;i++)


		{


			var tempArr=new Array();


			tempArr=theArr[i].split("|");


			if (tempArr[2]==theFirID && tempArr[3]=="2")


			{


				theCount++;


				theThrCount=0;	//记录有多少个三级菜单


				var menuid="";


				menuid=tempArr[0];


				var menuname="";


				menuname=tempArr[1];


				var url="";


				url=tempArr[4];


				var icon="";


				icon=tempArr[5];


				for (var j=i+1;j<theArr.length;j++)


				{


					var tempArray=new Array();


					tempArray=theArr[j].split("|");


					if (tempArray[2]==menuid && tempArray[3]=="3")


					{


						theThrCount++;


					}


				}


				if (theThrCount>0)


				{


					theClick=theCount-1;


				}


				document.write("<tr>");


				var theTempString="";


				if (theThrCount>0)


				{


					theTempString="  <td height='29' align='center' class='bg1' id='bg"+theCount+"' 				onMouseOver=\"changeBg('bg"+theCount+"','bg11','0','','',"+theSecCount+",0)\"  onClick=\"changeBg('bg"+theCount+"','bg11','1','','',"+theSecCount+",0); ChangeMenu('"+theCount+"','1')\" onMouseOut=\"restoreBg('bg"+theCount+"','bg1')\">";


				}


				else


				{


					theTempString="  <td height='29' align='center' class='bg1' id='bg"+theCount+"' 				onMouseOver=\"changeBg('bg"+theCount+"','bg11','0','','',"+theSecCount+",0)\"  onClick=\"changeBg('bg"+theCount+"','bg11','1','','',"+theSecCount+",0)\"  onMouseOut=\"restoreBg('bg"+theCount+"','bg1')\" >";


				}


				document.write(theTempString);


				document.write("	<table width='100%' height='20' border=0 cellpadding=0 cellspacing=0>");


				document.write("	  <tr>");


				document.write("		<td width='37%' align='right'>");


				document.write("		  <table width='31' border='0' cellspacing='0' cellpadding='0'>");


				document.write("			<tr> ");


				document.write("			  <td align='center'><img src='images/"+icon+"' width='16' height='16'></td>");


				document.write("			</tr>");


				document.write("		  </table>");


				document.write("		</td>");


				document.write("		<td width='63%'><a href='"+url+"?firID="+theFirID+"&secNo="+theCount+"&thrNo=0&secCount="+theSecCount+"&thrCount="+theThrCount+"' class='lnk'>"+menuname+"</a></td>");


				document.write("	  </tr>");


				document.write("	</table>");


				document.write("  </td>");


				document.write("</tr>");


				if (theThrCount>0)


				{


⌨️ 快捷键说明

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