Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions webapp/Login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>

<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="lib/bootstrap/css/material.min.css" />
<script defer src="lib/bootstrap/js/material.min.js"></script>
<meta charset="UTF-8">
<title>登录界面</title>
</head>

<body>

<style>
body {
background-image: url(lib/img/bg.jpg);
background-size: cover;
}

.demo-card-wide.mdl-card {
width: 500px;
}
</style>
<!--网格系统-->
<div class="mdl-grid">
<div class="demo-card-wide mdl-card mdl-shadow--6dp" style="margin:10% auto;">
<div class="mdl-card__title">
<h1 class="mdl-card__title-text">欢迎使用学生点名问答系统</h2>
</div>
<div class="mdl-card__supporting-text">
<form action="#">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" pattern="^(1[3|4|5|6|7|8][0-9])\d{10}$" id="sample4">
<label class="mdl-textfield__label" for="sample4">手机号</label>
<span class="mdl-textfield__error">输入的不是手机号</span>
</div>
</form>

<form action="#">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="password" pattern="^\w{6,12}$" id="sample4">
<label class="mdl-textfield__label" for="sample4">密码</label>
<span class="mdl-textfield__error">密码长度为6-12位</span>
</div>
</form>
</div>
<div class="mdl-card__actions mdl-card--border">
<button class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">登录</button> &nbsp;&nbsp;
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">注册</button>
</div>
</div>
</div>
</body>

</html>
71 changes: 71 additions & 0 deletions webapp/Register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html>

<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="lib/bootstrap/css/material.min.css" />
<script defer src="lib/bootstrap/js/material.min.js"></script>
<meta charset="UTF-8">
<title>登录界面</title>
</head>

<body>

<style>
body {
background-image: url(lib/img/bg.jpg);
background-size: cover;
}

.demo-card-wide.mdl-card {
width: 500px;
}
</style>
<!--网格系统-->
<div class="mdl-grid">
<div class="demo-card-wide mdl-card mdl-shadow--6dp" style="margin:10% auto;">
<div class="mdl-card__title">
<h1 class="mdl-card__title-text">系统注册</h2>
</div>
<div class="mdl-card__supporting-text">
<form action="#">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" pattern="^(1[3|4|5|6|7|8][0-9])\d{10}$" id="sample4">
<label class="mdl-textfield__label" for="sample4">手机号</label>
<span class="mdl-textfield__error">输入的不是手机号</span>
</div>
</form>

<form action="#">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" pattern="^(1[3|4|5|6|7|8][0-9])\d{10}$" id="sample4">
<label class="mdl-textfield__label" for="sample4">邮箱</label>
<span class="mdl-textfield__error">输入的邮箱格式不正确</span>
</div>
</form>

<form action="#">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" pattern="^(1[3|4|5|6|7|8][0-9])\d{10}$" id="sample4">
<label class="mdl-textfield__label" for="sample4">密码</label>
<span class="mdl-textfield__error">密码长度为6-12位</span>
</div>
</form>

<form action="#">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="password" pattern="^\w{6,12}$" id="sample4">
<label class="mdl-textfield__label" for="sample4">确认密码</label>
<span class="mdl-textfield__error">密码长度为6-12位</span>
</div>
</form>
</div>
<div class="mdl-card__actions mdl-card--border">
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">教师注册</button>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">学生注册</button>
</div>
</div>
</div>
</body>

</html>
Binary file added webapp/WEB-INF/lib/com/iss/dao/ITestDAO.class
Binary file not shown.
Binary file added webapp/WEB-INF/lib/com/iss/dbutils/DBUtils.class
Binary file not shown.
Binary file added webapp/WEB-INF/lib/com/iss/pojo/Test.class
Binary file not shown.
Binary file not shown.
Binary file added webapp/WEB-INF/lib/com/iss/servlet/TestServlet.class
Binary file not shown.
11 changes: 11 additions & 0 deletions webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
<display-name>Archetype Created Web Application</display-name>
<filter>
<filter-name>TestFilter</filter-name>
<filter-class>com.iss.filter.TestFilter</filter-class>
</filter>
</web-app>
Loading