?? modifysave.asp
字號:
<!--#include file="Session.asp"-->
<!--#include file="Conn.asp"-->
<%
'=======================================
'88red科技獨立開發(fā)完成本程序,并提供免費技術(shù)支持與升級服務(wù)
'官方網(wǎng)站 http://www.88red.com QQ:8375158 TEL:13964489818
'對于商業(yè)客戶,本站提供細(xì)致周到的各項售后服務(wù);對于盜版客戶恕不提供,對于散播本程序者本站將追究其法律責(zé)任
'88red科技將陸續(xù)開發(fā)其他各種先進(jìn)程序,例如企業(yè)網(wǎng)站建站系統(tǒng)等等,對老客戶購買其他程序給予最大程度的優(yōu)惠,歡迎洽談
'=======================================
If Request.Form("title")="" then
Response.Write"<script language=javascript>alert('新聞標(biāo)題必須填寫');this.location.href='javascript:history.go(-1)';</script>"
Response.End
End If
bclassid=Request("bcid")
sclassid=Request("scid")
if sclassid="" then
sclassid="0"
end if
title=Trim(Request("title"))
key=trim(request("key"))
des=trim(request("des"))
body=Request("Content")
set rs1=server.createobject("adodb.recordset")
sql1="select * from lianjie order by id desc"
rs1.open sql1,conn,1,1
if not rs1.eof then
do while not rs1.eof
if instr(body,rs1("gjc")) then
theurl="<a href="&rs1("href")&" target=_blank>"&rs1("gjc")&"</a>"
spms=replace(body,rs1("gjc"),theurl)
end if
rs1.movenext
loop
end if
rs1.close
set rs1=nothing
source1=request("source")
pic1=request("pic")
if pic1="" then
checkpic=false
else
checkpic=true
end if
set rs=server.createobject("adodb.recordset")
sql="select * from news where id="&request("id")
rs.open sql,conn,1,3
rs("bclassid")=bclassid
rs("sclassid")=sclassid
rs("title")=title
rs("gjz")=key
rs("miaoshu")=des
rs("body")=body
rs("source")=source1
rs("pic")=pic1
rs("gd")=request("gd")
rs("tt")=request("tt")
rs("tj")=request("tj")
rs("xg")=request("xg")
rs("checkpic")=checkpic
rs("date")=now()
rs.update
rs.close
set rs=nothing
id2=request("id")
response.write"<span id=showImport></span><IE:Download ID=""oDownload"" STYLE=""behavior:url(#default#download)"" />"
response.write"<script>function onDownloadDone(downDate){showImport.innerHTML=downDate}oDownload.startDownload('makenews1.asp?gid="&id2&"',onDownloadDone)</script>"
if request("b")="1" then
response.write"<script language=javascript>alert('新聞修改成功');this.location.href='modify12.asp?bid="&request("3id")&"';</script>"
else
response.write"<script language=javascript>alert('新聞修改成功');this.location.href='modify22.asp?sid="&request("3id")&"';</script>"
end if
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -