📄 plant.asp
字号:
<!--#include file="conn.asp"-->
<%
if request("edit")="add" then
select case request("sort")
case "1","2","3","4","5"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open "select * from forjj_tree",conn,1,3
rs.addnew
rs("sort")=Request.form("sort")
rs("name")=Request.form("name")
rs("content")=Request.form("content")
rs("password")=Request.form("password")
rs("time")=date()
rs.update
rs.close
rs.open "select id from forjj_tree order by id desc",conn,1,1
Response.Write "<script>window.alert('许愿树种植成功!您的许愿树苗号为:"&rs("id")&"');window.location='index.asp';</script>"
rs.close
set rs=nothing
conn.close
set conn=nothing
end select
end if
%>
<head>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Author" content="Forjj" />
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a {
font-size: 12px;
color: #FFFFFF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FFFFFF;
}
a:hover {
text-decoration: underline;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
<script language="javascript">
function searchform()
{
if(search1.searchkey.value=="请输入编号或姓名进行查询")
{
alert("请输入编号或姓名进行查询")
return false;
}
if(search1.searchkey.value=="")
{
alert("请输入编号或姓名进行查询")
return false;
}
}
function addform()
{
if(search2.sort.value=="")
{
alert("请选择树林")
return false;
}
if(search2.name.value=="")
{
alert("请输入树的主人")
return false;
}
if(search2.content.value=="")
{
alert("请输入愿望")
return false;
}
if(search2.password.value=="")
{
alert("请输入砍树密码")
return false;
}
}
</script>
</head>
<body>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/top.jpg" width="1002" height="95"></td>
</tr>
</table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/top2.jpg" width="682" height="168" /></td>
<td width="320"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/bar3.jpg" width="320" height="135" usemap="#Map" border="0"></td>
</tr>
<tr>
<td width="320" height="33" valign="top" background="images/bar6.jpg">
<table width="95%" height="26" border="0" cellpadding="0" cellspacing="0">
<form name="search1" method="post" action="index.asp?sort=0" onSubmit="return searchform();">
<tr>
<td width="90" class="fonts1"> 许愿树查询:</td>
<td><input name="searchkey" type="text" size="22" value="请输入编号或姓名进行查询" onClick="this.value=''"></td>
<td><input type="image" src="images/b3.jpg" width="50" height="20"></td>
</tr>
</form>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="1002" height="40" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg2.jpg" id="link2">
<tr>
<td width="55"> </td>
<td width="78" align="center"><a href="index.asp">所有林区</a></td>
<td width="40" align="left" valign="top"><img src="images/a1.jpg" width="40" height="38" border="0"></td>
<td width="90" align="center"><a href="index.asp?sort=1">爱情林区</a></td>
<td width="54" valign="top"><img src="images/a2.jpg" width="54" height="38" border="0"></td>
<td width="94" align="center"><a href="index.asp?sort=2">学业林区</a></td>
<td width="42" valign="top"><img src="images/a3.jpg" width="42" height="38" border="0"></td>
<td width="90" align="center"><a href="index.asp?sort=3">事业林区</a></td>
<td width="41" valign="top"><img src="images/a4.jpg" width="41" height="38" border="0"></td>
<td width="90" align="center"><a href="index.asp?sort=4">生活林区</a></td>
<td width="34" valign="top"><img src="images/a5.jpg" width="34" height="38" border="0"></td>
<td width="88" align="center"><a href="index.asp?sort=5">梦想林区</a></td>
<td width="41" valign="top"><img src="images/a6.jpg" width="41" height="38" border="0"></td>
<td width="157" valign="top"> </td>
<td width="8"> </td>
</tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="83,70,251,121" href="plant.asp" />
</map>
<TABLE height=50 cellSpacing=0 cellPadding=0 width="50%" align=center
border=0>
<TBODY>
<TR>
<TD> </TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>
<form name="search2" method="post" action="plant.asp?edit=add" onSubmit="return addform();">
<TABLE cellSpacing=0 cellPadding=0 width=400 align=center border=0>
<TBODY>
<TR>
<TD align=middle><IMG height=61 src="images/xy2.jpg"
width=207></TD>
</TR>
<TR>
<TD> <TABLE cellSpacing=0 cellPadding=0 width=400 border=0>
<TBODY>
<TR>
<TD class=fonts1 align=right height=25>树林:</TD>
<TD><SELECT name=sort class=fonts1 id="sort">
<option selected>请选择</option>
<option value="1">爱情林区</option>
<option value="2">学业林区</option>
<option value="3">事业林区</option>
<option value="4">生活林区</option>
<option value="5">梦想林区</option>
</SELECT> </TD>
</TR>
<TR>
<TD class=fonts1 align=right height=25>树的主人:</TD>
<TD><INPUT maxLength=20 size=20 name=name></TD>
</TR>
<TR>
<TD class=fonts1 align=right>愿望:</TD>
<TD><TEXTAREA name=content cols=30 rows=6 id="content"></TEXTAREA></TD>
</TR>
<TR>
<TD class=fonts1 align=right height=25>砍树密码:</TD>
<TD><INPUT name=password id="password" size="20" maxLength=20></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align=middle height=50><input name="imageField" type="image" src="images/xy1.jpg" width="109" height="32" border="0"></TD>
</TR>
</TBODY>
</TABLE>
</FORM></TD>
</TR>
</TBODY>
</TABLE>
<table width="1002" height="120" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="images/search.jpg">
<table width="98%" height="25" border="0" align="left" cellpadding="0" cellspacing="0" id="link1">
</table></td>
</tr>
</table>
<table width="1002" height="90" border="0" cellpadding="0" cellspacing="0" bgcolor="#ACD33C" align="center">
<tr>
<td align="center" class="fonts1">
<b>发表留言请注意:</b><br>
参与本留言即表明您已经阅读并接受下述条款<br>
尊重网上道德,遵守中华人民共和国的各项有关法律法规<br>
许愿林管理人员有权保留或删除其留言中的任意内容<br>
Copyright © 2007 <a href="http://<%=url%>" target="_blank"><font color="#000000"><%=url%></font></a><font color="#000000">
</font>Inc. All Rights Reserved<br>
网站维护:forjj</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -