<!--#include file="conn.asp"-->



<%
if session("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('ΗλΟΘ΅ΗΒΌ£‘');location.href='index.asp' ;</script>"
response.End
else
if request.cookies("sundxshop")("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('ΗλΟΘ΅ΗΒΌ£‘');location.href='index.asp' ;</script>"
response.End
end if
end if

%>
<% dim action,skinpid
id=SafeRequest("id",1)
webbg=SafeRequest("pic",0)
action=FormatSQL(SafeRequest("action",0))
select case action
case "save"
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from sdx_skin ",conn,1,3
if id=1 then
rs("webbg1")=webbg
elseif id=2 then
rs("webbg2")=webbg
elseif id=3 then
rs("webbg3")=webbg
elseif id=4 then
rs("webbg4")=webbg
elseif id=5 then
rs("webbg5")=webbg
end if
rs.update
rs.close
set rs=nothing
response.Redirect "admin_skinimg.asp?id="&id&""

case "del"
conn.execute ("delete from sdx_skinpic where skinpid="&skinpid)
response.Redirect "admin_skinimg.asp?id="&rs("skinid")&""
end select
%>