📄 hfedit.asp
字号:
<!--#include file="conn.asp"-->
<%
'#################################################################
'# 程序名称:随缘网络留言本 V1.0
'# 授权方式:免费软件
'# 作者:随缘网络 QQ:84723090
'# 演示及技术支持:http://www.115cn.cn/book
'# 发布时间:2007-8-8
'# 声明:本程序由随缘网络独立自主开发,保留所有版权。
'# 各种用途均可免费使用、自由传播,但必须保留程序代码中的版权信息。
'#################################################################
%>
<%
if session("user")="" then
response.redirect "login.asp"
response.end
end if
%>
<%
id=request("id")
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from book where id="&id
rs.Open sql,conn,1,1
%>
<script language = "JavaScript">
function CheckForm()
{
if (document.bt.value.length == 0) {
alert("留言主题没有填写.");
document.addNEWS.title.focus();
return false;
}
if (document.addNEWS.user.value.length == 0) {
alert("您的称呼没有填写");
document.addNEWS.user.focus();
return false;
}
return true;
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
<title>编辑留言</title>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style></head>
<body leftmargin="0" topmargin="0">
<div align="center">
<table width="500" border="0" cellspacing="0" style="border: 1px solid #86B9D6; padding: 0" cellpadding="0" height="608">
<form name="addNEWS" method="post" action="editsave.asp" onSubmit="return CheckForm();">
<input type="hidden" name="ip" value="<%=rs("ip")%>">
<tr bgcolor="#FFFFFF">
<td height="23" colspan="2" bgcolor="#86B9D6"><div align="center" class="style1">
<font color="#000000">留言编辑回复</font></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="42" width="53%" bgcolor="#F5FBFF">
留言主题:<input name="bt" type="text" class="input" size="25" value="<%=rs("bt")%>"></td>
<td height="42" width="47%" bgcolor="#F5FBFF">
选择头像:<SELECT onChange="document.x1.src=options[selectedIndex].value" size="1" name="tx">
<option selected value="<%=rs("tx")%>"><%=rs("tx")%></option>
<option value="face/1.gif">留言头像1</option>
<option value="face/2.gif">头像2</option>
<option value="face/3.gif">头像3</option>
<option value="face/4.gif">头像4</option>
<option value="face/5.gif">头像5</option>
<option value="face/6.gif">头像6</option>
</SELECT>
<img src="face/1.gif" name="x1" width="32" height="32"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" width="53%" bgcolor="#F5FBFF">
您的称呼:<input name="user" type="text" class="input" size="25" value="<%=rs("user")%>"></td>
<td height="25" width="47%" bgcolor="#F5FBFF">
您的QQ:<input name="qq" type="text" class="input" size="25" value="<%=rs("qq")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="35" width="53%" bgcolor="#F5FBFF">
您的邮箱:<input name="email" type="text" class="input" size="25" value="<%=rs("email")%>">
</td>
<td height="35" width="47%" bgcolor="#F5FBFF">
您的主页:<input name="web" type="text" class="input" size="25" value="<%=rs("web")%>"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" valign="top" colspan="2" bgcolor="#F5FBFF">
<textarea name="nr" cols="67" rows="2" style="display:none"><%=rs("nr")%></textarea>
<iframe ID="Editor" name="Editor" src="ubb/edit.htm?id=nr" frameBorder="0" marginHeight="1" marginWidth="1" scrolling="no" style="height:312px;width:500px; background-color:#D9EEF9"></iframe>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="21" align="center" colspan="2" bgcolor="#F5FBFF">
<font color="#FF0000">管理员回复</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="50" align="center" colspan="2" bgcolor="#F5FBFF">
<textarea rows="3" name="hf" cols="69"><%=rs("hf")%></textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="28" align="center" bgcolor="#F5FBFF" colspan="2">
是否公告:<input type="radio" name="gg" value="1" <%if rs("gg")="1" then%>checked<%end if%>>
是<input type="radio" name="gg" value="0" <%if rs("gg")="0" then%>checked<%end if%>>
否
是否固顶:<input type="radio" name="top" value="1" <%if rs("top")="1" then%>checked<%end if%>>
是<input type="radio" name="top" value="0" <%if rs("top")="0" then%>checked<%end if%>>
否
是否通过:<input type="radio" name="sh" value="1" <%if rs("sh")="1" then%>checked<%end if%>>
是<input type="radio" name="sh" value="0" <%if rs("sh")="0" then%>checked<%end if%>>
否</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="center" colspan="2" bgcolor="#F5FBFF">
<input type="hidden" name="id" value="<%=id%>">
<input type="submit" name="Submit" value="提交" class="input">
<input type="reset" name="Submit2" value="重置" class="input">
</td>
</tr>
</form>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -