影院管理系统的后台(一): 注册

本文介绍了影院管理系统后台的注册功能实现,采用JavaMail向用户邮箱发送激活邮件,邮件内附带激活链接。用户点击链接后完成账号激活。详细讲述了注册过程中的界面逻辑、UserDao及UserManager类的角色,以及数据库操作和邮件发送方法。
摘要由CSDN通过智能技术生成

人机界面课团队完成影院管理系统界面的设计,在此基础上添加后台。

首先先完善注册和登录的功能。

注册:使用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
  • 3
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值