-
Notifications
You must be signed in to change notification settings - Fork 0
/
changeArticle.html
118 lines (111 loc) · 3.23 KB
/
changeArticle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="images/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>修改文章</title>
<!-- include jquery -->
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<!-- include libraries BS3 -->
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="http://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<style>
.searchForm{
width:400px;
height:50px;
background:#f3f3f3;
margin-left:30px;
border-radius:3px;
float:right;
}
.searchInput{
margin-top:5px;
margin-left:6px;
width:97%;
height:80%;
border-radius:5px;
border:1px solid #ccc;
padding-left:13px;
font-size:15px;
color:#848484;
}
.search_btn{
float:right;
margin-left:15px;
margin-top:3px;
width:100px;
height:40px;
margin-right:20px;
}
.search_div label{
font-size:20px;
color:#525252;
padding-left:100px;
padding-top:20px;
}
.back{
float:right;
margin-right:100px;
margin-top:30px;
}
.item:hover {
background:#ccc;
cursor:pointer;
}
.choosen{
background:#ff8a8a;
}
.choosen:hover{
background:#f53d3d;
}
</style>
</head>
<body onload="getList()">
<div class="topTitle">
<img src="images/changeBanner.jpg" style="width:100%;opacity:0.9;height:400px;position:absolute;z-index:1;"></img>
</div>
<div class="search_div" style="margin-top:380px;position:absolute;z-index:999;width:100%;">
<div style="width:100%;height:60px;">
<label>请点击要修改的文章:</label>
<button class="search_btn btn btn-default" style="float:right;" onclick="searchArticle()">搜索</button>
<form class="searchForm">
<input name="s" class="searchInput" id="s" placeholder="搜索 ....." autocomplete="off">
</form>
</div>
<div style="width:100%;height:500px;">
<ul class="list-group" style="width:80%;margin:0 auto;margin-top:30px;">
<li id="li_1" class="item list-group-item" onclick="choose(this)">免费域名注册</li>
<li id="li_2" class="item list-group-item" onclick="choose(this)">免费 Window 空间托管</li>
<li id="li_3" class="item list-group-item" onclick="choose(this)">图像的数量</li>
<li id="li_4" class="item list-group-item" onclick="choose(this)">24*7 支持</li>
<li id="li_5" class="item list-group-item" onclick="choose(this)">每年更新成本</li>
<li id="li_6" class="item list-group-item" onclick="choose(this)">折扣优惠</li>
</ul>
<button type="button" class="back btn btn-primary" onclick="window.location.href='index.html'">回到首页</button>
</div>
</div>
</body>
</html>
<script>
function getList(){
$.get("jsp/deleteGetList.jsp?word=null",function(result){
$(".list-group").html(result);
});
}
function choose(a){
var chooseid = $(a).attr("id");
window.location.href="changeArticle_get.html?id="+chooseid;
}
function searchArticle(){
if($("#s").val()==""){
alert("请输入搜索内容!");
}
else{
$.get("jsp/deleteGetList.jsp?word="+encodeURI($("#s").val()),function(result){
$(".list-group").html(result);
});
}
}
</script>