📄 edit.asp
字号:
<!--#include file="pathcheck.asp"-->
<!--#include file="isy.asp"-->
<!--#include file="conn.asp"-->
<%
thisid=Trim(Request.Form("voteid"))
voteco=Trim(Request.Form("voteco"))
bg_color=Trim(Request.Form("bg_color"))
word_color=Trim(Request.Form("word_color"))
word_size=Trim(Request.Form("word_size"))
sql="select * from votepro where id="&thisid
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
if rs.eof then Response.Redirect("rep.asp?operate=rsf")
rs("voteco")=voteco
for i=1 to 5
thisdate=Trim(Request.Form("cs"&i))
thisnum=Trim(Request.Form("cs"&i&"_num"))
if thisdate="" then thisdate=null
'if thisnum="" then thisnum=0
rs("cs_"&i)=thisdate
rs("cs_"&i&"_num")=thisnum
next
if bg_color<>"" then rs("bg_color")=bg_color
if word_color<>"" then rs("word_color")=word_color
if word_size<>"" then rs("word_size")=word_size
rs.update
closers
closedb
response.Redirect("rep.asp?operate=edit")
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -