최초커밋
This commit is contained in:
31
business/busi_save.asp
Normal file
31
business/busi_save.asp
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "lib/json2.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
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
|
||||
%>
|
||||
Reference in New Issue
Block a user