每日总结 4.19
今天进行了供货商web的编写,首先进行了登陆界面的设计优化,对于数据的查询用表格显示,明天继续对供货商页面继续进行数据的操作,登陆界面已经完成。

<!DOCTYPE HTML>
<html>
<head>
<title>登录界面</title>
<meta charset="utf-8">
<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">
<link rel="stylesheet" type="text/css" href="css.css" />
</head>
<body>
<form name="form1" action="" method="post">
<h1>供货商登录</h1>
<input class=input_1 id=username size=15 name="username" placeholder=用户名><br />
<input class=input_1 id=password type=text size=15 name="password" placeholder=密码><br />
<br/>
<input class=input_3 type="button" onclick="login()" value="登录" />
<input class=input_3 type="button" onclick=document.form1.reset() value="重置" />
<input class=input_3 type="button" onclick="zhucea()" value="注册" />
</form>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
case "zc": String name=request.getParameter("username"); String password=request.getParameter("password"); String address=request.getParameter("address"); System.out.printf(address); d.add(name, password, address); request.getRequestDispatcher("login.html").forward(request, response); break; case "queren": String username=request.getParameter("username"); String passwords=request.getParameter("password"); //response.getWriter().println("<script>alert('此用户您无权限查看')</script>"); //response.getWriter().println("<script>window.location.href='./index.jsp'</script>"); if(d.check(username, passwords)) { request.getRequestDispatcher("lay.jsp").forward(request, response); }else { response.setContentType("text/html;charset=utf-8"); PrintWriter out = response.getWriter(); out.println("<script language=javascript>alert('密码错误');window.location='login.html'</script>"); } break;
浙公网安备 33010602011771号