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

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
  2. <%request.setCharacterEncoding("GBK"); %>
  3. <html>
  4. <head>
  5. <title>
  6. 天津市河东区经济贸易委员会内部办公网
  7. </title>
  8. </head>
  9. <body bgcolor="#ffffff">
  10. <h4>
  11. 查看日志修改记录
  12. </h4>
  13. <%
  14. DBConn dbc = new DBConn();
  15. Tool tl = new Tool();
  16. String aid = request.getParameter("id");
  17. String rsql = "select * from records where record = '"+aid+"' and opertype = '多部门编辑文章'";
  18. String[][] rec = dbc.getArray(rsql);
  19. if(rec==null){
  20.   out.print("该文章没有修改记录!");
  21. }else{
  22.   for(int i = 0; i < rec.length; i++){
  23.     String usql = "select username from [user] where id = '"+rec[i][1]+"'";
  24.     String[][] user = dbc.getArray(usql);
  25.     String username = "";
  26.     if(user==null){
  27.       out.print("没有ID为"+rec[i][1]+"的用户!");
  28.     }else{
  29.       username = user[0][0];
  30.     }
  31.     String time = tl.getTime2(rec[i][3]);
  32.     String atsql = "select title from article where id = '"+aid+"' ";
  33.     String[][] at = dbc.getArray(atsql);
  34.     String atil = "";
  35.     if(at == null){
  36.       out.print("没有ID为"+aid+"的文章,该文章可能已经被删除!");
  37.     }else{
  38.       atil = at[0][0];
  39.     }
  40.     out.print("文章 "+atil+" 修改记录如下:<br />");
  41.     out.print("用户 "+username+" 于 "+time+" 对该文章进行修改");
  42.   }
  43. }
  44. %>
  45. </body>
  46. </html>