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

📄 index.jsp

📁 在系统开发过程中用到了javabean和jsp技术
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		String src1 = "../images/index_top_2img01.gif";
		String src2 = "../images/index_top_2imgbg.gif";
		String src3 = "../images/index_top_2img02.gif";
		if(strId1.equals(str3[k1]))
	   {
			src1 = "../images/index_top_1img01.gif";
		    src2 = "../images/index_top_1imgbg.gif";
		    src3 = "../images/index_top_1img02.gif";
	   }
	%>
                            <TD width=0>
                              <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                                <TBODY>
                                <TR align=left vAlign=top>
                                  <TD width=4><IMG height=23 src="<%=src1%>" width=4></TD>
                                  <TD align=middle background="<%=src2%>" vAlign=baseline>
								    <A style="cursor:hand;" onclick="changemenu1('<%=str3[k1]%>');"><%=str1[k1]%></A></TD>
                                  <TD width=4><IMG height=23 src="<%=src3%>" width=4></TD>
								</TR>
								</TBODY>
							  </TABLE>
							</TD>

      <%
	}
	%>				
						  </TR>
						  </TBODY>
						</TABLE>
					  </TD>
					</TR>
					</TBODY>
				  </TABLE>
				</TD>
			  </TR>
              <TR>
                <TD align=left vAlign=top><IMG height=3 src="../images/index_top3_line.gif" width=778></TD>
			  </TR>
			  </TBODY>
			</TABLE>
		  </TD>
		</TR>
        <TR>
          <TD align=left vAlign=top><!-- 显示flash页面 -->
<!--
           
<%if (strId1.equals("1")||strId1.equals("2")||strId1.equals("3")){%>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="779" height="166">
              <param name="movie" value="../images/index.swf">
			  <param name="quality" value="high">
              <embed src="../images/index.swf" quality="high" pluginspage="http://10.0.0.92/temp_sure/install_flash_playe6ax.exe" type="application/x-shockwave-flash" width="779" height="166"></embed></object>


<%}//end if%>
<%if (strId1.equals("4")){%>
			<IMG src="../images/second_banner01.jpg" width=779 height=100>
<%}%>
<%if (strId1.equals("5")){%>
			<IMG src="../images/second_banner02.jpg" width=779 height=100>
<%}%>
<%if (strId1.equals("6")){%>
			<IMG src="../images/second_banner02.jpg" width=779 height=100>
<%}%>
//-->



<%if(strId1.equals("1")){%>
			  <IMG width=779 src="../images/pic_tmp.jpg" >
<%}
else if(strId1.equals("2")){%>
			<IMG src="../images/second_banner03.jpg" width=779 height=100>
<%}
else if(strId1.equals("4")){%>
			<IMG src="../images/second_banner02.jpg" width=779 height=100>
<%}
else if(strId1.equals("5")){%>
			<IMG src="../images/second_banner01.jpg" width=779 height=100>
<%}
else {%>
			<IMG src="../images/second_banner03.jpg" width=779 height=100>
<%
}%>

			
			</TD></TR>
        <TR>
          <TD align=left vAlign=top>
            <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
              <TBODY>
              <TR>
                <TD align=left 
                background="../images/index_top4_bg.gif" height=29 
                vAlign=top>
                  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" valign=top>
                    <TBODY>
                    <TR>
                      <TD>
                        <TABLE border=0 cellPadding=0 cellSpacing=0 
width="100%">
                          <TBODY>
                          <TR>
                            <TD align=middle><a onclick="changemenu1('<%=strId1%>');" style="cursor:hand;" target=_blank title="<%=strMenuName%>首页">首页</a></TD>
                            <TD width=3><IMG height=29 
                              src="../images/index_top4_line.gif" 
                              width=3></TD></TR></TBODY></TABLE></TD>
<%
	for(int k2=0;k2<j2;k2++){
%>
                      <TD>
                        <TABLE border=0 cellPadding=0 cellSpacing=0 
width="100%">
                          <TBODY>
                          <TR>
                            <TD align=middle><a onclick="changemenu2('<%=str4[k2]%>');" style="cursor:hand;" target=_blank><%=str2[k2]%></a></TD>
                            <TD width=3><IMG height=29 
                              src="../images/index_top4_line.gif" 
                              width=3></TD></TR></TBODY></TABLE></TD>
<%
	}
%>                     
							  
							  
							  </TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD align=left vAlign=top><IMG height=9 
                  src="../images/index_top4_line02.gif" 
                width=779></TD></TR>



              </TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

<script>
	//改变一级菜单
	function changemenu1(type)
	{
		document.all.txt_type1.value = type;
		document.all.txt_type2.value = "";
		document.all.txt_fileid.value = "";

		document.all.txt_sub.value = "1";
		document.all.txt_edit.value = "";
		document.all.txt_menuid.value = "";
		document.all.txt_topicid.value = "";
		document.all.txt_search.value = "";

		document.all.form1.action = "index.jsp";
		document.all.form1.submit();
	}

	//改变二级菜单
	function changemenu2(type)
	{				
		document.all.txt_type1.value = "<%=strId1%>";
		document.all.txt_type2.value = type;

		document.all.txt_fileid.value = "";
		
		document.all.txt_sub.value = "2";
		document.all.txt_edit.value = "";
		document.all.txt_menuid.value = "";
		document.all.txt_topicid.value = "";
		document.all.txt_search.value = "";

		document.all.form1.action = "index.jsp";
		document.all.form1.submit();
	}

	//用户登陆时进行语法验证
	function checkout()
	{
		if(document.all.uid.value=="")
		{
			alert("请输入用户名!");
			document.all.uid.focus();
			return false;
		}
		else if(document.all.pwd.value=="")
		{
			alert("请输入密码!");
			document.all.pwd.focus();
			return false;
		}
		else
		{

			var oawin = 
		window.open("middle.htm","HGOA","height=120,width=350,scrollbars=no,resizable=yes,left=231,top=196,status=no,toolbar=no,menubar=no");
			oawin.focus();
			oawin.opener=window;
		}
	}
	
	function gotopwd(ii)
	{
		document.all.txt_type1.value = "<%=strId1%>";
		document.all.txt_type2.value = "<%=strId2%>";
		if(window.event.keyCode==13)
		{
			checkout();
			if(document.all.uid.value=="")document.all.uid.focus();
			else if(document.all.pwd.value=="")document.all.pwd.focus();
		}
	}

	function search0()
	{
		document.all.txt_type1.value = "<%=strId1%>";
		document.all.txt_type2.value = "<%=strId2%>";
		document.all.txt_fileid.value = "";
		document.all.txt_edit.value = "";
		document.all.txt_menuid.value = "";
		document.all.txt_topicid.value = "";
		var value = document.all.select1.options[document.all.select1.selectedIndex].value;

		if(document.all.key.value=="关键字:"||document.all.key.value=="")
		{
			alert("请输入搜索关键字!");
		}
		else if(value=="1")
		{
			
			document.all.txt_search.value = "search.jsp?s1=1&s2=all&keyword="+document.all.key.value;
			document.all.form1.action = "index.jsp";
			document.all.form1.submit();
			
		}
		else
		{
			window.open(value+document.all.key.value);
		}
	}

	function findpsw()
	{
		
		if(document.all.uid.value=="")
		{
			alert("请输入用户名!");
			document.all.uid.focus();
			return false;
		}
		var url = "findPSW.jsp?yhm="+document.all.uid.value;
		var hWnd = window.open(url,"HelpWindow4","width=350,height=220,resizable=no,scrollbars=no,menubar=no,status=no");
	    if ((document.window != null) && (!hWnd.opener))
			hWnd.opener = document.window;
	    hWnd.focus();
	}

</script>

<jsp:include page="<%=childfile%>"/>
<table align=center border=0 height=80 cellPadding=0 cellSpacing=0 width="790" background="../images/bg01.gif">
	<tr><td align="center" valign="top"><br>
<%
Vector v = myBean.getLink();
for(int i = 0;i<v.size();i++)
{
	Hashtable h = (Hashtable)v.get(i);
	String t1 = (String)h.get("LINKNAME");
	String t2 = (String)h.get("LINKADDRESS");
	%>
	<a target=_blank href="<%=t2%>"><font color="#666666"><%=t1%></font></a>
	<%
	if((i+1)%8==0)out.print("<br>");
	else if(i!=v.size()-1)out.print("&nbsp;|&nbsp;");
	%>
<%}%><br> 
                  -------------------------------------------------------------------------------------------------------------------------------<br>
                  Copyright&copy;2003-2004 All rights reserved. Powered by qingqing
     </td></tr>
</table>
</form>
</BODY>
</HTML>
<%}catch(Exception e){}
finally{
	if(myBean!=null)
		myBean.closeConn();
}%>		

⌨️ 快捷键说明

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