recemessage.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:10k
源码类别:

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page contentType="text/html; charset=gb2312"%>
  3. <%@ page import="java.sql.*,java.lang.*"%>
  4. <jsp:useBean id="sale_manageBeans" class="MyFly.Bean.sale_manageBeans" scope="request"/>
  5. <%
  6.  String name=(String)session.getAttribute("name");
  7. if ( name == null){
  8.   out.println("<Script language=JavaScript>alert('您还没登录,没有权利查看');javascript:history.back();</Script>");
  9.   }
  10. %>
  11. <script language="javascript">
  12. function openScript(url,name, width, height){
  13. var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
  14. }
  15. </script>
  16. <HTML><HEAD><TITLE>-站内消息-</TITLE>
  17. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  18. href="../image/buyok_shop.css" type=text/css rel=stylesheet><LINK 
  19. href="../image/buyok_shop.css" type=text/css rel=stylesheet>
  20. <STYLE type=text/css>BODY {
  21. MARGIN: 0px
  22. }
  23. .STYLE1 {
  24. COLOR: #ff3300
  25. }
  26. .STYLE2 {
  27. COLOR: #ff0000
  28. }
  29. </STYLE>
  30. <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
  31. <BODY>
  32. <CENTER>
  33. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  34. bgColor=#ffffff border=0>
  35.   <TBODY>
  36.   <TR>
  37.     <TD width=760>
  38.       <TABLE class=4l borderColor=#ebebeb cellSpacing=0 cellPadding=0 
  39.       width="100%" align=center border=0>
  40.         <TBODY>
  41.         <TR>
  42.           <TD>
  43.             <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
  44.             border=0>
  45.               <TBODY>
  46.               <TR>
  47.                 <TD colSpan=2 height=13></TD></TR>
  48.               <TR>
  49.                 <TD width=260>
  50.                   <DIV align=center><IMG height=45 src="../image/logo.gif" 
  51.                   width=200></DIV></TD>
  52.                 <TD align=right width=500>
  53.                   <TABLE cellSpacing=0 cellPadding=0 width=500 align=right 
  54.                   border=0>
  55.                     <TBODY>
  56.                     <TR>
  57.                       <TD align=right width=22><IMG height=67 
  58.                         src="../image/top_1.gif" width=7></TD>
  59.                       <TD align=right width=82><A onfocus=this.blur() 
  60.                         href="http://www.erbook.com.cn/default.asp"><IMG 
  61.                         height=67 src="../image/home.gif" width=82 
  62.                         border=0></A></TD>
  63.                       <TD align=right width=74><A onfocus=this.blur() 
  64.                         href="http://www.erbook.com.cn/buyok_xs.asp"><IMG 
  65.                         height=67 src="../image/newbook.gif" width=74 
  66.                         border=0></A></TD>
  67.                       <TD align=right width=79><A onfocus=this.blur() 
  68.                         href="http://www.erbook.com.cn/buyok_jp.asp"><IMG 
  69.                         height=67 src="../image/jptj.gif" width=79 
  70.                         border=0></A></TD>
  71.                       <TD align=right width=75><A onfocus=this.blur() 
  72.                         href="http://www.erbook.com.cn/buyok_tejia.asp"><IMG 
  73.                         height=67 src="../image/tejia.gif" width=75 
  74.                         border=0></A></TD>
  75.                       <TD align=right width=78><A onfocus=this.blur() 
  76.                         href="http://www.erbook.com.cn/guest/index.asp"><IMG 
  77.                         height=67 src="../image/guest.gif" width=78 
  78.                         border=0></A></TD>
  79.                       <TD align=right width=90><A onfocus=this.blur() 
  80.                         href="http://www.erbook.com.cn/help_lx.asp"><IMG 
  81.                         height=67 src="../image/link_wo.gif" width=90 
  82.                         border=0></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
  83. <TABLE width=759 height="425" border=0 align=center cellPadding=0 cellSpacing=0 
  84. bgColor=#ffffff class=grayline>
  85.   <TBODY>
  86.   <TR>
  87.     <TD vAlign=top align=middle width=171>
  88.       <TABLE cellSpacing=0 cellPadding=0 width=171 align=center border=0>
  89.         <TBODY>
  90.         <TR>
  91.           <TD vAlign=top align=middle width=176><A 
  92.             href="http://www.erbook.com.cn/user_center.asp"><IMG alt=回到用户中心首页 
  93.             src="../image/usermenu1.gif" align=center border=0></A></TD></TR>
  94.         <TR>
  95.           <TD vAlign=top align=middle width=176 
  96.           background=../image/usermenu2.gif height=346><BR>
  97.             <TABLE cellSpacing=0 cellPadding=0 width="80%" border=0>
  98.               <TBODY>
  99.                 <TR>
  100.                   <TD height=30>
  101.                     <DIV align=center><IMG src="../image/xie.gif" 
  102.                   align=center border=0> <A title=修改个人资料 
  103.                   href="usermodity.jsp">个 人 资 料</A></DIV></TD>
  104.                 </TR>
  105.                 <TR>
  106.                   <TD height=30>
  107.                     <DIV align=center><IMG src="../image/xie.gif" 
  108.                   align=center border=0> <A title=修改登陆密码 
  109.                   href="userpass.jsp">密 码 设 置</A></DIV></TD>
  110.                 </TR>
  111.                 <TR>
  112.                   <TD vAlign=center height=30>
  113.                     <DIV align=center><IMG alt=我的收藏 src="../image/xie.gif" 
  114.                   align=center border=0> <A title=查看我的收藏 
  115.                   href="#"  onclick="openScript('collectionuser.jsp','collectionuser',650,300);">我 的 收 藏</A></DIV></TD>
  116.                 </TR>
  117.                 <TR>
  118.                   <TD height=30>
  119.                     <DIV align=center><IMG src="../image/xie.gif" 
  120.                   align=center border=0> <A title=查看个人订单 
  121.                   href="list_info.jsp">订 单 查 看</A></DIV></TD>
  122.                 </TR>
  123.                 <TR>
  124.                   <TD height=30>
  125.                     <DIV align=center><IMG src="../image/xie.gif" 
  126.                   align=center border=0> <A title=接收站内消息 
  127.                   href="recemessage.jsp">接 收 消 息</A></DIV></TD>
  128.                 </TR>
  129.                 <TR>
  130.                   <TD height=30>
  131.                     <DIV align=center><IMG src="../image/xie.gif" 
  132.                   align=center border=0> <A title=发送站内消息 
  133.                   href="sendmessage.jsp">发 送 消 息</A></DIV></TD>
  134.                 </TR>
  135.                 <TR>
  136.                   <TD height=30>
  137.                     <DIV align=center><IMG src="../image/xie.gif" 
  138.                   align=center border=0> <A title=安全退出 
  139.                   href="loginout.jsp">安 全 退 出</A></DIV></TD>
  140.                 </TR>
  141.               </TBODY>
  142.             </TABLE></TD></TR>
  143.         <TR>
  144.           <TD vAlign=top align=middle width=176 height=19><IMG 
  145.             src="../image/usermenu3.gif" 
  146.       align=center></TD></TR></TBODY></TABLE></TD>
  147.     <TD width=6 bgColor=#cccccc></TD>
  148.     <TD vAlign=top width=580 bgColor=#ffffff>
  149.       <TABLE cellSpacing=2 cellPadding=2 width="96%" align=center border=0>
  150.         <TBODY>
  151.         <TR>
  152.           <TD align=right width=35 height=30><IMG height=11 
  153.             src="../image/jt_2.gif" width=11></TD>
  154.           <TD width=521 height=30>当前位置:<A 
  155.             href="http://www.erbook.com.cn/default.asp">首页</A> &gt; <A 
  156.             href="http://www.erbook.com.cn/user_center.asp">用户中心</A> &gt; 
  157.         接收站内消息</TD>
  158.         </TR>
  159.         <TR>
  160.           <TD align="center" background=../image/bgline.gif colSpan=2 
  161.           height=1></TD></TR></TBODY></TABLE><BR>
  162.           <table width="573" border="1" align="center" borderColor="#c0c0c0" cellSpacing=0 borderColorDark="#ffffff">
  163.             <tr valign="middle">
  164.               <td width="187" height="29" align="center">留言标题</font></td>
  165.               <td width="80" align="center">消息类型</td>
  166.               <td width="84" align="center">发布时间</td>
  167.               <td width="84" align="center">回复(是/否)</td>
  168.               <td align="center">查看</td>
  169.               <td align="center">删除</td>
  170.             </tr>
  171.             <%
  172.       int size=10;
  173.       String strNum=request.getParameter("pageNum");
  174.   int cur;
  175.   sale_manageBeans.init1(size,"lin");
  176.   
  177.   int num=sale_manageBeans.rowCount;
  178.   if(num!=0)
  179.   {
  180.   int pageNum=sale_manageBeans.pageCount; //取得总页数
  181.       if(strNum == null || strNum.equals(""))
  182.   {
  183.        cur=1;
  184.   }
  185.   else
  186.   {
  187.            cur=Integer.parseInt(strNum);//取得要显示的页
  188.   }
  189.   if(cur < 1)
  190.   {
  191.      cur = 1;
  192.   }
  193.   if(cur > pageNum)
  194.   {
  195.      cur = pageNum;
  196.   }
  197.   
  198.   sale_manageBeans.get_messageRow(cur,"lin");
  199.   
  200.   for(int i=0; i<sale_manageBeans.getItems(); i++)
  201.   {
  202.  %>
  203.             <tr>
  204.               <td height="28" align="left">&nbsp;&nbsp;&nbsp;<%=sale_manageBeans.getTitle(i)%></td>
  205.               <td width="109" align="center">
  206.   <%  String str="";
  207.   if(!sale_manageBeans.getIsHuifu(i).equals("1"))
  208.       str="留言";
  209.   else
  210.      str="系统消息";
  211.   %><%=str%></td>
  212.               <td align="center">&nbsp;<%=sale_manageBeans.getAppendTime(i)%></td>
  213.               <td align="center">&nbsp;
  214.   <%
  215.     String str1="";
  216.     if(!sale_manageBeans.getIsHuifu(i).equals("1"))
  217.      { str1=sale_manageBeans.getIsHuifu(i);
  218.  %>
  219.  <%=str1%>
  220.  <%} else
  221.   { %>
  222.   <img src="../image/mailhint.gif">
  223.   <%}%>
  224.   </td>
  225.               <td width="40" align="center"><img src="../HouTai/images/admin/edit.gif" alt="回复" width="19" height="18" border="0" onClick="openScript('content.jsp?index=<%=sale_manageBeans.getSelID(i)%>','receive',600,300);"></td>
  226.               <td width="43" align="center"><a href="sale_manageDel.jsp?index=<%=sale_manageBeans.getSelID(i)%>"><img src="../HouTai/images/admin/del.gif" alt="删除" width="16" height="16" border="0"></a></td>
  227.             </tr>
  228.             <%    
  229. }
  230. %> 
  231. <tr><td colspan="6"><!--分页代码-->
  232.     <div align="right"><a href="recemessage.jsp?pageNum=<%=1%>">首页</a>
  233.           <a href="recemessage.jsp?pageNum=<%=cur-1 %>">上一页</a> &nbsp;
  234.           <a href="recemessage.jsp?pageNum=<%=cur+1 %>">下一页</a> &nbsp;
  235.           <a href="recemessage.jsp?pageNum=<%=pageNum%>">尾页</a>&nbsp;页次:<font color="#FF0000"><%=cur%></font><%=pageNum%>
  236.     </div></td></tr>
  237. <%
  238. }//end if
  239. else
  240. {
  241. %>
  242. <TR><TD colspan="6">
  243.             <MARQUEE width="100%" height=10>暂时没有站内消息</MARQUEE></TD></TR>
  244.   <%}%>
  245.           </table>
  246.   
  247.         </TD>
  248.   </TR></TBODY></TABLE>
  249. <%@ include file="foot.jsp" %>
  250. </CENTER></BODY></HTML>