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

📄 cart_null.jsp

📁 解压在c盘
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312"%> 
<%@ page import="java.sql.*"%> 
<%@ page import="java.util.Vector"%>
<html >
<head>
<title>无标题文档</title>
</head>
<%
String username=username=(String)session.getAttribute("username");
if(username=="" || username==null){
	out.println("<script language='javascript'>alert('请先登录!');window.location.href='index.jsp';</script>");
}else{



	%>
<body>
<table width="770" border="1" align="center">
  <tr>
    <th colspan="7" scope="col"><img src="../image/1.jpg" width="760" height="200" /></th>
  </tr>
  <tr>
    <th width="104" height="40" background="../image/t1.jpg" scope="row"><table width="100" border="0">
      <tr>
        <th scope="col"><a href="../index.jsp">首页</a></th>
      </tr>
    </table></th>
    <td width="104" background="../image/t1.jpg"><table width="100" border="0">
      <tr>
        <th scope="col"><a href="zhanshi.jsp">数码</a></th>
      </tr>
    </table></td>
    <td width="104" background="../image/t1.jpg"><table width="100" border="0">
      <tr>
        <th scope="col">服装</th>
      </tr>
    </table></td>
    <td width="104" background="../image/t1.jpg"><table width="100" border="0">
      <tr>
        <th scope="col">饰品</th>
      </tr>
    </table></td>
    <td width="104" background="../image/t1.jpg"><table width="100" border="0">
      <tr>
        <th scope="col">家电</th>
      </tr>
    </table></td>
    <td width="104" background="../image/t1.jpg"><table width="100" border="0">
      <tr>
        <th scope="col">食品</th>
      </tr>
    </table></td>
    <td width="100" background="../image/t1.jpg"><table width="100" border="0">
      <tr>
        <th scope="col">日用</th>
      </tr>
    </table></td>
  </tr>
</table>

	<table width="770" border="1" align="center">
  <tr>
    <th width="754" bgcolor="#A6BBFC" scope="col" ><marquee direction="left" scrollamount="1" scrolldelay="1" onMouseOver="this.stop();" onMouseOut="this.start();">
			<%if(username==null || username==""){%>
	  <font color="#330000">顾客您好!购买商品请先登录</font> <a href="../zhuce.jsp" >[新用户注册]</a>
	  <%}else{%><%=username%> <font color="#330000">您好! 电子商务交易平台欢迎您!</font>
	  <%}%>
    </marquee></th>
  </tr>
</table>

     <table width="770" border="1" align="center">
      <tr>
        <th width="200" height="180" valign="top" bgcolor="#FFF8B0" >
          <%  if (username==null || username==""){%>
          <form name="form1" method="post" action="wangye/Login_U.jsp">
            <table width="100%"  border="0" cellpadding="0" cellspacing="0">
                <tr>&nbsp;</tr>
				<tr>
                  <td width="94%" height="24"> <div align="center">会员名
                    <input name="username" type="text"  id="username" size="16">
                  </div></td>
                  
                </tr>
                <tr>
                  <td height="24"><div align="center">密&nbsp;&nbsp;码
                    <input name="PWD" type="password"  id="PWD" size="16" >
                  </div></td>
                 
                </tr>
				
                <tr>
                  <td height="31">
			
                    <input name="Button" type="button"  value="注册" onClick="window.location.href='wangye/zhuce.htm'">
         
					&nbsp;
                    <input name="Submit2" type="submit"  value="登录" > 
					 <input name="Submit3" type="reset"  value="重置"></td>
                  
                </tr>
            </table>
			  <%}else{%>
			    
                <table width="100%"  border="1" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="94%" height="31" align="center" >[<%=username%>]您好!<br>
                      您现在可以购物了!</td>
                   
                  </tr>
                  <tr>
                    <td height="24" align="center">
					<input name="Submit22" type="button"  value="修改资料" onClick="window.location.href='wangye/modifyMember.jsp';">
					<input name="Submit33" type="button"  value="购 物 车" onClick="window.location.href='cart_see.jsp';"></td>
                   
                  </tr>
                  <tr>
                  </tr>
                </table>
				
			<%}%>     
	
		</form>		
		  
		  
		  
		  
	    </th>
        <th width="554" rowspan="2" bgcolor="#FFFACE">
	  
	  <table width="90%"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="24" colspan="2" align="center">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="48%" height="38" align="right" >您的购物车为空!</td>
                      <td width="52%" rowspan="3" align="right" valign="bottom"><img src="../image/cart.gif" width="150" height="186"></td>
                    </tr>
                    <tr>
                      <td height="57" align="right"><input name="Button" type="button" value="我要购买商品!" onClick="window.location.href='../index.jsp'"></td>
                    </tr>
                    <tr>
                      <td height="72" align="right">&nbsp;</td>
                    </tr>
          </table>
	  
	  
	  </th>
      </tr>
      <tr>
        <th bgcolor="#FFF8B0" scope="col">&nbsp;</th>
      </tr>
    </table>    
    <table width="770" border="1" align="center">
      <tr>
        <th background="../image/2.jpg" scope="col"><br>
		<p><a href="#"><font size="2">关于我们</font></a> 
		  <font size="2"> |                           
		    <a href=#  onclick="">加入收藏</a> | <a href=#  onClick="">设为首页</a> | <a href="#">请您留言</a><br><br>
	      电子商务交易平台&nbsp;  版权所有</font></p><br>
		</th>
      </tr>
    </table>          
   <%
} 
   %>         
</body>      
</html>           
           

⌨️ 快捷键说明

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