jsp_project_/store//store/WebRoot/Login

 


<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <title>登陆</title>
   
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!-- <img src=">-->
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
 <style type="text/css">
  .loginH1
{
  font-family:"新宋体";
  font-size:20px;
  color:#000000;
  font-weight: bold;
}
.loginText
{
    font-family:"新宋体";
 font-size:18px;
 color:#000000;
 font-weight: bold;
}
.userIn
{
    font-family:"新宋体";
 font-size:16px;
 color:#000000;
}
.inputText
{
   text-align:center;
   font:"新宋体";
   font-size:18px;
   font-weight:bolder;
   width:120px;
   height:35px
}
#user {
 position:absolute;
 left:161px;
 top:109px;
 width:55px;
 height:41px;
 z-index:1;
}
#Layer1 {
 position:absolute;
 left:246px;
 top:164px;
 width:84px;
 height:35px;
 z-index:2;
}
#Layer2 {
 position:absolute;
 left:261px;
 top:165px;
 width:58px;
 height:31px;
 z-index:2;
}
</style>
<script language="javascript" type="text/javascript">
function show()
{
   if(document.all.userName.value.length==0)
   {
       document.all.user_pass.style.display="block";
    return  false;
   }else
   {
       document.all.user_pass.style.display="none";
   }
   if(document.all.password.value.length==0)
   {
       document.all.pass.style.display="block";
     return  false;
   }else
   {
       document.all.pass.style.display="none";
   }
   return  true;
}
</script>
</head>

<body onContextMenu="return false">
<table width="105%" height="100%" border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:0; top:0">
  <tr>
    <td width="50%" height="112" colspan="2" align="left" valign="bottom"><img src="

