31 lines
900 B
Plaintext
31 lines
900 B
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<!-- #include virtual = "lib/json2.asp" -->
|
|
<%
|
|
Response.CharSet = "EUC-KR" 'ÇѱÛ
|
|
Response.AddHeader "Pragma","no-cache"
|
|
Response.AddHeader "cache-control", "no-staff"
|
|
Response.Expires = -1
|
|
|
|
dim info : set info = JSON.parse(request("data"))
|
|
dim query
|
|
|
|
dim executeCount : executeCount = 0
|
|
|
|
|
|
|
|
query = " INSERT INTO Job_List(p_no, j_date, j_p_sn, j_contents, j_time, j_ip) VALUES "
|
|
for i = 0 To info.length - 1
|
|
query = query & " (" & Session("User_Number") & ", '" & info.get(i).j_date & "', '" & info.get(i).j_prj & "', " & info.get(i).j_contents & ", " & info.get(i).j_time & ", '" & Request.ServerVariables("REMOTE_ADDR") & "'),"
|
|
next
|
|
query = mid(query, 1, len(query)-1)
|
|
if info.length > 0 then
|
|
adoConn.Execute query, executeCount
|
|
End if
|
|
|
|
|
|
if executeCount = info.length then
|
|
Response.Write "1"
|
|
else
|
|
Response.Write "0"
|
|
end if
|
|
%> |