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

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" import="java.sql.*,java.lang.*" buffer="64kb" %>
  2. <%request.setCharacterEncoding("gbk"); %>
  3. <html>
  4. <head>
  5. <title>
  6. newarticle_do
  7. </title>
  8. </head>
  9. <jsp:useBean id="sql" scope="page" class="control.sqlcontrol" />
  10. <body bgcolor="#ffffff">
  11. <%
  12. sql.getSQL2005conn("dbconfig.xml");
  13. String title = request.getParameter("title");
  14. String usersid = request.getParameter("usersid");
  15. String context = request.getParameter("context");
  16. String depar = request.getParameter("depar");
  17. String date = new java.sql.Date(new java.util.Date().getTime()).toString();
  18. String type = request.getParameter("type");
  19. StringBuffer getselect = new StringBuffer();
  20. getselect.append("insert into radio(");
  21. getselect.append("usersid,");
  22. getselect.append("depar,");
  23. getselect.append("title,");
  24. getselect.append("date,");
  25. getselect.append("context,");
  26. getselect.append("type) values (");
  27. getselect.append("'"+usersid+"','"+depar+"','"+title+"','"+date+"','"+context+"','"+type+"');");
  28. String select = getselect.toString();
  29. sql.MouChoose(select);
  30. sql.closeDB();
  31. %>
  32. <div align="center">
  33. <h3>公告添加完毕,请进行其他操作!</h3><hr>
  34. <a href="newradio.jsp">继续添加</a>
  35. </div>
  36. </body>
  37. </html>