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

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. <html>
  6. <head>
  7. <title>
  8. articlelist
  9. </title>
  10. </head>
  11. <body bgcolor="#ffffff">
  12. <%try{
  13.   Connection conn=sql.getSQL2005conn("dbconfig.xml");
  14.   if(request.getParameter("pageID")==null){
  15.   }else{
  16.   fen.setpages(request.getParameter("pageID"));
  17.   }
  18.   String where = "type='1'";
  19.   String select = fen.getPageinfsql(12,"radio","id","desc",where);
  20.   ResultSet show = sql.getStatement(select);
  21.   %>
  22. <div align="center">
  23. <table cellpadding="0" cellspacing="0" border="1" width="80%">
  24. <%
  25.  while(show.next()){
  26.   out.println("<tr><td><font color='#ff00ff'>[公告消息]</font>&nbsp;&nbsp;<a href=showradio.jsp?id="+show.getString("id")+" target="_blank" >"+show.getString("title")+"&nbsp;&nbsp;"+show.getString("date")+"</a></td></tr>");
  27.  }
  28.  out.println("</table>");
  29.  out.println("<div>"+fen.controlPage("radiolist.jsp","pageID",8)+"</div>");
  30. %>
  31. </div>
  32. </body>
  33. </html>
  34. <%
  35. show.close();
  36. sql.closeDB();
  37. }catch(Exception e){
  38.   e.printStackTrace();
  39. } %>