|
|
|
|
<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312" %>
|
|
|
|
|
<%@ include file="iframe/head.jsp" %>
|
|
|
|
|
<jsp:useBean id="guestbean" class="com.bean.GuestBookBean" scope="page" />
|
|
|
|
|
|
|
|
|
|
<script language="javascript" >
|
|
|
|
|
function top(){
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page=1";
|
|
|
|
|
form3.submit();
|
|
|
|
|
}
|
|
|
|
|
function last(){
|
|
|
|
|
if(form3.pageCount.value==0){//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>Ϊ0<CEAA><30><EFBFBD><EFBFBD>ô<EFBFBD><C3B4><EFBFBD><EFBFBD>һҳΪ1<CEAA><31>Ҳ<EFBFBD><D2B2><EFBFBD>ǵ<EFBFBD>һҳ<D2BB><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǵ<EFBFBD>0ҳ
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page=1";
|
|
|
|
|
form3.submit();
|
|
|
|
|
}else{
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page="+form3.pageCount.value;
|
|
|
|
|
form3.submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function pre(){
|
|
|
|
|
var page=parseInt(form3.page.value);
|
|
|
|
|
if(page<=1){
|
|
|
|
|
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һҳ");
|
|
|
|
|
}else{
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page="+(page-1);
|
|
|
|
|
form3.submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function next(){
|
|
|
|
|
var page=parseInt(form3.page.value);
|
|
|
|
|
var pageCount=parseInt(form3.pageCount.value);
|
|
|
|
|
if(page>=pageCount){
|
|
|
|
|
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һҳ");
|
|
|
|
|
}else{
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page="+(page+1);
|
|
|
|
|
form3.submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function bjump(){
|
|
|
|
|
var pageCount=parseInt(form3.pageCount.value);
|
|
|
|
|
if( fIsNumber(form3.busjump.value,"1234567890")!=1 ){
|
|
|
|
|
alert("<22><>ת<EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
|
|
|
|
|
form3.busjump.select();
|
|
|
|
|
form3.busjump.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(form3.busjump.value>pageCount){//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һҳ<D2BB><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һҳ
|
|
|
|
|
if(pageCount==0){
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page=1";
|
|
|
|
|
form3.submit();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page="+pageCount;
|
|
|
|
|
form3.submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(form3.busjump.value<=pageCount){
|
|
|
|
|
var page=parseInt(form3.busjump.value);
|
|
|
|
|
if(page==0){
|
|
|
|
|
page=1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD>ô<EFBFBD><C3B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page="+page;
|
|
|
|
|
form3.submit();
|
|
|
|
|
}else{
|
|
|
|
|
form3.action="<%=basePath%>guestbook.jsp?page="+page;
|
|
|
|
|
form3.submit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//****<2A>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD>Number.
|
|
|
|
|
function fIsNumber (sV,sR){
|
|
|
|
|
var sTmp;
|
|
|
|
|
if(sV.length==0){ return (false);}
|
|
|
|
|
for (var i=0; i < sV.length; i++){
|
|
|
|
|
sTmp= sV.substring (i, i+1);
|
|
|
|
|
if (sR.indexOf (sTmp, 0)==-1) {return (false);}
|
|
|
|
|
}
|
|
|
|
|
return (true);
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<SCRIPT language=JavaScript src="<%=basePath %>images/css/Common.js"></SCRIPT>
|
|
|
|
|
<%
|
|
|
|
|
String message = (String)request.getAttribute("message");
|
|
|
|
|
if(message == null){
|
|
|
|
|
message = "";
|
|
|
|
|
}
|
|
|
|
|
if (!message.trim().equals("")){
|
|
|
|
|
out.println("<script language='javascript'>");
|
|
|
|
|
out.println("alert('"+message+"');");
|
|
|
|
|
out.println("</script>");
|
|
|
|
|
}
|
|
|
|
|
request.removeAttribute("message");
|
|
|
|
|
%>
|
|
|
|
|
<DIV align=center>
|
|
|
|
|
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD >
|
|
|
|
|
<TABLE class=dragTable height=28 cellSpacing=0 cellPadding=0 width=100% align=center background=<%=basePath %>images/head1.gif border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD align=left class=head><FONT color=#000000><3E><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>λ<EFBFBD>ã<EFBFBD><SPAN
|
|
|
|
|
style="TEXT-DECORATION: none"><3E><><EFBFBD><EFBFBD></FONT>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TBODY>
|
|
|
|
|
</TABLE></TD></TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD class=middle><br>
|
|
|
|
|
<!--ѭ<><D1AD><EFBFBD><EFBFBD>ʼ==============================================================-->
|
|
|
|
|
<%
|
|
|
|
|
String member=(String)session.getAttribute("member");
|
|
|
|
|
if(member==null)member="<22>ο<EFBFBD>";
|
|
|
|
|
guestbean.setEVERYPAGENUM(6);
|
|
|
|
|
int cou = guestbean.getMessageCount();//<2F>õ<EFBFBD><C3B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
|
|
|
|
|
String page1=request.getParameter("page");
|
|
|
|
|
if(page1==null){
|
|
|
|
|
page1="1";
|
|
|
|
|
}
|
|
|
|
|
session.setAttribute("busMessageCount", cou + "");
|
|
|
|
|
session.setAttribute("busPage", page1);
|
|
|
|
|
List pagelist1 = guestbean.getMessage(Integer.parseInt(page1)); //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD>ҳ<EFBFBD><D2B3>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
session.setAttribute("qqq", pagelist1);
|
|
|
|
|
int pageCount = guestbean.getPageCount(); //<2F>õ<EFBFBD>ҳ<EFBFBD><D2B3>
|
|
|
|
|
session.setAttribute("busPageCount", pageCount + "");
|
|
|
|
|
List pagelist3=(ArrayList)session.getAttribute("qqq");
|
|
|
|
|
if(!pagelist3.isEmpty()){
|
|
|
|
|
for(int i=0;i<pagelist3.size();i++){
|
|
|
|
|
List pagelist2 =(ArrayList)pagelist3.get(i);
|
|
|
|
|
List replay=guestbean.getReplayInfo(Integer.parseInt(pagelist2.get(0).toString()));
|
|
|
|
|
%>
|
|
|
|
|
<TABLE class=guestbook cellSpacing=0 cellPadding=0 width="100%"
|
|
|
|
|
border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD class=Ftd align=middle width="18%" rowSpan=2>
|
|
|
|
|
<DIV class=icon><IMG height=80 src="<%=basePath+pagelist2.get(2).toString() %>" width=80 border=0></DIV>
|
|
|
|
|
<DIV class=name><%=pagelist2.get(1).toString() %></DIV></TD>
|
|
|
|
|
<TD class=Ctd vAlign=top width="82%" height=75>
|
|
|
|
|
<TABLE style="TABLE-LAYOUT: fixed; WORD-WRAP: break-word" cellSpacing=0 cellPadding=0 width="80%" border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD class=content align=left>
|
|
|
|
|
<IMG height=20 src="<%=basePath+pagelist2.get(7).toString() %>" width=20>
|
|
|
|
|
<%=pagelist2.get(8).toString() %>
|
|
|
|
|
<%
|
|
|
|
|
if(!replay.isEmpty()){
|
|
|
|
|
%>
|
|
|
|
|
<FIELDSET>
|
|
|
|
|
<LEGEND><3E><><EFBFBD>Իظ<D4BB> </LEGEND><%=replay.get(0).toString() %>
|
|
|
|
|
(<28><><EFBFBD><EFBFBD>: <%=replay.get(1).toString() %>/<2F><><EFBFBD><EFBFBD>:<%=replay.get(2).toString() %>)
|
|
|
|
|
</FIELDSET>
|
|
|
|
|
<%}%>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TBODY>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD class=Atd width="82%">
|
|
|
|
|
ʱ<>䣺 <%=pagelist2.get(9).toString()%>
|
|
|
|
|
<A title="QQ:<%=pagelist2.get(4).toString()%>" href="tencent://message/?uin=<%=pagelist2.get(4).toString()%>&Site=<3D><>վ<EFBFBD><D5BE><EFBFBD><EFBFBD>&Menu=yes"><IMG height=16 src="<%=basePath %>images/face/qq.gif" width=16 border=0></A>
|
|
|
|
|
<A title="E_mail" href="mailto:<%=pagelist2.get(3).toString()%>"><IMG height=16 src="<%=basePath %>images/face/email.gif" width=16 border=0></A>
|
|
|
|
|
<A title=<3D><>ַ href="<%=pagelist2.get(5).toString()%>" target="_blank" ><IMG height=16 src="<%=basePath %>images/face/ie.gif" width=16 border=0></A>
|
|
|
|
|
<A title=<3D><><EFBFBD>͵<EFBFBD>ַ href="<%=pagelist2.get(6).toString()%>" target="_blank" ><IMG height=16 src="<%=basePath %>images/face/home.gif" width=16 border=0></A>
|
|
|
|
|
<A title="<%=pagelist2.get(10).toString()%>" href="javascript:"><IMG height=16 src="<%=basePath %>images/face/ip.gif" width=16 border=0></A>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TBODY>
|
|
|
|
|
</TABLE>
|
|
|
|
|
<%}}%>
|
|
|
|
|
<!--ѭ<><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>==================================================================-->
|
|
|
|
|
<br>
|
|
|
|
|
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD align=right>
|
|
|
|
|
<form action="" method="post" name="form3">
|
|
|
|
|
<input type="hidden" name="pageCount" value="<%= session.getAttribute("busPageCount").toString()%>" /><!--//<2F><><EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD><EFBFBD>javascript<70><74>ֵ-->
|
|
|
|
|
<input type="hidden" name="page" value="<%=session.getAttribute("busPage").toString()%>" /><!--//<2F><><EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD><EFBFBD>javascript<70><74>ֵ-->
|
|
|
|
|
<a href="#" onClick="top()"><img src="<%=basePath %>images/first.gif" border="0" /></a>
|
|
|
|
|
<a href="#" onClick="pre()"><img src="<%=basePath %>images/pre.gif" border="0" /></a>
|
|
|
|
|
<20><><%=session.getAttribute("busMessageCount").toString()%><3E><><EFBFBD><EFBFBD>¼,<2C><><EFBFBD><EFBFBD><%=session.getAttribute("busPageCount").toString()%>ҳ,<2C><>ǰ<EFBFBD><C7B0><%=session.getAttribute("busPage").toString()%>ҳ
|
|
|
|
|
<a href="#" onClick="next()"><img src="<%=basePath %>images/next.gif" border="0" /></a>
|
|
|
|
|
<a href="#" onClick="last()"><img src="<%=basePath %>images/last.gif" border="0" /></a>
|
|
|
|
|
<20><><input name="busjump" type="text" size="3" />ҳ<a href="#" onClick="bjump()"><img src="<%=basePath %>images/jump.gif" border="0" /></a>
|
|
|
|
|
</form>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TBODY>
|
|
|
|
|
</TABLE></TD></TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD class=foot>
|
|
|
|
|
<H3 class=L></H3>
|
|
|
|
|
<H3 class=R></H3></TD></TR></TBODY></TABLE>
|
|
|
|
|
<TABLE class=dragTable height=28 cellSpacing=0 cellPadding=0 width=100% align=center border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD align=left class=head> <3B><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD></TD></TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD class=middle>
|
|
|
|
|
<STYLE type=text/css>.selected {
|
|
|
|
|
BORDER-RIGHT: #ff9900 1px solid; BORDER-TOP: #ff9900 1px solid; FILTER: Alpha(opacity=100); BORDER-LEFT: #ff9900 1px solid; BORDER-BOTTOM: #ff9900 1px solid
|
|
|
|
|
}
|
|
|
|
|
.unselected {
|
|
|
|
|
BORDER-RIGHT: #edf8dd 1px solid; BORDER-TOP: #edf8dd 1px solid; FILTER: Alpha(opacity=50); BORDER-LEFT: #edf8dd 1px solid; BORDER-BOTTOM: #edf8dd 1px solid
|
|
|
|
|
}
|
|
|
|
|
</STYLE>
|
|
|
|
|
|
|
|
|
|
<SCRIPT>
|
|
|
|
|
var prevIcon;
|
|
|
|
|
function icon(num){
|
|
|
|
|
num.className="selected";
|
|
|
|
|
if(typeof(prevIcon)!="undefined"){
|
|
|
|
|
prevIcon.className="unselected";
|
|
|
|
|
}else{
|
|
|
|
|
document.all.firstface.className="unselected";
|
|
|
|
|
}
|
|
|
|
|
if(num.className=="unselected"){
|
|
|
|
|
num.className="selected";
|
|
|
|
|
}
|
|
|
|
|
prevIcon=num;
|
|
|
|
|
document.all.face.value=num.childNodes(0).id ;
|
|
|
|
|
}
|
|
|
|
|
</SCRIPT>
|
|
|
|
|
<FORM name="form1" action="<%=basePath%>GuestBook.do?method=add" method="post" onSubmit="return checkGUEST()" >
|
|
|
|
|
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
|
|
|
|
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD width="24%" align="right"><3E><> <3B><>: </TD>
|
|
|
|
|
<TD align=left><INPUT name=nikename maxlength=20 value="<%=member %>" readonly> <20><>ϵEmail:
|
|
|
|
|
<INPUT name=email maxlength=20> QQ: <INPUT size=11 name=qq maxlength=11>
|
|
|
|
|
</TD></TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD width="24%" align="right"><3E><>վ<EFBFBD><D5BE>ַ:</TD>
|
|
|
|
|
<TD align=left><INPUT size=35 name=weburl maxlength=100> <20><><EFBFBD><EFBFBD>BLOG<4F><47>ַ:
|
|
|
|
|
<INPUT size=35 name=blogurl maxlength=100> </TD></TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD width="24%" align="right"><3E><> <3B><>:</TD>
|
|
|
|
|
<TD align=left>
|
|
|
|
|
<TABLE cellSpacing=0 cellPadding=0 border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD class=selected id=firstface style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=1 height=20 src="<%=basePath %>images/face/1.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=2 height=20 src="<%=basePath %>images/face/2.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=3 height=20 src="<%=basePath %>images/face/3.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=4 height=20 src="<%=basePath %>images/face/4.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=5 height=20 src="<%=basePath %>images/face/5.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=6 height=20 src="<%=basePath %>images/face/6.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=7 height=20 src="<%=basePath %>images/face/7.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=8 height=20 src="<%=basePath %>images/face/8.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=9 height=20 src="<%=basePath %>images/face/9.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=10 height=20 src="<%=basePath %>images/face/10.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=11 height=20 src="<%=basePath %>images/face/11.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=12 height=20 src="<%=basePath %>images/face/12.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=13 height=20 src="<%=basePath %>images/face/13.gif" width=20></TD>
|
|
|
|
|
<TD class=unselected style="CURSOR: hand" onclick=icon(this)>
|
|
|
|
|
<IMG id=14 height=20 src="<%=basePath %>images/face/14.gif" width=20></TD>
|
|
|
|
|
<TD vAlign=top align=middle><INPUT type=hidden value=1 name=face> </TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TBODY>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD width="24%" align="right"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:</TD>
|
|
|
|
|
<TD align=left><TEXTAREA name=content rows=7 cols=80></TEXTAREA>
|
|
|
|
|
</TD></TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD width="24%"> </TD>
|
|
|
|
|
<TD align=left><INPUT type=submit value="<22><> <20><>" name=Submit>
|
|
|
|
|
</TD></TR></TBODY></TABLE></FORM></TD></TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD >
|
|
|
|
|
<H3></H3>
|
|
|
|
|
<H3></H3></TD></TR></TBODY></TABLE>
|
|
|
|
|
</DIV>
|
|
|
|
|
<%@ include file="iframe/foot.jsp"%>
|