radiolist.jsp~3~
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:2k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" import="java.sql.*,java.lang.*" %>
  2. <%request.setCharacterEncoding("gbk");%>
  3. <jsp:useBean id="sql" scope="page" class="control.sqlcontrol"></jsp:useBean>
  4. <jsp:useBean id="fen" scope="page" class="control.Textcontrol.Pagecontrol"></jsp:useBean>
  5. <%
  6. <html>
  7. <head>
  8. <title>
  9. articlelist
  10. </title>
  11. </head>
  12. <body bgcolor="#ffffff">
  13. try{
  14. String ud = (String)session.getAttribute("UD");
  15. String udid = (String)session.getAttribute("UDID");
  16. String un = (String)session.getAttribute("UN");
  17. String uid = (String)session.getAttribute("UID");
  18. String pp = (String)session.getAttribute("POPE");
  19. String login = (String)session.getAttribute("LOGIN");
  20. if(login.equals("OK")){
  21.   Connection conn=sql.getSQL2005conn("dbconfig.xml");
  22.   if(request.getParameter("pageID")==null){
  23.   }else{
  24.   fen.setpages(request.getParameter("pageID"));
  25.   }
  26.   String where = "type='1'";
  27.   String select = fen.getPageinfsql(12,"radio","id","desc",where);
  28.   ResultSet show = sql.getStatement(select);
  29.   %>
  30. <div align="center">
  31. <table cellpadding="0" cellspacing="0" border="1" width="80%">
  32. <%
  33.  while(show.next()){
  34.   out.println("<tr><td><font color='#ff00ff'>[公告消息]</font>&nbsp;&nbsp;<a href=showradio.jsp?id="+show.getString("id")+" >"+show.getString("title")+"&nbsp;&nbsp;"+show.getString("date")+"</a></td></tr>");
  35.  }
  36.  out.println("</table>");
  37.  out.println("<div>"+fen.controlPage("radiolist.jsp","pageID",8)+"</div>");
  38. %>
  39. </div>
  40. </body>
  41. </html>
  42. <%
  43. show.close();
  44. sql.closeDB();
  45. }else{
  46.    out.print("请登录!");
  47.     %>
  48.     <br /><a href="userlogin.jsp" target="mainFrame">用户登录</a>
  49.     <%
  50. }
  51. }catch(Exception e){
  52.   e.printStackTrace();
  53. } %>