jsp留言板源代码2

80酷酷网    80kuku.com

  js|源代码guestbook.jsp
===========================
<html><head>
<META content="text/html; charset=gb2312 " http-equiv=Content-Type>

<title>张家界电话黄页(网上114)</title></head>
<style type="text/css">
<!--
BODY { FONT-FAMILY: "宋体\\","Arial Narrow", "Times New Roman"; FONT-SI
ZE: 9pt }
.p1 { FONT-FAMILY: "宋体\\", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: 12pt }
A:link { COLOR: #00793d; TEXT-DECORATION: none }
A:visited { TEXT-DECORATION: none }
A:hover { TEXT-DECORATION: underline}
TD { FONT-FAMILY: "宋体\\", "Arial Narrow", "Times New Roman"; FONT-SIZE
: 9pt }
.p2 { FONT-FAMILY: "宋体\\", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: 9pt; LINE-HEIGHT: 150% }
.p3 { FONT-FAMILY: "宋体\\", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: 9pt; LINE-HEIGHT: 120% }

-->
</style>


<body>


<% page contentType="text/html; charset=GB2312" %>
<% page language="java" import="java.sql.*" %>
<jsp:useBean id="testInq" scope="page" class="ymbean.opDb" />
<%
int pages=1;
int pagesize=10;
int count=0;
int totalpages=0;

String countsql="",inqsql="",lwhere="",insertsql="",st="";

String lw_title="",lw_author="",pagetitle="",author_http="",author_e
mail="",lw_ico="",
lw_content="",lw_class1="";
String author_ip="",lw_time="",lw_class2="",lw_type="",zt_time="",zt
_author="";
int answer_num=0,click_num=0;
int inquire_item=1;
String inquire_itemt="",inquire_value="";
String lurlt="<a
String ljs=" <SCRIPT language=JavaScript>
"+
" <!--
"+
" function ValidInput()
"+
" {if(document.sign.lw_author.value=="")
"+
" {alert("请填写您的大名。");
"+
" document.sign.lw_author.focus();
"+
" return false;}
"+
" if(document.sign.lw_title.value=="")
"+
" {alert("请填写留言主题。");
"+
" document.sign.lw_title.focus();
"+
" return false;}
"+
" if (document.sign.author_email.value!="")
"+
" { if ((document.sign.author_email.value.indexOf("")<0)//(document
.sign.author_email.value.indexOf(":")!=-1))
"+
" {alert("您填写的EMail无效,请填写一个有效的Email!");
"+
" document.sign.author_emaill.focus();
"+
" return false;
"+
" }
"+
" }
"+
" return true;
"+
" }
"+
" function ValidSearch()
"+
" { if(document.frmsearch.findstr.value=="")
"+
" {alert("不能搜索空串!");
"+
" document.frmsearch.findstr.focus();
"+
" return false;}
"+
" }
"+
" //-->
"+
" </SCRIPT> ";
out.print(ljs);
%>

<%
//留言板界面首部
String ltop=" <DIV align=center>
"+
" <CENTER>
"+
" <FORM action=guestbook.jsp method=post name=frmsearch>
"+
" <INPUT name=gbname type=hidden value=cnzjj_gt>
"+
" <TABLE align=center border=0 cellSpacing=1 width="95%">
"+
" <TBODY>
"+
" <TR>
"+
" <TD bgColor=#336699 colSpan=2 width="100%">
"+
" <P align=center><FONT color=#ffffff face=楷体_GB2312
"+
" size=5>欢迎远方的朋友来张家界旅游观光</FONT></P></TD></TR>
"
+
" <TR bgColor=#6699cc>
"+
" <TD align=left noWrap width="50%">主页: <A
"+
" type=button value="返
回">
"+
" </TD></TR></TBODY></TABLE></FORM></CENTER></DIV> ";
out.print(lbottom);

%>

</body></html>




分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: