⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 product_delpic.asp

📁 企业管理系统,黑色风格
💻 ASP
字号:
<!--#include file="i_login.asp"-->
<%
dim id,keyword,page
id=trim(request.Form("id"))

select case mode
case "delpic"
call delpic_sub()
end select

sub delpic_sub()
  Set rs = Server.CreateObject("ADODB.RecordSet") 
  rs.Open "select img,img_s from data_product where id="&id&"", Conn, 1,2
  if not rs.eof then
     if trim(rs(0))<>"" then
        if localhost(rs(0)) then
         call del_file(rs(0))
        end if
     end if
     if trim(rs(1))<>"" then
        if localhost(rs(1)) then
         call del_file(rs(1))
        end if
     end if
  rs("img")=null
  rs("img_s")=null
  rs.update
  end if
  rs.close
  set rs=nothing
  response.Write("ok")
end sub
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -