⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d09366a47fbf001c1f64ee89f3b08a66

📁 基于Java实现的聊天室功能
💻
字号:
<%@page pageEncoding="GBK"%>
<%@page import="liuyan.*,java.util.*" %>
<HTML>
<HEAD>
<TITLE>教学督导组--用户留言</TITLE>
<META http-equiv="content-type" content="text/html; charset=gb2312">
<LINK rel='stylesheet' href='css/dep0.css'>
</HEAD>
<%
    String i = (String)request.getParameter("id");
    int id;
    int total = 0;
	if(i == null || i.length() == 0){
	   id = 0;
	}else{
	   id = Integer.parseInt(i);
	   if(id <0)id = 0;
	}
	Liuyan liuyan = new Liuyan();
    total = liuyan.getTotal("select COUNT(id) from lyinfo");
	String sql = "select top 10 * from lyinfo where id not in(select top "+10*id+
	" id from lyinfo order by id desc) order by id desc";
	ArrayList<LiuyanBean> list = liuyan.getLiuyanList(sql);
 %>
<BODY bgcolor=#CCCCCC style='margin:0'>

<CENTER>
<TABLE class=maintbl width=766 border=0 cellPadding=0 cellSpacing=0 align=center>
	<TR><TD width=766 height=1></TD></TR>
	<TR>
		<TD>
			<TABLE width='100%' border=0 cellPadding=0 cellSpacing=0>
				<TR>
					<TD><IMG src='Img/top.jpg' width=766 height=93></TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD width=766 height=9 style='line-height:0px; border:#737BB6 2px solid; border-width:2px 0px 0px 0px'>&nbsp;</TD>
	</TR>
	<TR>
		<TD>
			<TABLE width='100%' border=0 cellPadding=0 cellSpacing=0>
				<TR>
					<TD width=147 height=20 bgColor='#FFFFFF' align=center><IMG src='Img/Tuanjie.jpg'></TD>
					<TD width=10 bgColor='#FFFFFF'></TD>
					<TD width=603 height=20 bgColor='#FFFFFF' Valign=bottom>
						<MARQUEE direction=left width=600 height=16 scrolldelay=80 scrollamount=6 behavior="alternate" id='board' onmouseover='board.stop()' onmouseout='board.start()'>
						<font color=#0000CC><a href='/Dep/Default.asp?bm=33' target=_top style='color:#0000FF'>
欢迎您访问<b>湖北工业大学--教学督导组</b>的主页</a></font></MARQUEE>
					</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR><TD width=766 height=10></TD></TR>
</TABLE>
</CENTER>

<table border=0 cellpadding=0 cellspacing=0 width=766 align=center>
<%if(list==null||list.size()==0){ %>
    <tr>
    <td>没有任何留言信息!</td>
    </tr>
    <%}else{
       String[] color = new String[2];
       color[0]="#E6E6FF"; color[1]="#E8F1FF";
    %>
	<tR><TD bgcolor="#333399">
		<table width=100% border=0 cellspacing=1 cellpadding=4>
			<tr bgcolor="#9797FF">
				<td valign=middle width=150><font color=#ffffff>留言者信息>></font></td>
				<td valign=middle></td>
			</tr>
  <%
      LiuyanBean liuyanbean = null;
      String sex = null;
      String miaoshu = null;
      for(int j=0;j<list.size();j++){
          liuyanbean = list.get(j);
          if(liuyanbean.getSex().equals("男")){sex="boy.gif";miaoshu="英俊潇洒的 "+liuyanbean.getName()+" 先生";}
          else{ sex="girl.gif";miaoshu="漂亮美丽的 "+liuyanbean.getName()+" 女士";}
  %>
  <tr bgcolor=<%=color[j%2]%>>
    
    <TD valign=top width=150 > <FONT COLOR="#33333cc"><B>留言者:<%=liuyanbean.getName()%></B></font> 
      <CENTER>
        <table border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td align="center"></td>
          </tr>
          <tr> 
            <td align="center"><BR>
              
              <img src="Img/<%=sex%>" alt="<%=miaoshu%>" width="32" height="32" border=0 ALIGN=absmiddle>            </td>
          </tr>
          <tr> 
            <td height="17"> 
                </td>
          </tr>
        </table>
      </CENTER>
    </td>
    
    <td valign="top" height=90> 
       <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr> 
          <td width=25 valign="top"><IMG SRC="Img/Icon<%=liuyanbean.getBq()%>.gif" width="16" height="10" BORDER=0 ALIGN=ABSCENTER></td>
          <td width=240 align="left"><FONT color="#3333CC">[留言时间: <%=liuyanbean.getLyTime()%>]</font></td>
          <td width=325> 
            <p align="right">&nbsp;&nbsp; 
              

<!--              <img src="LyImg/ip.gif" alt="10.254.17.*" ALIGN=absmiddle border=0 width=13 height=15>&nbsp;&nbsp;  -->
              <img src="Img/system.gif" alt="Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ALIGN=absmiddle border=0 width=16 height=16>          </td>
        </tr>
        <tr> 
          <td colspan=3 valign="bottom"> 
		<HR>
		<div style='overflow:auto;word-break:break-all;width:590'><p style="margin-top:4;margin-bottom:8"><b><%=liuyanbean.getTitle()%></b></p>
		<%=liuyanbean.getContent()%></div>
	</td>
	</tr>
      </table>
      
      <HR SIZE=1>
      <%if(!(liuyanbean.getReplyTime()==null||liuyanbean.getReplyTime().equals("null")||
      liuyanbean.getReplyTime().equals(""))){%>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr> 
          <td width="5%" valign="top"> 
            <p align="center"><IMG SRC="Img/Icon10.gif" width="16" height="10" BORDER=0 ALIGN=ABSCENTER></p>
          </td>
          <td width="95%"> 
            <p align="left"><FONT color="RED">受理于: <%=liuyanbean.getReplyTime()%>  最近回复于: <%=liuyanbean.getLastTime()%></font> 
<span style="color:#CCCCCC">教学督导组</span></p>
          </td>
        </tr>
        <tr> 
          <td width="5%" valign="top"></td>
          <td colspan="2"><div style='overflow:auto;word-break:break-all;width:560'>  <br>
        <%=liuyanbean.getReplyContent()%></div></td>
        </tr>
      </table>
      <%}%>
  </td><!-- 右 -->
</tr>
<%}%>
	</table>
	</TD></TR>
	<%}%>
</table>

<table cellspacing=1 border=0 width="766" align=center bgcolor=#CCCCEE height="44">
<tr>
      <td width="100"><a href="ly.jsp" target=_blank"><img src="Img/post.gif" alt="添加留言" width="99" height="25" border=0></a></td>
      <td width="580" align=Right>
共<%=total%>条/<%=(total-1/10)+1%>页,目前为第<%=i%>页      <strong>首页</strong>  <strong>上一页</strong>  <a href=self><strong>下一页</strong></a>  <a href=self><strong>末页</strong></a>  当前第<input type="text" style="border: 1px solid;background:#fffff;text-align: center" name="Page" size=4 value=1>页
      </td>
      <TD align="right" width="70" Valign=Middle><p style="margin-top:5px"><a href="/BackMan/">管理入口</a></p></TD>
</tr></table>

<!-- ImageReady Slices (1) -->
<div align="center">
  <center>
<TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="85" style="border-collapse: collapse" bordercolor="#111111">
	<TR><TD height=0 Colspan=2 bgcolor="#FFFFFF"></TD></TR>

	<TR><TD width="580" height="77" bgcolor="#8CAEDE">
		<div align="center">
              	<center>
              	<table height="46" cellSpacing="0" cellPadding="0" width="100%" border="0" style="border-collapse: collapse" bordercolor="#111111">
                <tr>
                  <td vAlign="center" align="middle" height="15">
                  <span style="font-size: 9pt">湖北·武汉市武昌区南湖大道  邮编:430068</span></td>
                </tr>
                <tr>
                  <td vAlign="center" align="middle" height="17">学院值班电话:027-********  网络故障报修与服务电话:027-********,********  <a href="ly.jsp"><span style="font-size: 9pt">[留言]</span></a></td>
                </tr>
                <tr>
                  <td vAlign="center" align="middle" height="14"><span style="font-size: 9pt">Copyright&copy;湖北工业大学 2007-2010  建议使用IE5.5,800*600以上浏览</span><a href="mailto:nic@hbut.edu.cn"> </a></td>
                </tr>
              </table>
              </center>
          </div>
        </TD>
	<TD height="77"><IMG SRC="Img/foot_2.gif" WIDTH=188 HEIGHT=77 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=2 bgcolor="#003063" height="8"><hr color="#003063" size="1"></TD>
	</TR>
</TABLE>
  </center>
</div>
<!-- End ImageReady Slices -->
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -