최초등록
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<!--#include virtual="/common/lib/dbcon.asp"-->
|
||||
<!--#include virtual="/common/lib/func.asp"-->
|
||||
<!--#include file="config.asp"-->
|
||||
<%
|
||||
|
||||
If is_delete <> "Y" Then Call goMessage_board("접근권한이 없습니다.", Request.ServerVariables("HTTP_REFERER"), "", "", a_num)
|
||||
|
||||
|
||||
'//파라미터정보 *************************************************************************************
|
||||
b_num = InputValue(request.queryString("b_num"))
|
||||
a_num = InputValue(request.queryString("a_num"))
|
||||
b_file = "b_file" & InputValue( request.queryString("b_file"))
|
||||
prepage = request.QueryString("prepage")
|
||||
'//**************************************************************************************************
|
||||
|
||||
|
||||
'/파일 삭제
|
||||
SQL_I = "SELECT " & b_file & " FROM " & a_tablename & " WHERE b_num = " & b_num
|
||||
Set rs = Dbcon.Execute( SQL_I )
|
||||
|
||||
b_filename = rs(0)
|
||||
|
||||
strDir = server.mappath("/data/board/")& "\" & a_tablename & "\"
|
||||
strDir2 = server.mappath("/data/board/")& "\" & a_tablename & "\thum\"
|
||||
call dfile(strDir, b_filename) '삭제
|
||||
call dfile(strDir2, b_filename) '삭제
|
||||
|
||||
|
||||
'//삭제하기
|
||||
sql = " update " & a_tablename & " set " & b_file & " = '' WHERE b_num = " & b_num
|
||||
DBcon.Execute sql
|
||||
|
||||
|
||||
If prepage <> "" then
|
||||
ok_url = prepage
|
||||
else
|
||||
ok_url = "list.asp?a_num=" & a_num & "&" & page_info
|
||||
End if
|
||||
|
||||
Call loding("0", ok_url)
|
||||
%>
|
||||
Reference in New Issue
Block a user