file:///D|/project_jsp/Work/Img/logo.jpg" width="180" height="103" /></td>
    <td  width="50%" colspan="2" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="366" height="112">
        <param name="movie" value="file:///D|/project_jsp/Work/Img/webHeader.swf" />
        <param name="quality" value="high" />
        <embed src="file:///D|/project_jsp/Work/Img/webHeader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="366" height="112"></embed>
    </object></td>
  </tr>
  <tr>
    <td  height="13" colspan="4" bgcolor="#CC3300">&nbsp;</td>
  </tr>
  <tr>
    <td height="13">&nbsp;</td>
    <td>&nbsp;</td>
    <td height="13" bgcolor="#CC3300">&nbsp;</td>
    <td height="13">&nbsp;</td>
  </tr>
  <tr>
    <td width="49.5%" colspan="2" align="center" valign="top">
 <form  method="POST" action="LoginServlet" οnsubmit="return show()">
 <table width="300" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="10" height="28"><img src="file:///D|/project_jsp/Work/Img/left.gif" width="10" height="28" /></td>
        <td colspan="3" bgcolor="#ddddcc" class="loginH1">登陆</td>
        <td width="10" height="28"><img src="file:///D|/project_jsp/Work/Img/right.gif" width="10" height="28" /></td>
      </tr>
      <tr>
        <td width="10" height="54" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="3" class="loginText">注册用户从这里登陆</td>
        <td width="10" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="10" height="48" bgcolor="#ddddcc">&nbsp;</td>
        <td width="79" class="userIn">用户名称</td>
        <td width="122" >
          <input name="UserName" type="text" id="userName" class="inputText" />   </td>
        <td width="79"  align="left" ><label id="user_pass" style="display:none">用户不能为空</label></td>
        <td width="10" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="10" height="45" bgcolor="#ddddcc">&nbsp;</td>
        <td align="left" valign="middle" class="userIn">用户密码</td>
        <td align="left" valign="middle">
          <input name="PassWord" type="password" id="password" class="inputText"/> </td>
        <td  align="left" ><label id="pass" style="display:none">密码不能为空</label></td>
        <td width="10" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
     
      <tr>
        <td width="10" height="18" bgcolor="#ddddcc">&nbsp;</td>
        <td class="loginText">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td width="10" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="10" height="47" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="3" class="loginText"><p align="center">
  <input name="image" type="image" src=">
  </p></td>
        <td width="10" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="10" height="18" rowspan="3" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="3" class="loginText"><hr align="left" width="85%" size="3" color="#00FF66"/></td>
        <td width="10" rowspan="3" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" class="loginText">&nbsp;</td>
      </tr>
      <tr>
        <td height="30" colspan="3" class="userIn">客户支持:95588&nbsp;&nbsp;&nbsp;028-80889574 </td>
      </tr>
      <tr>
        <td width="10" height="13" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="3" bgcolor="#ddddcc">&nbsp;</td>
        <td width="10" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
    </table>
 </form></td>
    <td width="1%" align="center" valign="top" bgcolor="#CC3300">&nbsp;</td>
    <td width="49.5%" align="center" valign="top"><table width="300" height="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td  width="10" height="28"><img src="file:///D|/project_jsp/Work/Img/left.gif" width="100%" height="100%"/></td>
        <td colspan="2" bgcolor="#ddddcc" class="loginH1" align="left" >用户注册</td>
        <td   width="10" height="28"><img src="file:///D|/project_jsp/Work/Img/right.gif" width="100%" height="100%" /></td>
      </tr>
      <tr>
        <td width="3%" height="53" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="2" class="loginText"><div align="left">新用户从这里注册</div></td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="24" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="2"><hr align="left" width="85%" size="3" color="#00FF66"/></td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="53" bgcolor="#ddddcc">&nbsp;</td>
        <td width="30" align="center" valign="middle"><img src="file:///D|/project_jsp/Work/Img/mark.gif" width="5" height="5" /></td>
        <td width="87%" class="userIn"><div align="left">成为注册会员可以免费获得更多商品最新最及时的商品信息,假一赔十。</div></td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="49" bgcolor="#ddddcc">&nbsp;</td>
        <td width="30" align="center" valign="middle"><img src="file:///D|/project_jsp/Work/Img/mark.gif" width="5" height="5" /></td>
        <td class="userIn"><div align="left">本站货品的更新速度快,紧跟时代潮流。</div></td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="45" bgcolor="#ddddcc">&nbsp;</td>
        <td width="30" align="center" valign="middle"><img src="file:///D|/project_jsp/Work/Img/mark.gif" width="5" height="5" /></td>
        <td class="userIn"><div align="left">轻松享受网络购物乐趣,</div></td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="16" bgcolor="#ddddcc">&nbsp;</td>
        <td align="center" valign="middle">&nbsp;</td>
        <td class="userIn">&nbsp;</td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="13" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="2" align="center" valign="middle"><hr align="left" width="85%" size="3" color="#00FF66"/></td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="22" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="2" align="center" valign="middle">
        <FORM Method="get" action="Register.jsp">
        <input type="image" src="file:///D|/project_jsp/Work/Img/newUser.gif" width="94" height="22" />
        </FORM>
        </td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
      <tr>
        <td width="3%" height="13" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="2" align="center" valign="middle">&nbsp;</td>
        <td width="3%" bgcolor="#ddddcc">&nbsp;</td>
      </tr>
     
      <tr>
        <td width="3%" height="13" bgcolor="#ddddcc">&nbsp;</td>
        <td colspan="2" bgcolor="#ddddcc">&nbsp;</td>
        <td bgcolor="#ddddcc">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="4" bgcolor="#CC3300">&nbsp;</td>
  </tr>
   <tr>
    <td colspan="4">&nbsp;</td>
  </tr>
   <tr>
    <td colspan="4">&nbsp;</td>
  </tr>
  <tr>
  <%
      Integer count = (Integer)application.getAttribute("counter");
      if(count==null)
      {
         count = new Integer(1);
         application.setAttribute("counter",count);
      }else
      {
        application.setAttribute("counter",new Integer(count.intValue()+1));
      }
  %>
    <td colspan="4" align="center" class="loginText">
    <%
      out.print("欢迎访问Eshopping网站<br>");
      out.print("你是第"+application.getAttribute("counter")+"位访问本站");
    %>
    </td>
  </tr>
  <tr>
    <td colspan="4">&nbsp;</td>
  </tr>
</table>
</body>
</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值