Files
sms_host20170829/manager/content/04poll/delete_ok.asp
T
2026-02-23 10:01:00 +09:00

61 lines
1.3 KiB
Plaintext

<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->
<!--#include file = "config.asp" -->
<%
' 파라미터정보 *************************************************************************************
po_idx = InputValue(request("po_idx"))
status = InputValue(request("status"))
' **************************************************************************************************
If status = "totdel" then ' 다중삭제
chk = Replace(request("chk")," ", "")
arr_chk = Split(chk, ",")
For z=0 To UBound(arr_chk)
sql = "select po_pk from poll where po_idx= "&arr_chk(z)
Set Rs = Dbcon.Execute (sql)
po_pk = rs("po_pk")
rs.close : Set rs = nothing
' poll 삭제
sql = " delete from poll where po_pk = "&po_pk
Dbcon.execute sql
' 페이지 삭제
sql = " delete from poll_question where po_pk = "&po_pk
Dbcon.execute sql
next
else ' 일반삭제
sql = "select po_pk from poll where po_idx= "&po_idx
Set Rs = Dbcon.Execute (sql)
po_pk = rs("po_pk")
rs.close : Set rs = nothing
' poll 삭제
sql = " delete from poll where po_pk = "&po_pk
Dbcon.execute sql
' 페이지 삭제
sql = " delete from poll_question where po_pk = "&po_pk
Dbcon.execute sql
End If
Dbcon.close
ok_url = "list.asp?"&page_info
Call loding ("0",ok_url)
%>