newinfo_do.jsp~1~
上传用户: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 isread = "no";
  17. String depar = request.getParameter("depar");
  18. String year = request.getParameter("year");
  19. String month = request.getParameter("month");
  20. String day = request.getParameter("day");
  21. String date = year+"-"+month+"-"+day;
  22. StringBuffer getselect = new StringBuffer();
  23. getselect.append("insert into perinfo(");
  24. getselect.append("usersid,");
  25. getselect.append("depar,");
  26. getselect.append("title,");
  27. getselect.append("date,");
  28. getselect.append("context,");
  29. getselect.append("isread) values (");
  30. getselect.append("'"+usersid+"','"+depar+"','"+title+"','"+date+"','"+context+"','"+isread+"');");
  31. String select = getselect.toString();
  32. sql.MouChoose(select);
  33. sql.closeDB();
  34. %>
  35. <div align="center">
  36. <h3>被忘录添加完毕,请进行其他操作!</h3><hr>
  37. <a href="newinfo.jsp">继续添加</a>
  38. </div>
  39. </body>
  40. </html>