Files
poll-recruit/Recruit/oncheck.asp
2025-10-01 09:29:34 +09:00

122 lines
5.6 KiB
Plaintext

<!--#include Virtual = "/lib/config.asp" -->
<%
Dim check : check = URLDecode(request("check"))
Dim r_phone : r_phone = URLDecode(request("r_phone"))
'response.write Check
Dim SQL
%>
<html lang="ko">
<!-- Header-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="now">
<meta http-equiv="Expires" content=0>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=10">
<!-- 위 3개의 메타 태그는 *반드시* head 태그의 처음에 와야합니다; 어떤 다른 콘텐츠들은 반드시 이 태그들 *다음에* 와야 합니다 -->
<title><%= stitle%> 출구조사 조사원</title>
<link rel="icon" href="../image/favicon.ico" type="image/vnd.microsoft.icon">
<!-- 부트스트랩 -->
<link href="/bootstrap-3.3.2-dist/css/bootstrap.min.css" rel="stylesheet">
<!-- IE8 에서 HTML5 요소와 미디어 쿼리를 위한 HTML5 shim 와 Respond.js -->
<!-- WARNING: Respond.js 는 당신이 file:// 을 통해 페이지를 볼 때는 동작하지 않습니다. -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/earlyaccess/notosanskr.css">
<link rel="stylesheet" type="text/css" href="../css/main.css?ver=1">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-warning">
<div class="panel-heading text-center">
출석체크 (온라인용)
</div>
<div class="panel-body text-center">
<form id="chkForm" method="POST">
<input type="text" class="form-control" name="r_name" id="r_name" placeholder="이름">
<input type="number" class="form-control" name="r_phone" id="r_phone" placeholder="핸드폰번호">
</form>
</div>
<div class="panel-footer text-center">
<button type="button" class="btn btn-default" name="check" id="check">출석체크</button>
</div>
</div>
</div>
</div>
</div>
</body>
<!--#include virtual="/Include/js.asp"-->
<script>
$(document).ready(function() {
$("#check").on('click', function(){
if($("#r_name").val() == ""){
alert("출석체크를 위해 이름을 입력하여 주십시오.");
$("#r_name").focus();
return false;
}
if($("#r_phone").val() == ""){
alert("출석체크를 위해 핸드폰번호를 입력하여 주십시오.");
$("#r_phone").focus();
return false;
}
var r_name = $("#r_name").val();
var r_phone = $("#r_phone").val();
$.ajax({
url: "/Ajax/AjaxCheck.asp",
type:"POST",
data:{"gubun":"check","r_name": escape(r_name),"r_phone":escape(r_phone), "chk": "on"},
success:function(res){
if(res == "nouser"){
alert("등록되지 않은 정보입니다.\n다시 입력해주세요.");
}else if(res == "already"){
alert("이미 출석체크가 완료되었습니다.\n창을 닫아 주십시오.")
window.open("about:blank","_self").self.close();
}else if(res == "complete"){
alert("출석체크 완료\n창을 닫아 주십시오.");
window.open("about:blank","_self").self.close();
}else if(res == "nocheck"){
alert("출석체크 대상자가 아닙니다.");
}else{
alert("System Error\n관리자 문의");
}
},
error:function(err){
alert("System Error\n관리자 문의");
return false;
}
});
});
function winClose(){
if(navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
open(location, '_self').close();
window.location.href="about:blank";
window.close();
}else {
window.opener = null;
window.open("", "_self");
window.close();
open(location, '_self').close();
}
}
});
</script>
</body>
</html>