人机界面课团队完成影院管理系统界面的设计,在此基础上添加后台。
首先先完善注册和登录的功能。
注册:使用JavaMail的方法,向一个邮箱发送邮件,邮件里包含一个链接,点击链接后激活。
界面登录代码:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>剧院管理系统</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery-3.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.css">
<style>
body {
background: url(img/2.jpg) ;
background-size:cover;
}
.container {
width: 50%;
height: 50%;
color: white;
font-size: 16px;
font-family: arial;
text-align: center;
margin-top: 10%;
margin-left:30%;
}
.form-horizontal{
padding: 35px 45px;
}
.form-top {
overflow: hidden;
padding: 10px 25px;
line-height: 20px;
background: white;
color: gray;
-moz-border-radius: 4px 4px 0 0;
-webkit-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
}
.form-top span {
font-size: 20px;
font-weight: 700;
}
.login {
top: 30%;
box-shadow: 0 2px 6px 0 black;
text-align: center;
}
.form-bottom{
background: darkgray;
-moz-border-radius:0 0 4px 4px ;
-webkit-border-radius: 0 0 4px 4px ;
border-radius:0 0 4px 4px ;
opacity: 0.9;
}
.btn-block {
padding: 0 -15px;
}
.form-horizontal .form-group {
margin-left: 0;
margin-right: 0;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login ">
<div class="form-top">
<span>用 户 登 录</span>
</div>
<div class="form-bottom">
<div class="form-horizontal">
<form action="LoginServlet" method="post">
<div class="form-group ">
<input type="text" class="form-control" name="username">
</div>
<div class="f