95 lines
2.6 KiB
HTML
95 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
|
<meta charset="UTF-8">
|
|
|
|
<title>관리자 페이지</title>
|
|
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9TDS96SGFE"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'G-9TDS96SGFE');
|
|
</script>
|
|
|
|
|
|
<link rel="icon" href="/mouse_typing/resources/image/icon/favicon.ico" type="image/x-icon" />
|
|
<link rel="shortcut icon" href="/mouse_typing/resources/image/icon/favicon.ico" type="image/x-icon" />
|
|
|
|
<link href="../../../resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<script type="text/javascript" src="./../../../resources/jquery/jquery-3.3.1.min.js"></script>
|
|
<script type="text/javascript" src="./../js/main.js"></script>
|
|
<script type="text/javascript" src="./../js/request_server.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#password").keydown(function(key) {
|
|
if(key.keyCode == 13) {
|
|
login();
|
|
}
|
|
});
|
|
|
|
$("#section").load("admin_section.html");
|
|
});
|
|
|
|
function login() {
|
|
var name = $("#admin_name").val();
|
|
var password = $("#password").val();
|
|
|
|
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
|
"./../server/admin/login.php",
|
|
"admin_name=" + name + "&password=" + password,
|
|
|
|
function(jsonData) {
|
|
location.href = 'admin_all_list.html';
|
|
},
|
|
|
|
function(errorMessage, errorCode) {
|
|
if($("#error_message").length) {
|
|
$("#error_message").text(errorMessage);
|
|
}
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
|
|
<body style="background-color: white">
|
|
|
|
<div class="container">
|
|
<div class="border border-primary rounded px-5 py-4 my-3">
|
|
<h4 class="mb-4">로그인</h4>
|
|
<div id="message_box"></div>
|
|
|
|
<form class="mx-4">
|
|
<div class="form-group row">
|
|
<label for="maestro_name" class="col-sm-2 col-form-label">* 관리자 아이디</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" class="form-control" id="admin_name" placeholder="아이디 입력">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label for="password" class="col-sm-2 col-form-label">* 암호</label>
|
|
<div class="col-sm-4">
|
|
<input type="password" class="form-control" id="password" placeholder="Password">
|
|
<p><br/></p>
|
|
<button type="button" class="btn btn-primary btn-lg px-5" onClick="login()">로그인</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |