怎样制作有趣的家庭留言板
下面介绍一种既实用又有很好的装饰性的家庭留言板的制作方法,材料易找,制作也挺简单。材料、工具:铁板(大小可根据需要而定)1块、小木条若干、各色碎布、几块小磁铁及粘合剂等。制作方法:先用铁板做成底板,并用浅蓝色的布粘贴在铁板之上当作蓝天。然后用绿色碎布剪成树冠,用棕色布剪成树干,并错落有致地把它们贴在底板上。用其他颜色的碎布缝成小鸟状的小口袋,装人小块磁铁后封口。然后,要用木条做个框即告完工。这样,将留言纸条通过磁铁的吸力,用小鸟压在树上或蓝天上,既方便又有趣。当然,画面图案还可按照您的爱好和想象力去自由发挥。
怎样在迷你世界里面加好友前对别人留言
这样在迷你世界里面加好友前对别人留言:
1、先要制作个留言板,制作留言板,需要用到木板和木棒。木板可以用木块合成,木块用斧头获取,木棒用木板合成。木板和木棒收集好之后,就能拿过来制作成留言板。
2、留言板使用。可以立在方块上面,也可以挂在方块上,跟壁画一样。在留言板放在地上或者挂在墙上之后就能够输入文字,然后回车就能给别人留言了。
如何利用WordPress制作留言板
首先我们用dreamweaver新建一个PHP空白页面,在此页面顶部设置你要建的留言板的名称,代码如下,红色部分就是留言板的名称,可以自己随意取,建议用英文吧,不要纯中文。 打开你主题的目录,找到page.php页面,然后把里面的代码全部复制过来粘贴到我们第一步新建的留言板页面。 第一二步完成后代码如下:
”>
’, ‘’); ?>
在上面的代码里面加上评论调用函数 建立了页面不能忘记了美化啊,怎么弄呢?我们需要做的就是直接调用文章内容页评论的CSS样式。代码如下(此代码和single.php里面的一样,不知道的朋友直接去主题目录single.php里面找):
最后得到的留言本代码如下,将此页面存为“liuyanban.php”:
”>
’, ‘’); ?>
7 最后到WordPress后台-页面-新建一个页面,命名“留言板”。给此页面选择模板“liuyanban”,页面内容里面随便输入你想要给留言者看的内容就行了。
如何为wordpress博客添加留言板
两种方法:第一种:用留言板插件
这个在后台就可以找到第二种:自己建立一个留言板页面,这个比较方便:详细步骤:1、登陆博客后台——页面——添加新页面
2、在标题处写上“留言板”三个大字,在文本框输入要在留言板显示的内容
3、在窗口右侧中的“属性”框里,在父级的下拉菜单中选“主页面(无上级)”,排序处的数字按自己想要的排列顺序填写,0为默认顺序
4、把编辑页面界面滚到底部,在讨论里勾选“允许评论”,如果不勾选,无法留言
5、点击发布,WordPress留言板制作成功。
6、最后,为了美观,如果缩略名是中文,则留言板的地址将会是http://****/留言板缩略名,所以,建议设置为英文guestbook或其它。
PS:部分主题作者把页面(page)中的评论代码去掉,致使页面没有评论窗口,这时要手动添加评论代码到页面(page)相应位置。代码为:把代码加到你想评论出现的位置就可以了!楼主做人要厚道
对的话就把经验给了
谢谢
就冲你经验来的
怎么样制作留言版
jsp留言板源代码1
oracle数据表创建.
create table guestbook (
lw_title varchar2(100) not null, --留言主题
lw_author varchar2(20) not null, --网上大名 pk
author_http varchar2(40) , --主页地址
author_email varchar2(40) not null,--电子信箱 pk
expression varchar2(2) not null,--表情
lw_time varchar2(14) not null,--发表回应时间
answer_num number(3) not null,--回应数
click_num number(4) not null,--点击数
author_ip varchar2(16) ,--来源ip
lw_class1 varchar2(10) not null,--留言板大类 pk
lw_class2 varchar2(20) not null,--论坛栏目 pk
lw_type varchar2(1) not null,--留言类别,即是否为主贴
zt_time varchar2(14) ,--主贴时间
zt_author varchar2(40) ,--主贴email
lw_content varchar2(4000) ,--内容
constraint pk_guestbook primary key(lw_class1,lw_class2,lw
_time,lw_author)
) storage (initial 5M next 5M pctincrea 1);
jsp留言板源代码2
guestbook.jsp
===========================
<html><head>
<META content="text/html; chart=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; chart=GB2312" %>
<%@ page language="java" import="java.sql.*" %>
<jsp:uBean id="testInq" scope="page" class="ymbean.opDb" />
<%
int pages=1;
int pagesize=10;
int count=0;
int totalpages=0;
String countsql="",inqsql="",lwhere="",inrtsql="",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 href=guestbook.jsp?",llink="";
lwhere=" where lw_type=z "; //只显示主贴
/*
Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) {
String name = (String) e.nextElement();
*/
try{
//取显示的页页序数
pages = new Integer(request.getParameter("pages")).intValue();
} catch (Exception e) {}
try{
//取查询参数
inquire_item=new Integer(request.getParameter("range")).intValu
e();
inquire_value=new String(request.getParameter("findstr").getByt
es("ISO8859_1"));
if(inquire_item==0) inquire_itemt="lw_title";
el if(inquire_item==1) inquire_itemt="lw_content";
el if(inquire_item==2) inquire_itemt="lw_author";
el if(inquire_item==3) inquire_itemt="lw_time";
el if(inquire_item==4) inquire_itemt="lw_title";
lwhere=lwhere+" and "+inquire_itemt+" like %"+inquire_value+"%
";
lurlt=lurlt+"range="+inquire_item+"&findstr="+inquire_value+"&"
;
} catch (Exception e) {}
try{
//取得参数 留言内容
lw_class1=new String(request.getParameter("gbname").getBytes("ISO885
9_1"));
lw_title=new String(request.getParameter("lw_title").getBytes("ISO88
59_1"));
lw_author=new String(request.getParameter("lw_author").getBytes("ISO
8859_1"));
pagetitle=new String(request.getParameter("pagetitle").getBytes("ISO
8859_1"));
author_http=new String(request.getParameter("author_http").getBytes(
"ISO8859_1"));
author_email=new String(request.getParameter("author_email").getByte
s("ISO8859_1"));
lw_ico=request.getParameter("gifface");
lw_content=new String(request.getParameter("lw_content").getBytes("I
SO8859_1"));
String requestMethod=request.getMethod();
requestMethod=requestMethod.toUpperCa();
if(requestMethod.indexOf("POST")<0)
{ out.print("非法操作!");
return;
}
//形成其他数据项
author_ip=request.getRemoteAddr() ;
lw_time=testInq.getCurrentDate("yyyyMMddHHmmss");
lw_class2="2";
lw_type=""+"z"; //主贴
zt_time=lw_time;
zt_author=lw_author;
answer_num=0;
click_num=0;
//================
st=",";
//保证留言所有数据项的长度在正常范围内
if(lw_title.length()>50) lw_title=lw_title.substring(0,50);
if(lw_author.length()>20) lw_author=lw_author.substring(0,20);
if(author_http.length()>40) author_http=author_http.substring(0,40);
if(author_email.length()>50) author_email=author_email.substring(0,4
0);
if(lw_content.length()>4000) lw_content=lw_content.substring(0,4000)
;
inrtsql="inrt into guestbook values("+lw_title+st+lw_author+st+
author_http+st+
author_email+st+lw_ico+st+lw_time+","+answer_num+","+cli
ck_num+","+
author_ip+st+lw_class1+st+lw_class2+st+lw_type+st+zt_time
+st+zt_author+st+
lw_content+")";
//out.print(inrtsql);
//插入留言
try{
String lmsg=testInq.executeUpdate(inrtsql);
if(lmsg.indexOf("executeUpdate ok")<0)
out.print("lmsg="+lmsg);
}catch (Exception e) { out.print("错误:"+e);}
} catch (Exception e) {}
%>
<%
//验证留言输入项合法性的javascript
String ljs=" <SCRIPT language=JavaScript> "+
" <!-- "+
" function ValidInput() "+
" {if(document.sign.lw_author.value=="") "+
" {alert("请填写您的大名。"); "+
" document.sign.lw_author.focus(); "+
" return fal;} "+
" if(document.sign.lw_title.value=="") "+
" {alert("请填写留言主题。"); "+
" document.sign.lw_title.focus(); "+
" return fal;} "+
" 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 fal; "+
" } "+
" } "+
" return true; "+
" } "+
" function ValidSearch() "+
" { if(document.frmarch.findstr.value=="") "+
" {alert("不能搜索空串!"); "+
" document.frmarch.findstr.focus(); "+
" return fal;} "+
" } "+
" //--> "+
" </SCRIPT> ";
out.print(ljs);
%>
<%
//留言板界面首部
String ltop=" <DIV align=center> "+
" <CENTER> "+
" <FORM action=guestbook.jsp method=post name=frmarch> "+
" <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 "+
" href="http://www.zj.hn.cn" target=_blank><FONT "+
" color=#ffffff>张家界旅游</FONT></A> 管理员: <A "
+
" href="mailto:dzx@mail.zj.hn.cninfo.net"><FONT color=#ffffff>
一民</FONT></A> "+
" >><A "+
" href="http://www.zj.hn.cn "><FONT "+
" color=#ffffff>管理</FONT></A> >><A "+
" href=" http://www.zj.hn.cn "><FONT "+
" color=#ffffff>申请</FONT></A> </TD> "+
" <TD align=right width="50%"><SELECT class=ourfont name=range s
ize=1> "+
" <OPTION lected value=0>按主题</OPTION> <OPTION value=1>按内
容</OPTION> "+
" <OPTION value=2>按作者</OPTION> <OPTION value=3>按日期</OPTI
ON> <OPTION "+
" value=4>按主题&内容</OPTION></SELECT> <INPUT name=findst
r> <INPUT name=arch onclick="return ValidSearch()" type=submit val
ue="搜 索"> "+
" </TD></TR></TBODY></TABLE></FORM> "+
" <HR align=center noShade SIZE=1 width="95%"> "+
" </CENTER></div> ";
out.print(ltop);
%>
<%
//显示最近时间发表的一页留言
countsql="lect count(lw_title) from guestbook "+lwhere;
inqsql ="lect lw_title,answer_num,click_num,lw_author,lw_time,expres
sion,"+
" author_email,lw_class1,lw_class2 from guestbook "+lwhere+" o
rder by lw_time desc" ;
if(pages>0)
{
try {
try{
ResultSet rcount=testInq.executeQuery(countsql);
if(rcount.next())
{
count = rcount.getInt(1);
}
rcount.clo();
} catch (Exception el1) { out.println("count record error
: "+el1+"
" );
out.println(countsql);
}
totalpages=(int)(count/pagesize);
if(count>totalpages*pagesize) totalpages++;
st=""+
" <TABLE align=center border=0 cellPadding=0 cellSpacing=
0 width="95%"> "+
" <TBODY> <TR> <TD align=middle bgColor=#97badd width="1
00%"><FONT color=#ff0000>"+
" 共 "+totalpages+" 页,"+count+"
条. "+" 当前页: "+pages+
" </FONT></TD></TR></TBODY></TABLE><BR> ";
out.print(st);
//out.print(" 共 "+totalpages+" 页,"+
count+" 条. "+" 当前页: "+pages+"
");
st=" <center> "+
" <TABLE border=0 cellPadding=2 cellSpacing=1 width="95%"> "+
" <TBODY> "+
" <TR> "+
" <TD align=middle bgColor=#6699cc width="55%"><FONT "+
" color=#ffffff>留言主题</FONT></TD> "+
" <TD align=middle bgColor=#6699cc width=50><FONT "+
" color=#ffffff>回应数</FONT></TD> "+
" <TD align=middle bgColor=#6699cc width=40><FONT "+
" color=#ffffff>点击数</FONT></TD> "+
" <TD align=middle bgColor=#6699cc width=100><FONT "+
" color=#ffffff>作者名</FONT></TD> "+
" <TD align=middle bgColor=#6699cc width=140><FONT "+
" color=#ffffff>发表/回应时间</FONT></TD></TR> ";
out.print(st);
if(count > 0 )
{
ResultSet rs = testInq.executeQuery(inqsql);
ResultSetMetaData metaData = rs.getMetaData();
int i;
// 跳过pages -1 页,使cursor指向pages并准备显示
for(i=1;i<=(pages - 1)*pagesize;i++) rs.next();
//显示第pages页开始
String linestr="";
for(i=1;i<=pagesize;i++)
if(rs.next())
{
lw_title=rs.getString("lw_title");
answer_num=rs.getInt("answer_num");
click_num=rs.getInt("click_num");
lw_author=rs.getString("lw_author");
lw_time=rs.getString("lw_time");
st=lw_time.substring(0,4)+"-"+lw_time.substring(4,6)+"-"
+lw_time.substring(6,8)+":"+
lw_time.substring(8,10)+":"+lw_time.substring(10,12)+
":"+lw_time.substring(12,14);
lw_ico=rs.getString("expression");
author_email=rs.getString("author_email");
lw_class1=rs.getString("lw_class1");
lw_class2=rs.getString("lw_class2");
llink="reply.jsp?lw_class1="+lw_class1+"&lw_class2="+lw_
class2+"&zt_time="+lw_time+
"&zt_author="+author_email;
linestr=" <TR bgColor=#d5e8fd> " +
" <TD bgColor=#d5e8fd><IMG src=""+lw_ico+".gif
"><A "+
" href=""+llink+" ">"+lw_title+"</A></TD> "+
" <TD align=middle>["+answer_num+"]</TD>"+
" <TD align=middle>"+click_num+"</TD>"+
" <TD align=middle><A href="mailto:"+author_ema
il+"">"+lw_author+"</A></TD>"+
" <TD align=middle>"+st+"</TD></TR>";
out.println(linestr);
}
rs.clo();
//显示第pages页结束
st="</TBODY></TABLE><BR>";
out.print(st);
int iFirst=1,iLast=totalpages,iPre,iNext;
if(pages<=1) iPre=1;
el iPre=pages - 1;
if(pages>=totalpages) iNext=totalpages;
el iNext=pages + 1;
int n=(int)(count/pagesize);
if(n*pagesize<count) n++;
if(n>1)
{
//for(i=1;i<=n;i++) out.print("<a href=inquire.jsp?pages=
"+i+">"+i+" </a>");
//out.print("<HR align=center noShade SIZE=1 width="95%
">");
String lt1="返回主页",lt2="第一页",lt3="上一页",lt4="下一
页",lt5="最后一页",lt6="";
lt6="<a href=http://www.zj.hn.cn>"+ lt1 + " </
a>"+
lurlt + "pages="+iFirst+"><FONT color=red>"+lt2+"&nbs
p; </a>"+
lurlt + "pages="+iPre+"><FONT color=red>"+lt3+"
</a>" +
lurlt + "pages="+iNext+"><FONT color=red>"+lt4+"
; </a>" +
lurlt + "pages="+iLast+"><FONT color=red>"+lt5+"
; </a>";
st=""+
" <TABLE align=center border=0 cellPadding=0 cellSpacing=
0 width="95%"> "+
" <TBODY> <TR> <TD align=middle bgColor=#97badd width="1
00%"><FONT color=#ff0000>"+
lt6+
" </FONT></TD></TR></TBODY></TABLE><BR> ";
out.print(st);
}
}
} catch (Exception e) { out.println("error: "+e); }
}
%>
<%
//留言板界面尾部
String lbottom="";
lbottom=lbottom+
" "+
" <FORM action=guestbook.jsp method=post name=sign> "+
" <INPUT name=gbname type=hidden value=cnzjj_gt> "+
" <INPUT name=pages type=hidden value=1> "+
" <TABLE bgColor=#d5e8fd border=0 cellSpacing=1 width="95%"> "+
" <TBODY> "+
" <TR> "+
" <TD align=middle bgColor=#e6e6fa colSpan=2 noWrap><STRONG><FONT
color=blue "+
" face=楷体_GB2312 size=5>发 表 意 见</FONT></STRONG> &nbs
p; [加*的内容必须填写] </TD></TR> "+
" <TR> "+
" <TD noWrap width="45%"> "+
" <DIV align=left> "+
" <TABLE bgColor=#d5e8fd border=0 cellSpacing=1 width="100%">
"+
" <TBODY> "+
" <TR> "+
" <TD noWrap width="100%">*留言主题:<INPUT maxLength=40 n
ame=lw_title "+
" size=36></TD></TR> "+
" <TR> "+
" <TD noWrap width="100%">*网上大名:<INPUT maxLength=18 n
ame=lw_author "+
" size=36></TD></TR> "+
" <TR> "+
" <TD noWrap width="100%"> 主页标题:<INPUT maxLength
=40 name=pagetitle "+
" size=36></TD></TR> "+
" <TR> "+
" <TD noWrap width="100%"> 主页地址:<INPUT maxLength
=255 name=author_http "+
" size=36></TD></TR> "+
" <TR> "+
" <TD noWrap width="100%">*电子邮件:<INPUT maxLength=40 n
ame=author_email "+
" size=36></TD></TR></TBODY></TABLE></DIV></TD> "+
" <TD noWrap vAlign=top width="55%"> "+
" <DIV align=left> "+
" <TABLE bgColor=#b6d7fc border=0 cellSpacing=1 width="100%">
"+
" <TBODY> "+
" <TR> "+
" <TD width="100%">请在下面填写你的留言:</TD></TR> "+
" <TR> "+
" <TD width="100%"><TEXTAREA cols=50 name=lw_content rows=
7></TEXTAREA></TD></TR></TBODY></TABLE></DIV></TD></TR> "+
" <TR> "+
" <TD bgColor=#fbf7ea colSpan=2 noWrap>表情 "+
" <INPUT name=gifface type=radio value=1 checked><IMG "+
" alt="1.gif (152 bytes)" height=15 src="1.gif" width=15> <I
NPUT "+
" name=gifface type=radio value=2><IMG alt="2.gif (174 bytes)"
height=15 "+
" src="2.gif" width=15> <INPUT name=gifface type=radio value=3
><IMG "+
" alt="3.gif (147 bytes)" height=15 src="3.gif" width=15> <I
NPUT "+
" name=gifface type=radio value=4><IMG alt="4.gif (172 bytes)"
height=15 "+
" src="4.gif" width=15> <INPUT name=gifface type=radio value=5
><IMG "+
" alt="5.gif (118 bytes)" height=15 src="5.gif" width=15> <I
NPUT "+
" name=gifface type=radio value=6><IMG alt="6.gif (180 bytes)"
height=15 "+
" src="6.gif" width=15> <INPUT name=gifface type=radio value=7
><IMG "+
" alt="7.gif (180 bytes)" height=15 src="7.gif" width=15> <I
NPUT "+
" name=gifface type=radio value=8><IMG alt="8.gif (96 bytes)"
height=15 "+
" src="8.gif" width=15> <INPUT name=gifface type=radio value=9
><IMG "+
" alt="9.gif (162 bytes)" height=15 src="9.gif" width=15> <I
NPUT "+
" name=gifface type=radio value=10><IMG alt="10.gif (113 bytes)
" height=15 "+
" src="10.gif" width=15> <INPUT name=gifface type=radio value=
11><IMG "+
" alt="11.gif (93 bytes)" height=15 src="11.gif" width=15> <
INPUT "+
" name=gifface type=radio value=12> <IMG alt="12.gif (149 bytes
)" height=14 "+
" src="12.gif" width=15> "+
" <INPUT "+
" name=gifface type=radio value=13> <IMG alt="13.gif (149 bytes
)" height=14 "+
" src="13.gif" width=15> "+
" <INPUT "+
" name=gifface type=radio value=14> <IMG alt="14.gif (149 bytes
)" height=14 "+
" src="14.gif" width=15> "+
" <INPUT "+
" name=gifface type=radio value=15> <IMG alt="15.gif (149 bytes
)" height=14 "+
" src="15.gif" width=15> "+
" <INPUT "+
" name=gifface type=radio value=16> <IMG alt="16.gif (149 bytes
)" height=14 "+
" src="16.gif" width=15> </TD> "+
" </TR> "+
" <TR> "+
" <TD align=middle colSpan=2 noWrap><INPUT name=cmdGO onclick="re
turn ValidInput()" type=submit value="提 交"> "+
" <INPUT name=cmdPrev onclick="return ValidInput()" type=submit valu
e="预 览"> "+
" <INPUT name=cmdCancel type=ret value="重 写"> <INPU
T name=cmdBack onclick=javascript:history.go(-1) type=button value="返
回"> "+
" </TD></TR></TBODY></TABLE></FORM></CENTER></DIV> ";
out.print(lbottom);
%>
</body></html>
jsp留言板源代码3
reply.jsp
====================================
<html><head>
<META content="text/html; chart=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; chart=GB2312" %>
<%@ page language="java" import="java.sql.*" %>
<jsp:uBean id="testInq" scope="page" class="ymbean.opDb" />
<%
int pages=1;
int pagesize=10;
int count=0;
int totalpages=0;
String countsql="",inqsql="",updatesql="",lwhere="",inrtsql="",st=
"";
String lw_title="",lw_author="",pagetitle="",author_http="",author_e
mail="",lw_ico="0",
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 href=reply.jsp?";
lwhere=" where "; //只显示主贴
/*
Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) {
String name = (String) e.nextElement();
*/
try{
//取显示的页页序数
pages = new Integer(request.getParameter("pages")).intValue();
} catch (Exception e) {}
try{
//取查询参数
lw_class1=new String(request.getParameter("lw_class1").getBytes
("ISO8859_1"));
lw_class2=new String(request.getParameter("lw_class2").getBytes
("ISO8859_1"));
zt_time=new String(request.getParameter("zt_time").getBytes("IS
O8859_1"));
zt_author=new String(request.getParameter("zt_author").getBytes
("ISO8859_1"));
lwhere=" where ( lw_class1="+lw_class1+" and lw_class2="+lw_
class2+
" and (lw_time="+ zt_time+" or zt_time="+zt_time+
") and (author_email="+zt_author+" or zt_author="+zt
_author+") ) ";
lurlt=lurlt+"lw_class1="+lw_class1+"&lw_class2="+lw_class2+"&zt
_time="+zt_time+
"&zt_author="+zt_author+"&";
//out.print(lwhere);
} catch (Exception e) { //out.print("error1: "+e+"<hr>");
}
try{
//取得参数 留言内容
lw_class1=new String(request.getParameter("lw_class1").getBytes("ISO
8859_1"));
lw_class2=new String(request.getParameter("lw_class2").getBytes("ISO
8859_1"));
lw_title=new String(request.getParameter("lw_title").getBytes("ISO88
59_1"));
lw_author=new String(request.getParameter("lw_author").getBytes("ISO
8859_1"));
pagetitle=new String(request.getParameter("pagetitle").getBytes("ISO
8859_1"));
author_http=new String(request.getParameter("author_http").getBytes(
"ISO8859_1"));
author_email=new String(request.getParameter("author_email").getByte
s("ISO8859_1"));
zt_time=new String(request.getParameter("zt_time").getBytes("ISO8859
_1"));
zt_author=new String(request.getParameter("zt_author").getBytes("ISO
8859_1"));
lw_ico=request.getParameter("gifface");
} catch (Exception e) {}
try{
lw_content=new String(request.getParameter("lw_content").getBytes("I
SO8859_1"));
String requestMethod=request.getMethod();
requestMethod=requestMethod.toUpperCa();
if(requestMethod.indexOf("POST")<0)
{ out.print("非法操作!");
return;
}
//形成其他数据项
author_ip=request.getRemoteAddr() ;
lw_time=testInq.getCurrentDate("yyyyMMddHHmmss");
lw_type=""+"c"; //从贴
answer_num=0;
click_num=0;
//================
st=",";
phpcms留言板怎么制作
phpcms
v9留言板的制作方法有两种
一种是直接应用phpcms官方自己制作的
v9的插件
直接拷入根目录
后台系统会自动默认
下载地址
以及制作方式
我空间有详细列出
另一种是利用
模板里的
表单向导功能
自己制作