radiolist.jsp~2~
上传用户: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. <%
  6. <html>
  7. <head>
  8. <title>
  9. articlelist
  10. </title>
  11. </head>
  12. <body bgcolor="#ffffff">
  13. try{
  14.   Connection conn=sql.getSQL2005conn("dbconfig.xml");
  15.   if(request.getParameter("pageID")==null){
  16.   }else{
  17.   fen.setpages(request.getParameter("pageID"));
  18.   }
  19.   String where = "type='1'";
  20.   String select = fen.getPageinfsql(12,"radio","id","desc",where);
  21.   ResultSet show = sql.getStatement(select);
  22.   %>
  23. <div align="center">
  24. <table cellpadding="0" cellspacing="0" border="1" width="80%">
  25. <%
  26.  while(show.next()){
  27.   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>");
  28.  }
  29.  out.println("</table>");
  30.  out.println("<div>"+fen.controlPage("radiolist.jsp","pageID",8)+"</div>");
  31. %>
  32. </div>
  33. </body>
  34. </html>
  35. <%
  36. show.close();
  37. sql.closeDB();
  38. }catch(Exception e){
  39.   e.printStackTrace();
  40. } %>