<!--#include file="header.asp"-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="images/iceweb_01.gif"><table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="images/bixin0002.gif" width="778" height="196" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td width="2343" height="8" colspan="3"></td>
  </tr>
  <tr>
    <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="29%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/iceweb.cn_05.gif" width="228" /></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_07.gif" width="228" height="168" /></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_10.gif" width="228" height="11" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="4%"><img src="images/iceweb.cn_11_01.gif" width="28" height="26" /></td>
                    <td width="63%" align="center" valign="middle" background="images/iceweb.cn_11_02.gif" class="title">留言板</td>
                    <td width="33%"><img src="images/iceweb.cn_11_03.gif" width="139" height="26" /></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td background="images/iceweb.cn_bg.gif"><table width="100%" border="0" cellspacing="10" cellpadding="0">
                    <tr>
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td height="13" align="center" class="twopage"><img src="images/iceweb.cn_icon.gif" width="15" height="14" /></td>
                          <td height="20" class="twopage"><a href="book.asp">查看留言</a></td>
                        </tr>
                        <tr>
                          <td width="15%" height="13" align="center" class="twopage"><img src="images/iceweb.cn_icon.gif" width="15" height="14" /></td>
                          <td width="85%" height="20" class="twopage"><a href="write.asp">签写留言</a></td>
                        </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_13.gif" width="228" height="15" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td width="1%" valign="top"></td>
        <td width="70%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><img src="images/iceweb.cn_06_01.gif" width="25" height="33" /></td>
                <td width="17%" background="images/iceweb.cn_06_02.gif">留言板</td>
                <td width="13%"><img src="images/iceweb.cn_06_03.gif" width="69" height="33" /></td>
                <td width="64%" background="images/iceweb.cn_06_04.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="61%">&nbsp;</td>
                    <td width="39%" height="20">首页-留言板<%if request("t")<>"" then response.Write("-"&request("t")) end if%></td>
                    </tr>
                </table></td>
                <td width="1%"><img src="images/iceweb.cn_06_06.gif" width="15" height="33" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><a href="write.asp"><img src="bn1/feedback.gif" height="66" border="0" /></a></td>
          </tr>
          <tr>
            <td background="images/iceweb.cn_09_bg.gif" height="300" valign="top"><%
			set rs=server.CreateObject("adodb.recordset")
			sql="select * from book order by b_time desc,b_id desc"
			rs.open sql,conn,1,1
			if not rs.eof and not rs.bof then
			%>
			<table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                   <%
	rs.pagesize=18
	page=clng(REQUEST.QueryString("page"))

	if page<1 then
		page=1
	end if
	if page>rs.pagecount then
		page=rs.pagecount
	end if

	rs.absolutepage=page
	i=1
	do while not rs.eof and i<=rs.pagesize
	%>
    <%if rs("b_name")=session("user") then %>
			       <tr>
			         <td height="20" align="center">&nbsp;</td>
			         <td colspan="2" class="news">来自<font color="#FF0000"><%=rs("b_from")%></font>的朋友<font color="#FF0000"><%=rs("b_name")%></font>在此留言[<%=rs("b_time")%>]</td>
		            </tr>
			       <tr>
			         <td height="20" align="center">&nbsp;</td>
			         <td width="12%" rowspan="2" class="news"><img src=img/<%=rs("b_sex")%>.jpg width="50" /></td>
		             <td width="84%" class="news">留言标题：<%=rs("b_title")%></td>
			       </tr>
			       <tr>
			         <td height="20" align="center">&nbsp;</td>
			         <td class="news">留言内容：<%=rs("b_content")%></td>
			       </tr>
			       <tr>
                <td width="4%" height="20" align="center" style="border-bottom:#336600 1px solid;">&nbsp;</td>
                <td colspan="2" class="news" style="border-bottom:#336600 1px solid;">回复：<%=rs("b_replay")%></td>
                </tr>
    <%else%>
    			       <tr>
			         <td height="20" align="center">&nbsp;</td>
			         <td colspan="2" class="news">来自<font color="#FF0000"><%=rs("b_from")%></font>的朋友<font color="#FF0000"><%=rs("b_name")%></font>在此留言[<%=rs("b_time")%>]</td>
		            </tr>
			       <tr>
			         <td height="20" align="center">&nbsp;</td>
			         <td colspan="2" class="news">留言标题：********</td>
		            </tr>
			       <tr>
			         <td height="20" align="center">&nbsp;</td>
			         <td colspan="2" class="news">留言内容：********</td>
		            </tr>
			       <tr>
                <td width="4%" height="20" align="center" style="border-bottom:#336600 1px solid;">&nbsp;</td>
                <td colspan="2" class="news"  style="border-bottom:#336600 1px solid;">回复：<%if rs("b_content")="" then response.write("未回复") else response.write("已回复") end if%></td>
                </tr>
    <%end if%>
  <%
	rs.movenext
    i=i+1
	loop
%>
            </table>
			<%else%>没有信息<%end if%></td>
          </tr>
          <tr>
            <td height="20" background="images/iceweb.cn_09_bg.gif">&nbsp;</td>
          </tr>
          <tr>
            <td height="20" background="images/iceweb.cn_09_bg.gif"><div align="center">
        <% 
  if page=1 then 
  response.Write("第一页")
  else
  response.write("&nbsp;&nbsp;<a href=ice.asp?id="& id &"&page=1>第一页</a>")
  end if
  
  if page=1 then 
   response.Write("&nbsp;&nbsp;上一页")
   else 
   response.Write("&nbsp;&nbsp;<a href=ice.asp?id="& id &"&page="& page-1 & ">上一页</a>")
   end if
   
   if page=rs.pagecount then 
   response.Write("&nbsp;&nbsp;下一页")
   else 
   response.Write("&nbsp;&nbsp;<a href=ice.asp?id="& id &"&page="& page+1 & ">下一页</a>")
   end if
   
   if page=rs.pagecount then 
   response.Write("&nbsp;&nbsp;最后一页")
   else 
   response.Write("&nbsp;&nbsp;<a href=ice.asp?page="& rs.pagecount & ">最后一页</a>")
   end if
   %>
&nbsp;<span class="hb">&nbsp;&nbsp;当前第
<font color="#FF0000"><% =page %></font>/<% =rs.pagecount %></span></div></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="74%"><img src="images/iceweb_r1_c1.gif" width="402" height="41" /></td>
                <td width="9%"><a href="javascript:window.print()"><img src="images/iceweb_r1_c2.gif" width="73" height="41" border="0" /></a></td>
                <td width="17%"><a href="#top"><img src="images/iceweb_r1_c3.gif" width="70" height="41" border="0" /></a></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="footer.asp"-->