Save
This commit is contained in:
@@ -0,0 +1,138 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title>登录-HighSpeaker高声语DNS</title>
|
||||
|
||||
<!-- Custom fonts for this template-->
|
||||
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
|
||||
|
||||
|
||||
<!-- Custom styles for this template-->
|
||||
<link href="css/sb-admin-2.min.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'HStitle';
|
||||
src:url(font/HighSpeaker.ttf);
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'HarmonyOS';
|
||||
src:url(font/HarmonyOSSans-Medium.woff2);
|
||||
}
|
||||
.highspeaker {
|
||||
font-family: 'HStitle';
|
||||
}
|
||||
html body {
|
||||
font-family: 'HarmonyOS';
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="bg-gradient-primary">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<!-- Outer Row -->
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<div class="col-xl-10 col-lg-12 col-md-9">
|
||||
|
||||
<div class="card o-hidden border-0 shadow-lg my-5">
|
||||
<div class="card-body p-0">
|
||||
<!-- Nested Row within Card Body -->
|
||||
<div class="row">
|
||||
<div class="col-lg-6 d-none d-lg-block" style=" background: url(logo.png);background-position: center;background-size: 125px 125px;background-repeat:no-repeat;"></div>
|
||||
<div class="col-lg-6">
|
||||
<div class="p-5">
|
||||
<div class="text-center">
|
||||
<h1 class="h4 mb-4 highspeaker" style="background-image: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);-webkit-background-clip: text;color: transparent;">HighSpeaker 高声语</h1>
|
||||
<h5>DNS管理系统-登录</h5>
|
||||
</div>
|
||||
<form class="user">
|
||||
<div class="form-group">
|
||||
<input id="name" type="text" class="form-control form-control-user"
|
||||
placeholder="(Account Only)">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" class="form-control form-control-user"
|
||||
id="password" placeholder="Password">
|
||||
</div>
|
||||
|
||||
<a href="javascript:login()" class="btn btn-primary btn-user btn-block">
|
||||
Login
|
||||
</a>
|
||||
<strong id="notice"></strong>
|
||||
|
||||
</form>
|
||||
<hr>
|
||||
<div class="text-center">
|
||||
<a class="small" href="//laysense.com/dns" target="_lsblank">© Laysense.com</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap core JavaScript-->
|
||||
<script src="vendor/jquery/jquery.min.js"></script>
|
||||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- Core plugin JavaScript-->
|
||||
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
|
||||
|
||||
<!-- Custom scripts for all pages-->
|
||||
<script src="js/sb-admin-2.min.js"></script>
|
||||
<script>
|
||||
function login(){
|
||||
var goto = "<?php echo($to);?>";
|
||||
var name = $("#name").val();
|
||||
var password = $("#password").val();
|
||||
if(name=="" || password==""){
|
||||
$('#notice').html('不能为空');
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: '/login/check',
|
||||
data: {'name':name,'password':password},
|
||||
async: false,
|
||||
dataType: 'json',
|
||||
cache: false,
|
||||
beforeSubmit: function () {
|
||||
$('#notice').html('正在登录');
|
||||
},
|
||||
success: function (data) {
|
||||
if (data.code == 200) {
|
||||
$('#notice').html('操作成功,即将刷新页面');
|
||||
$(location).attr('href',goto);
|
||||
} else {
|
||||
$('#notice').html(data.msg);
|
||||
}
|
||||
},
|
||||
clearForm: false,
|
||||
resetForm: false
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user