📄 add_msg.asp
字号:
<!--#include file="conn1.asp"-->
<%
set op=server.createobject("adodb.recordset")
sq_2="select * from msg_option order by id desc"
op.open sq_2,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>写留言</title>
<style type="text/css">
<!--
body,td,th {font-size: 12px;}
a {font-size: 12px;}
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: none;}
a:active {text-decoration: none;}
.style5 {color: #FF0000}
.style6 {font-size: 12px}
-->
</style>
<SCRIPT language=JavaScript>
function is_number(str)
{
exp=/[^0-9()-]/g;
if(str.search(exp) != -1)
{return false;}
return true;
}
function CheckInput()
{
if(form.nick_name.value==''){
alert("请填写您的留言昵称^_^");
form.nick_name.focus();
return false;
}
if(form.nick_name.value.length>30){
alert("昵称不能超过30个字符!");
form.nick_name.focus();
return false;
}
if(!is_number(document.form.oicq.value)){
alert("QQ号只能是数字哦^_^");
form.oicq.focus();
return false;
}
if(form.title.value==''){
alert("请您填写留言标题^_^");
form.title.focus();
return false;
}
if(form.title.value.length>50){
alert("留言标题不能超过50个字符哦^_^");
form.title.focus();
return false;
}
if(form.contents.value==''){
alert("您没有填写留言内容^_^");
form.contents.focus();
return false;
}
if(form.contents.value.length>500){
alert("留言内容不能超过500个字符^_^");
form.contents.focus();
return false;
}
return true;
}
</SCRIPT>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" link="<%=op("link_color")%>" vlink="<%=op("vlink_color")%>" alink="<%=op("alink_color")%>" text="<%=op("text_color")%>">
<div align="center">
<div align="center">
<table cellpadding="0" cellspacing="0" width="768" height="97">
<tr>
<td height="10" valign="top" width="10" style="font-size: 12px">
<img border="0" src="image/top_left.gif" width="10" height="10"></td>
<td height="10" valign="top" width="748" background="image/top.gif" colspan="2" style="font-size: 12px">
</td>
<td height="10" valign="top" width="10" style="font-size: 12px">
<img border="0" src="image/top_right.gif" width="10" height="10"></td>
</tr>
<tr>
<td height="77" valign="top" width="10" background="image/mid_left.gif" style="font-size: 12px">
</td>
<td height="77" valign="top" width="171" bgcolor="#F3F3FF" style="font-size: 12px">
<img border="0" src="<%=op("web_logo")%>" width="171" height="75"></td>
<td height="77" valign="middle" width="577" bgcolor="#F3F3FF" style="font-size: 12px">
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="537" height="63">
<param name="movie" value="<%=op("web_ad")%>">
<param name="quality" value="High">
<param name="menu" value="false">
<embed src="flash/ad.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="537" height="63" quality="High" menu="false"></object>
</td>
<td height="77" valign="top" width="10" background="image/mid_right.gif" style="font-size: 12px">
</td>
</tr>
<tr>
<td height="10" valign="top" width="10" style="font-size: 12px">
<img border="0" src="image/bottom_left.gif" width="10" height="10"></td>
<td height="10" valign="top" width="748" background="image/bottom.gif" colspan="2" style="font-size: 12px">
</td>
<td height="10" valign="top" width="10" style="font-size: 12px">
<img border="0" src="image/bottom_right.gif" width="10" height="10"></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" width="41" height="12">
<!-- MSTableType="nolayout" -->
<tr>
<td height="12"><b><br>
写留言<br>
</b></td>
</tr>
</table>
</div>
<div align="center">
<table cellpadding="0" cellspacing="0" width="768" height="427">
<!-- MSTableType="nolayout" -->
<tr>
<td height="10" valign="top" width="10">
<img border="0" src="image/top_left.gif" width="10" height="10"></td>
<td height="10" valign="top" width="748" background="image/top.gif">
</td>
<td height="10" valign="top" width="10">
<img border="0" src="image/top_right.gif" width="10" height="10"></td>
</tr>
<tr>
<td height="407" valign="top" width="10" background="image/mid_left.gif"> </td>
<td height="407" valign="top" width="748" bgcolor="<%=op("bg_color")%>">
<div align="center">
<table cellpadding="0" cellspacing="0" width="565" height="406">
<!-- MSTableType="nolayout" -->
<tr>
<td width="565" height="17" valign="bottom">
<p align="center"></td>
</tr>
<tr>
<td width="565" height="6" valign="top">
<p align="right">[<a href="index.asp">回到上页</a>] </td>
</tr>
<tr>
<td width="565" height="383" valign="top">
<form method="POST" action="add_msg_op.asp" name=form onsubmit=return(CheckInput())>
<table cellpadding="0" cellspacing="0" width="563" height="370">
<!-- MSTableType="nolayout" -->
<tr>
<td height="73" valign="top" width="65">
</td>
<td height="73" valign="top" width="479">
留言昵称:<input type="text" name="nick_name" size="17"><font color="#FF0000">*</font><br>
<br>
留言QQ:
<input type="text" name="oicq" size="10"> 形象秀:<select onchange="document.images['faceid'].src=options[selectedIndex].value;" size="1" name="face">
<option value="image/face/face1.gif" selected>face1</option>
<option value="image/face/face2.gif">face2</option>
<option value="image/face/face3.gif">face3</option>
<option value="image/face/face4.gif">face4</option>
<option value="image/face/face5.gif">face5</option>
<option value="image/face/face6.gif">face6</option>
<option value="image/face/face7.gif">face7</option>
<option value="image/face/face8.gif">face8</option>
<option value="image/face/face9.gif">face9</option>
<option value="image/face/face10.gif">face10</option>
<option value="image/face/face11.gif">face11</option>
<option value="image/face/face12.gif">face12</option>
<option value="image/face/face13.gif">face13</option>
<option value="image/face/face14.gif">face14</option>
<option value="image/face/face15.gif">face15</option>
<option value="image/face/face16.gif">face16</option>
<option value="image/face/face17.gif">face17</option>
<option value="image/face/face18.gif">face18</option>
<option value="image/face/face19.gif">face19</option>
<option value="image/face/face20.gif">face20</option>
</select>
<a target="_blank" href="face.htm">
<font color="#FF0000">形象库</font></a></td>
<td height="73" valign="top" width="20">
<div style="position: absolute; width: 51px; height: 100px; z-index: 1; left: 590px; top: 171px" id="layer1">
<img border="0" src="image/face/face1.gif" id="faceid"width="50" height="100" style="border: 1px solid #000000"></div>
</td>
</tr>
<tr>
<td height="76" valign="top" width="65"> </td>
<td height="76" valign="top" width="479">
电子信箱:<input type="text" name="e_mail" size="20" value="@">
<br>
<br>
个人主页:<input type="text" name="web_index" size="20" value="http://"></td>
<td height="76" valign="top" width="20"> </td>
</tr>
<tr>
<td height="43" valign="top" width="65"> </td>
<td height="43" valign="top" width="479">
留言主题:<input type="text" name="title" size="58"><font color="#FF0000">*</font></td>
<td height="43" valign="top" width="20"> </td>
</tr>
<tr>
<td height="178" valign="top" width="65" rowspan="3"> </td>
<td height="20" valign="top" width="479">
留言内容:</td>
<td height="178" valign="top" width="20" rowspan="3"> </td>
</tr>
<tr>
<td height="138" valign="top" width="479">
<textarea rows="10" name="contents" cols="66"></textarea></td>
</tr>
<tr>
<td height="20" valign="top" width="479">
<p align="center">留言类型:公开<input type="radio" value="1" checked name="show">
悄悄话<input type="radio" name="show" value="2"></td>
</tr>
</table>
<p align="center">
<input type="submit" value="写好了^_^" name="B1">
<input type="reset" value="重写" name="B2"></p>
</form>
<p> </td>
</tr>
</table>
</div>
</td>
<td height="407" valign="top" width="10" background="image/mid_right.gif"> </td>
</tr>
<tr>
<td height="10" valign="top" width="10">
<img border="0" src="image/bottom_left.gif" width="10" height="10"></td>
<td height="10" valign="top" width="748" background="image/bottom.gif">
</td>
<td height="10" valign="top" width="10">
<img border="0" src="image/bottom_right.gif" width="10" height="10"></td>
</tr>
</table>
</div>
<div align="center">
<table cellpadding="0" cellspacing="0" width="348" height="87">
<!-- MSTableType="nolayout" -->
<tr>
<td height="12" valign="top" width="348" colspan="3" style="font-size: 12px"></td>
</tr>
<tr>
<td height="63" valign="top" width="48" style="font-size: 12px"> </td>
<td height="63" valign="top" width="253" style="font-size: 12px">
<p align="center"><font face="宋体" size="2">倾听留言本V1.2<br>
</font>留言本及源程序由 <span lang="en">
<font face="宋体" size="2" color="#FF0000"><a href="QQ:55572687">
<font color="#FF0000">冰中使者</font></a></font><a href="QQ:55572687"><font face="宋体" color="#FF0000" size="3">®</font></a><font face="宋体" size="4" color="#FF0000">
</font><font face="宋体" size="2">制作<br>
</font></span><font face="宋体" size="2">
[<a target="_blank" href="http://www.qtice.com">http://www.qtice.com</a>]<br>
</font></td>
<td height="63" valign="top" width="47" style="font-size: 12px"> </td>
</tr>
<tr>
<td height="12" valign="top" width="348" colspan="3" style="font-size: 12px"></td>
</tr>
</table>
</div>
</body>
<%
op.close
set op=nothing
conn.close
set conn=nothing
%>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -