You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
2.7 KiB
120 lines
2.7 KiB
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>查找联系人</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
border: 0;
|
|
outline: none;
|
|
}
|
|
|
|
section {
|
|
border-radius: 15px;
|
|
width: 560px;
|
|
height: 700px;
|
|
margin: 0 auto;
|
|
background-image: url(../static/bg2.jpg);
|
|
box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, .1);
|
|
text-align: center;
|
|
}
|
|
|
|
.title {
|
|
width: 560px;
|
|
height: 150px;
|
|
line-height: 150px;
|
|
text-align: center;
|
|
}
|
|
|
|
.search {
|
|
position: relative;
|
|
width: 560px;
|
|
height: 400px;
|
|
}
|
|
|
|
.sousuo {
|
|
position: absolute;
|
|
left: 100px;
|
|
width: 246px;
|
|
height: 40px;
|
|
padding-left: 50px;
|
|
|
|
}
|
|
|
|
.search input[type=submit] {
|
|
position: absolute;
|
|
left: 346px;
|
|
width: 100px;
|
|
height: 40px;
|
|
}
|
|
|
|
.search input[type=submit]:hover {
|
|
cursor: pointer;
|
|
background-color: skyblue;
|
|
}
|
|
|
|
footer {
|
|
width: 560px;
|
|
height: 100px;
|
|
font-size: 20px;
|
|
text-align: center;
|
|
line-height: 100px;
|
|
}
|
|
|
|
footer a {
|
|
display: block;
|
|
margin: 0 auto;
|
|
width: 560px;
|
|
height: 100px;
|
|
}
|
|
|
|
footer a:hover {
|
|
color: aqua;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<section>
|
|
<div class="title">
|
|
<h1>删除联系人</h1>
|
|
</div>
|
|
<form th:action="@{/delete_user_data}" target="_self" >
|
|
<div class="search">
|
|
<input class="sousuo" type="search" name="name" placeholder="请输入要删除的联系人姓名" required="required">
|
|
<input type="submit" value="确认删除">
|
|
</div>
|
|
|
|
</form>
|
|
<div id="message"><p></p></div>
|
|
<footer>
|
|
<a th:href="@{/data}">返回联系人列表</a>
|
|
</footer>
|
|
</section>
|
|
|
|
<script th:inline="javascript">
|
|
var message = [[${message}]];
|
|
if(message != null){
|
|
var p = document.querySelector("p");
|
|
p.style.color='red';
|
|
p.innerText = message;
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html> |