85 lines
2.4 KiB
Plaintext
85 lines
2.4 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
|
|
<%'출근 시각 및 퇴근시각 저장%>
|
|
|
|
|
|
<%
|
|
dim neakeun_name
|
|
dim neakeun_jumin
|
|
dim Query
|
|
dim condate
|
|
dim time_chk '출근/퇴근
|
|
dim ip_address
|
|
dim now_time
|
|
|
|
|
|
|
|
condate = Request("condate")
|
|
neakeun_name = Request("neakeun_name")
|
|
neakeun_jumin = Request("neakeun_jumin")
|
|
permanent_position = Request("permanent_position")
|
|
in_time = request("in_time")
|
|
out_time = request("out_time")
|
|
|
|
|
|
ip_address = Request.ServerVariables("REMOTE_HOST")
|
|
|
|
query = " update neakeun_in_out_time "
|
|
query = query & " set in_time = '"& in_time &"', out_time = '"& out_time &"' "
|
|
query = query & " where neakeun_name = '"& neakeun_name &"' "
|
|
query = query & " and left(neakeun_jumin, 6) = left('"& neakeun_jumin &"', 6) "
|
|
query = query & " and date = '"& condate &"' "
|
|
|
|
|
|
Response.Write query
|
|
|
|
adoConn.Execute query
|
|
|
|
%>
|
|
|
|
|
|
<html>
|
|
<head>
|
|
<LINK rel="stylesheet" type="text/css" href="/lib/kic.css">
|
|
<meta http-equiv="content-type" content="text/html; charset=ks_c_5601-1987">
|
|
</head>
|
|
<body leftmargin=0 topmargin=0 onload ="win_close();">
|
|
<TITLE>내근직 출퇴근 시간 수정</TITLE>
|
|
|
|
<form method='post' name='frm_work' >
|
|
<div align='center'>
|
|
<table border=1 bordercolor="#CD1039" bordercolorlight="#CD1039" cellspacing="0" bordercolordark="#FFFFFF" cellpadding=0 width=720>
|
|
<tr >
|
|
<td colspan=13><font color=blue size=5>
|
|
<b>이름:<input type=text name='neakeun_name' value = '<%=neakeun_name%>'>
|
|
주민:<input type=text name='neakeun_jumin' value = '<%=neakeun_jumin%>'></b></font></td>
|
|
<input type=hidden name='permanent_position' value = '<%=permanent_position%>'>
|
|
</tr>
|
|
<input type=text name='condate' value = '<%=condate%>'>
|
|
|
|
|
|
</table>
|
|
</div>
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
<script language="javascript">
|
|
//모프레임을 리플레쉬하기
|
|
var neakeun_name = document.frm_work.neakeun_name.value;
|
|
var neakeun_jumin = document.frm_work.neakeun_jumin.value;
|
|
var permanent_position = document.frm_work.permanent_position.value;
|
|
|
|
var condate = document.frm_work.condate.value;
|
|
|
|
|
|
var url = "./input_time_2014.asp?neakeun_name=" + neakeun_name + "&neakeun_jumin=" + neakeun_jumin + "&condate = " + condate + "&permanent_position = " + permanent_position;
|
|
|
|
// parent.document.location.href = url;
|
|
|
|
//또는
|
|
parent.document.forms[0].action = url;
|
|
parent.document.forms[0].submit();
|
|
</script>
|