-
Notifications
You must be signed in to change notification settings - Fork 25
/
install.html
79 lines (77 loc) · 2.49 KB
/
install.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SadFile - 程序安装</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<!-- 框架样式 -->
<link rel="stylesheet" type="text/css" href="http://cdn.clouddeep.cn/amazeui/1.0.1/css/amazeui.basic.min.css">
<style>
*{
margin:0;
padding: 0;
}
#install{
width: 600px;
margin: 0 auto;
text-align: center;
margin-top: 40px;
}
input{
margin-bottom: 10px;
}
h1{
text-align: center;
font-weight: 100;
font-size: 46px;
}
@media screen and (max-width: 600px){
#install{
width: 90%;
margin-top: 10px;
}
}
</style>
</head>
<body>
<div id="install">
<h1>SadFile 程序安装</h1>
<p>v2.0</p>
<div id="danger" style="display: none;" class="am-alert am-alert-danger" data-am-alert>
<button type="button" class="am-close">×</button>
<p>请确保每一项都填写完整</p>
</div>
<div class="am-g">
<div class="am-u-md-8 am-u-sm-centered">
<form class="am-form" method="post" action="install.php">
<fieldset class="am-form-set">
<input name="server" type="text" placeholder="数据库地址 默认:127.0.0.1">
<input name="dbuser" type="text" placeholder="数据库 用户名">
<input name="dbpwd" type="text" placeholder="数据库 密码">
<input name="dbname" type="text" placeholder="数据库 库名(请使用已创建的数据库)">
<br>
<input name="admin_user" type="text" placeholder="管理用户名">
<input name="admin_pwd" type="text" placeholder="用户密码">
<input name="admin_nico" type="text" placeholder="用户昵称">
<br>
<input name="siteurl" type="text" placeholder="站点域名 带http:// 不要以“/”结尾">
</fieldset>
<button id="start_install" type="submit" class="am-btn am-btn-primary am-btn-block">开始安装</button>
</form>
</div>
</div>
</div>
<p align="center">SadFile CopyRight©2018-2019 <a href="http://www.shuyudao.top/">术与道</a> All Rights Reserved.</p>
</body>
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$('#start_install').click(function () {
for(var i = 0 ; i < $('input').length ; i++){
if($('input')[i].value==''){
alert("请确保每一项都填写完整");
return false;
}
}
})
</script>
</html>