📄 write.asp
字号:
<%@ language=VBScript %>
<!--#include file="setup.asp"-->
<!--#include file="inc/check.asp"-->
<%
sql="select * from gbook order by id desc"
set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open sql,conn,1,1
if Request("menu") = "addto" then
call addto()
else call index()
end if
sub index()
%>
<html><head><title><%=gbook_name%>--添加留言</title>
<link rel="stylesheet" href="images/gbook.css">
</head>
<!--#include file="inctop.asp"--><body topmargin=0>
<div align="center"><img src="images/logo.jpg" width="759" height="152"> </div>
<table width=760 height="27" border=0 align="center" cellpadding=0 cellspacing=1 background="images/dh.gif" style="border: 1px solid #CCCCCC;">
<tr>
<td width="510" height="27"> <img src="images/arrow3.gif" align=absmiddle width="29" height="11">
您的位置: <a href=<%=url%>><%=name%></a> >> <a href=index.asp>留言本首页</a> >> <a href=index.asp>浏览留言</a>
>> <a href=index.asp></a>发表留言</td>
<td width="245"><DIV align=center>【<a href="index.asp">查看留言</a>】 【<a href="write.asp">签写留言</a>】</DIV></td>
</tr>
</table>
<br>
<script language="JavaScript1.2">
<!--
clckcnt = 0;
var postmaxchars = <%=bodymax%>;
function clckcntr(eventobject){if(event.ctrlKey && window.event.keyCode==13){clckcnt++;if (clckcnt>1)
{alert('留言正在提交,请耐心等待!');return false;}document.FORM.Submit.disabled = true; this.document.FORM.submit();}}
function validate(theform) {
if (theform.username.value=="" || theform.body.value=="" ||theform.zt.value=="") {
alert("'姓名' 和 '留言主题' 和 '留言内容' 是必须填写的!");
clckcnt=0;
return false; }
if (postmaxchars != 0) {
if (theform.body.value.length > <%=bodymax%>) {
alert("你的信息太长了.\n\n请限制在 "+<%=bodymax%>+" 字节以内.\n当前已有 "+theform.body.value.length+" 字节.");
clckcnt=0;
return false; }
else { document.FORM.Submit.disabled = true; return true; }
} else {
document.FORM.Submit.disabled = true; return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\n最大的字符为 "+<%=bodymax%>+" 字节."; }
else { message = ""; }
alert("你的信息已经有 "+theform.body.value.length+" 字节."+message);
}
-->
</script>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="180" height="99" bgcolor="#FFFFF0" style="border: 1px solid #CCCCCC;">
<!--#include file="guest_left.asp"--></td>
<td width="10" bgcolor="#FFFFFF"> </td>
<td width="570" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFF0">
<tr>
<td width="570" height="305" bgcolor="#999999">
<form name="FORM" method="POST" action="write.asp" onSubmit="return validate(this)">
<%session("OldGuestSave")=""%>
<input type=hidden name=menu value=addto>
<input type=hidden name=ip value=<%=Request.ServerVariables("REMOTE_ADDR")%>>
<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#CCCCCC">
<tr bgcolor="#ebebeb">
<td width="18%" align="center" nowrap bgcolor="#FFFFF0"><font color="#FF0000">*</font>你的大名:</td>
<td width="82%" bgcolor="#FFFFF0">
<input type="text" name="username" size="20" style="background-color:#ffffff; color:#8888AA; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#F7FBFF'" onMouseOut = "this.style.backgroundColor = ''">
</td>
</tr>
<tr bgcolor="#ebebeb">
<td width="18%" align="center" nowrap bgcolor="#FFFFF0"><font color="#FF0000">*</font>留言主题:</td>
<td width="100%" bgcolor="#FFFFF0">
<input name="zt" type="text" id="zt" style="background-color:#ffffff; color:#8888AA; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#F7FBFF'" onMouseOut = "this.style.backgroundColor = ''" size="50">
</td>
</tr>
<tr bgcolor="#ebebeb">
<td width="18%" align="center" nowrap bgcolor="#FFFFF0"><font color="#FF0000">*</font>留言内容:</td>
<td width="82%" bgcolor="#FFFFF0">
<textarea name="body" onkeydown=clckcntr(); cols="60" rows="6" wrap=hard style="background-color:#ffffff; color:#8888AA; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#F7FBFF'" onMouseOut = "this.style.backgroundColor = ''"><%=Request.QueryString("body")%></textarea>
</td>
</tr>
<tr bgcolor="#ebebeb">
<td width="18%" height="12" align="center" nowrap bgcolor="#FFFFF0">你的主页:</td>
<td width="82%" height="12" bgcolor="#FFFFF0">
<input type="text" name="homeurl" size="20" style="background-color:#ffffff; color:#8888AA; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#F7FBFF'" onMouseOut = "this.style.backgroundColor = ''" value="http://">
<a href="javascript:checklength(document.FORM);">[查看帖子长度]</a>
</td>
</tr>
<tr bgcolor="#ebebeb">
<td align="center" nowrap bgcolor="#FFFFF0">你的邮件:</td>
<td width="82%" bgcolor="#FFFFF0">
<input type="text" name="email2" size="20" style="background-color:#ffffff; color:#8888AA; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#F7FBFF'" onMouseOut = "this.style.backgroundColor = ''">
</td>
</tr>
<tr bgcolor="#ebebeb">
<td width="18%" align="center" nowrap bgcolor="#FFFFF0">你的OICQ:</td>
<td width="82%" bgcolor="#FFFFF0">
<input type="text" name="qq" size="20" style="background-color:#ffffff; color:#8888AA; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#F7FBFF'" onMouseOut = "this.style.backgroundColor = ''">
</td>
</tr>
<tr bgcolor="#ebebeb">
<td width="18%" height="12" align="center" nowrap bgcolor="#FFFFF0">您的表情:</td>
<td width="82%" height="12" bgcolor="#FFFFF0">
<input name="brow" type="radio" value="images/brow/1.gif" checked>
<img src="images/brow/1.gif"> <input type="radio" value="images/brow/2.gif" name="brow">
<img src="images/brow/2.gif"> <input type="radio" value="images/brow/3.gif" name="brow">
<img src="images/brow/3.gif"> <input type="radio" value="images/brow/4.gif" name="brow">
<img src="images/brow/4.gif"> <input type="radio" value="images/brow/5.gif" name="brow">
<img src="images/brow/5.gif"> <input type="radio" value="images/brow/6.gif" name="brow">
<img src="images/brow/6.gif"> <input type="radio" value="images/brow/7.gif" name="brow">
<img src="images/brow/7.gif"> <input type="radio" value="images/brow/8.gif" name="brow">
<img src="images/brow/8.gif"> <br> <input type="radio" value="images/brow/9.gif" name="brow">
<img src="images/brow/9.gif"> <input type="radio" value="images/brow/10.gif" name="brow">
<img src="images/brow/10.gif"> <input type="radio" value="images/brow/11.gif" name="brow">
<img src="images/brow/11.gif"> <input type="radio" value="images/brow/12.gif" name="brow">
<img src="images/brow/12.gif"> <input type="radio" value="images/brow/13.gif" name="brow">
<img src="images/brow/13.gif"> <input type="radio" value="images/brow/14.gif" name="brow">
<img src="images/brow/14.gif"> <input type="radio" value="images/brow/15.gif" name="brow">
<img src="images/brow/15.gif"> <input type="radio" value="images/brow/18.gif" name="brow">
<img src="images/brow/18.gif"> <br> </td>
</tr>
<tr bgcolor="#ebebeb">
<td width="18%" height="2" align="center" nowrap bgcolor="#FFFFF0">选择头像:</td>
<td width="82%" height="2" nowrap bgcolor="#FFFFF0">
<input name="face" type="radio" value="images/face/1.gif" checked>
<img src="images/face/1.gif" width="32" height="32"> <input type="radio" name="face" value="images/face/2.gif">
<img src="images/face/2.gif" width="32" height="32"> <input type="radio" name="face" value="images/face/3.gif">
<img src="images/face/3.gif" width="32" height="32"> <input type="radio" name="face" value="images/face/4.gif">
<img src="images/face/4.gif" width="32" height="32"> <input type="radio" name="face" value="images/face/5.gif">
<img src="images/face/5.gif" width="32" height="32"> <input type="radio" name="face" value="images/face/6.gif">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -