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

📄 main.jsp

📁 一个购物网站
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>游戏天地</TITLE>

<SCRIPT language=JavaScript1.2>
<!--
function listdiv(str)
{
	if(str=='xh')
	{
		xh.style.visibility = "visible";
		lp.style.visibility = "hidden";
		gwzn.style.visibility = "hidden";
		wzdd.style.visibility = "hidden";
		hyfw.style.visibility = "hidden";
	}
	if(str=='lp')
	{
		xh.style.visibility = "hidden";
		lp.style.visibility = "visible";
		gwzn.style.visibility = "hidden";
		wzdd.style.visibility = "hidden";
		hyfw.style.visibility = "hidden";
	}
	if(str=='gwzn')
	{
		xh.style.visibility = "hidden";
		lp.style.visibility = "hidden";
		gwzn.style.visibility = "visible";
		wzdd.style.visibility = "hidden";
		hyfw.style.visibility = "hidden";
	}
	if(str=='wzdd')
	{
		xh.style.visibility = "hidden";
		lp.style.visibility = "hidden";
		gwzn.style.visibility = "hidden";
		wzdd.style.visibility = "visible";
		hyfw.style.visibility = "hidden";
	}
	if(str=='hyfw')
	{
		xh.style.visibility = "hidden";
		lp.style.visibility = "hidden";
		gwzn.style.visibility = "hidden";
		wzdd.style.visibility = "hidden";
		hyfw.style.visibility = "visible";
	}
}
function hiddendiv(str)
{
	eval(str).style.visibility = "hidden";
}
-->
</SCRIPT>

<script language="javascript">
function checkSearch(){
	if(document.form1.prices_select.value!=0){
		form1.submit();
	}
}
</script>

<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</SCRIPT>

<STYLE type=text/css>
@import url("images/style.css");

.a1 {FONT-SIZE: 12px; FILTER: glow(Color=#000000, strength=1); WIDTH: 6%; CURSOR: hand; LINE-HEIGHT: 150%; FONT-FAMILY: "宋体"}
.a2 {FONT-SIZE: 12px; FILTER: glow(Color=#000000, strength=1); WIDTH: 8%; CURSOR: hand; LINE-HEIGHT: 150%; FONT-FAMILY: "宋体"}
.a3 {FONT-SIZE: 12px; FILTER: glow(Color=#000000, strength=1); WIDTH: 10%; CURSOR: hand; LINE-HEIGHT: 150%; FONT-FAMILY: "宋体"}
body {
	background-image: url(<%=request.getContextPath()%>/images/background.png);
	background-repeat: repeat;
	margin-top: 0px;
}
</STYLE>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	color: #00CC33;
	font-weight: bold;
}
.style2 {color: #000000}
.style4 {color: #000000; font-weight: bold; }
-->
</style>
</HEAD>

<BODY>
	<!--最外层的表格-->
	<table cellspacing="0" cellpadding="0" width="750" height="900" border="0" align="center">
		<tr>
			<td width="750" height="900" align="left" valign="top">
				<!-------------------------------------载有logo部分的表格----------------------------------------->
				<table width="100%" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
      				<tr>
        				<td align="left" valign="top"><a href="<%=request.getContextPath()%>/index.jsp"><img src="<%=request.getContextPath()%>/images/top_bg.gif" name="logo" width="750" height="100" border="0" id="logo"></a></td>
      				</tr>
    			</table>
				<!-------------------------------------顶部横菜单部分的表格--------------------------------------->
      			<TABLE height="30" cellspacing="0" cellpadding="0" width="100%" align="center" background=   "<%=request.getContextPath()%>/images/top_menubg.gif" border="0">
  					<TR bgcolor="#453F3F">
    					<TD width="100" height="30" align="left">&nbsp;</TD> 
    					<TD width="420" height="30" align="left" valign="middle" class="text2">
	  					  <span style="color: #FFFFFF"><FONT style="FONT-WEIGHT: bold">
						<A href="<%=request.getContextPath()%>/index.jsp"><font color="#FFFFFF">
						首页</font></A>-
	
						
	
						<A href="<%=request.getContextPath()%>/logout.jsp"><font color="#FFFFFF">注销</font></A>- 
	
						 
	
						<A href="<%=request.getContextPath()%>/shoppingCar.jsp"><font color="#FFFFFF">
						购物车</font></A>-
	
						 
	
						<A href="<%=request.getContextPath()%>/shoppingGuide.jsp"><font color="#FFFFFF">
						本店宗旨</font></A>- 
	
						 
	
						<A href="<%=request.getContextPath()%>/paymentExplain.jsp"><font color="#FFFFFF">
						购物流程</font></A>- 
	
						  
	
						<A href="storeManagedIndex.jsp"><font color="#FFFFFF">
						管理员登陆</font></A> - 
	
						
	
						<A href="<%=request.getContextPath()%>/aboutUs.jsp"><font color="#FFFFFF">
						个人资料</font></A> </FONT></span> </TD>
					    <TD width="180" align="middle">
						<FONT class="text0">
      						<DIV class="text0" id="jnkc"><!-- 时间显示 -->
      						<SCRIPT language="JavaScript" type="text/javascript">
	  						setInterval("jnkc.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
	  						</SCRIPT>
      						</DIV>
					  </FONT>					  </TD>
	  
    					<TD width="50" height="30" align="right">&nbsp;</TD>
					</TR>
			  </TABLE>
		  		<!-----------------------------------------------中间部分的表格-------------------------------------------------->
		  		<table width="100%" height="600" border="0" cellpadding="0" cellspacing="0">
            		<tr>
			  			<!--============中间部分左边一列===============-->
              			<td width="200" height="600" align="left" valign="top" >
			  				<!--***左边一列嵌入的表格***-->
			  					<table width="200" height="550" border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/images/left_bg.gif">
                					<tr>
                  						<td align="left" valign="top" background="<%=request.getContextPath()%>/images/left_bg.gif">
											<!--登录成功后部分的表格-->
			  								<table width="100%" height="90" border="0" cellpadding="0" cellspacing="0">
              									<tr>
                  									<td align="left" valign="top">
				  										
				    								<table width="100%" height="86" border="0" cellpadding="0" cellspacing="0">
                      										<tr>
                      										  <td  align="center" valign="middle">
															    <span class="style2"><strong>亲爱的:<%=session.getAttribute("userName")%></strong></span>															  </td>
													  </tr>
															  <tr>
															  <td align="center" valign="top">
															    <span class="style4">欢迎您来到游戏天地!</span> </td>
  
                   										  </tr>
													  </table>
				  									
                  									</td>
                								</tr>
              								</table>
   			  								<!--搜索部分的表格-->
              								<table cellspacing="0" cellpadding="0" width="100%" height="185" border="0">
              									<tr>
              										<td align="left" valign="top">
														<TABLE width="100%" height="135" border=0 cellPadding=0 cellSpacing=0>
                      									<FORM name="form1" action="<%=request.getContextPath()%>/SearchAction"                                                              method=post>
						  								<!--虚线图片行-->
                          								<TR>
                            								<TD align="center" colSpan=2 height=10><IMG src="<%=request.getContextPath()%>/images/line.gif" width=180 height=1></TD>
                          								</TR>
						  								<!--鲜花搜索图片行-->						  
						  								<TR align=middle>
                            								<TD class=text1 colSpan=2 height=30><IMG src="<%=request.getContextPath()%>/images/title_spss.gif" width=160 height=30></TD>
                          								</TR>
						  								<!--空格行-->
                          								<TR>
                            								<TD align=right colSpan=2 height=5></TD>
                          								</TR>
						 	 							<!--价格范围行-->
                          								<TR>
                            								<TD width="35%" height="25" align=right class=text1>价格范围:</TD>
                            								<TD width="50%" height="25" align=left class=text1>
															<select style="WIDTH: 100px" name="prices_select">
                              								<option value="0" selected>价格范围</option>
                              								<option value="1">20元以下</option>
                              								<option value="2">20-30元</option>
                              								<option value="3">30-40元</option>
                              								<option value="4">40-50元</option>
                            								</select></TD>
                          								</TR>
                          								<!--关键字行-->             
                          								<TR>
                            								<TD class=text1 align=right height=20>关 键 字:</TD>
                            								<TD align=left><INPUT size=10 name=key></TD>
                          								</TR>
						  								<!--空格行-->
                          								<TR>
                            								<TD  colSpan=2 height=10></TD>
                          								</TR>
						  								<!--搜索按钮行-->
                          								<TR align=middle>
                            								<TD class=text1 colSpan=2 height="35"><INPUT name="image" type="image" onClick="checkSearch()" src="<%=request.getContextPath()%>/images/button_search.gif" width=95 height=35></TD>
                          								</TR>
                        								</FORM>
                      									</TABLE>
													</td>
                  								</tr>
                							</table>
											<!--购物车部分的表格-->
                							<TABLE width="100%" height="85" border=0 cellPadding=0 cellSpacing=0>
												<!--虚线图片行-->		  
                    							<TR>
                      								<TD align="center" height="10"><IMG height=1 src="<%=request.getContextPath()%>/images/line.gif" width=180></TD>
                    							</TR>
												<!--购物车图片行-->
                    							<TR>
                      								<TD align=middle height="65"><a href="<%=request.getContextPath()%>/shoppingCar.jsp"><IMG height=65 src="<%=request.getContextPath()%>/images/title_gwc.gif" width=185 border=0></a></TD>
                    							</TR>
												<!--虚线图片行-->
                    							<TR>
                      								<TD align="center" height="10"><IMG height=1 src="<%=request.getContextPath()%>/images/line.gif" width=180></TD>
                    							</TR>
                							</TABLE>
											<!--价格范围行-->
                          					<TABLE width="100%" height="270" border=0 cellPadding=5 cellSpacing=0>
												<TR>
                      								<TD height=20 align=middle background="<%=request.getContextPath()%>/images/title_rbg.gif" class=text6></TD>
                    							</TR>
                    							<TR>
                      								<TD height=250 align="left" valign="middle">
					  								</TD>
                    							</TR>
											</TABLE>
									  </td>
                					</tr>
				  		  </table>			  	
			 		  </td>
							<!--==================中间部分右边一列==================-->
                			<td width="550" height="600" align="left" valign="top" background="<%=request.getContextPath()%>/images/right_bg.gif">
								<!--右边一列嵌入的表格-->
								<table width="550" height=600 border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/images/right_bg.gif">
                  					<tr>
                    					<td align="left" valign="top">
										
										
										
										<jsp:include page="view.jsp" >
											<jsp:param name="test" value="123" />
										</jsp:include>

										
										
										
										</td>
                  					</tr>
               				  </table>
					  		</td>
		  		  </tr>
	  		  </table>
	  				<!-----------------------------------------------------底部横菜单部分的表格-------------------------------------------->
      				<table height="89" width=100% cellSpacing=0 cellPadding=0  align="center"  border=0>
        				
						<TR>
						  <TD height="41" align="center"  class=text2 style5 style4><img src="images/menu_down2.gif" width="749" height="42"></TD>
					  </TR>
						<TR>
          					
          					<TD width=776 height="48" align="center" bgcolor="#453F3F" class=text2 style5 style4>
		  					    <A href="<%=request.getContextPath()%>/default.jsp"><font color="#FFFFFF"> 首 页</font></A> -
		  					    <A href="<%=request.getContextPath()%>/default.jsp"><font color="#FFFFFF"> 购物车</font></A> - 
		  					    <A href="<%=request.getContextPath()%>/default.jsp"><font color="#FFFFFF">购物帮助</font></A> - 
		  					    <A href="<%=request.getContextPath()%>/default.jsp"><font color="#FFFFFF"> 支付说明</font></A> - 
		  					    <A href="<%=request.getContextPath()%>/default.jsp"><font color="#FFFFFF"> 联系我们</font></A>
                            </TD>
          					
        				</TR>
			  </TABLE>
	  				<!--------------------------------------------------------底部网站信息--------------------------------------------------->
      				<table width="100%" height="80" border="0" cellpadding="0" cellspacing="0">
        				<tr>
          				  <td align="center" valign="middle" >		  					
							<p align="center" class="style6">游戏天地 精品游戏<BR>
            				  地址:成都信息工程学院航空港   邮编:610225<BR>
            				电话:028-85967449  Email:lxcliz@163.com <BR>
            				</p>	  					  
						  </td>
        				</tr>
      				</table>
  		  </td>
	  </tr>
</table>
</BODY>
</HTML>

⌨️ 快捷键说明

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