📄 adminwishedit.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/sessionadmin.asp"-->
<%
ID=Request("ID")
IF Request.Form.Count<>0 Then
Suc=True
WishType=Trim(Request.Form("WishType"))
Sex=Request.Form("Sex")
Email=Trim(Request.Form("Email"))
Homepage=Trim(Request.Form("Homepage"))
Content=Trim(Request.Form("Content"))
FormWhere=Request.Form("FormWhere")
IF Content="" Then
ErrInfo=ErrInfo & "·请填写心愿内容<BR>"
Suc=False
End IF
IF Email="" Then
Email="no"
Else
If Instr(Email,"@")=0 Then
ErrInfo=ErrInfo & "·请填写正确的Email<BR>"
Suc=False
End IF
End IF
IF Homepage="" Then
Homepage="no"
End IF
IF Suc Then
SQL="Select * From 真情祝福 Where ID=" & Int(ID)
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,3,2
RS("性别")=Sex
RS("电子邮箱")=Email
RS("类型")=WishType
RS("来自")=FormWhere
RS("主页")=Homepage
RS("内容")=Content
RS.Update
End IF
End IF
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<%IF Request.Form.Count<>0 And Suc=True Then%>
<meta http-equiv="refresh" content="3;url=adminwish.asp">
<%End IF%>
<!--#include file="inc/css.asp"-->
<title><%=WebsiteName%></title>
</head>
<body topmargin="0" background="images/bg.gif">
<!--#include file="admintop.asp"-->
<div align="center">
<center>
<table border="0" width="755" cellspacing="0" cellpadding="0">
<tr>
<td width="189" style="background-color: #FFFFFF; border-left: 1 solid #000000; border-top: 1 solid #000000; border-bottom: 1 solid #000000" valign="top">
<!--#include file="aleft.asp"-->
</td>
<td width="562" style="background-color: #FFFFFF; border: 1 solid #000000" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="25" bgcolor="#EDEDED" style="border-bottom: 1 solid #000000;">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<p align="center">真情祝福管理</td>
</tr>
</table>
</td>
</tr>
<%IF Request.Form.Count=0 Then%>
<form action="" method="post">
<tr>
<td width="100%" valign="top" height="8"></td>
</tr>
<tr>
<td width="100%" valign="top" height="10"><div align="center">
<center>
<table border="0" width="90%" cellspacing="0" cellpadding="0" style="border: 1 solid #000000" height="136">
<tr>
<td width="500" background="images/bg2.gif" height="22" colspan="2">
<p align="center"><b>发 表 心 愿</b></td>
</tr>
</center>
<%
ID=Request("ID")
SQL="Select * From 真情祝福 Where ID=" & Int(ID)
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,1,1
IF RS.Eof THen
Response.Redirect "error.asp"
End IF
%>
<tr>
<td width="125" height="22" bgcolor="#F6F6F6" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
<p align="center">性 别
</td>
<td width="377" height="22" bgcolor="#F6F6F6" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
<select size="1" name="Sex" style="background-attachment: scroll; background-repeat: repeat; font-size: 9pt; height: 23; width: 109; background-color: #FFFFFF; border: 1 solid #000000; background-position: none 0%">
<option value="男" <%IF RS("性别")="男" Then%>selected<%End IF%>>我是男生</option>
<option value="女" <%IF RS("性别")="女" Then%>selected<%End IF%>>我是女生</option>
</select>
</td>
</tr>
<tr>
<td width="125" height="25" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
<p align="center">来 自
</td>
<td width="377" height="25" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
<select size="1" name="FormWhere" style="background-attachment: scroll; background-repeat: repeat; font-size: 9pt; height: 23; width: 109; background-color: #FFFFFF; border: 1 solid #000000; background-position: none 0%">
<option value=广东省>广东省</option>
<option value=北京市>北京市</option>
<option value=上海市>上海市</option>
<option value=天津市>天津市</option>
<option value=重庆市>重庆市</option>
<option value=香港特别行政区>香港特别行政区</option>
<option value=澳门特别行政区>澳门特别行政区</option>
<option value=中国台湾>中国台湾</option>
<option value=安徽省>安徽省</option>
<option value=福建省>福建省</option>
<option value=海南省>海南省</option>
<option value=浙江省>浙江省</option>
<option value=江苏省>江苏省</option>
<option value=江西省>江西省</option>
<option value=山东省>山东省</option>
<option value=山西省>山西省</option>
<option value=四川省>四川省</option>
<option value=湖北省>湖北省</option>
<option value=湖南省>湖南省</option>
<option value=河北省>河北省</option>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -