recordView.jsp~39~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
- <%request.setCharacterEncoding("GBK"); %>
- <html>
- <head>
- <title>
- 天津市河东区经济贸易委员会内部办公网
- </title>
- </head>
- <body bgcolor="#ffffff">
- <h4>
- 查看日志修改记录
- </h4>
- <%
- DBConn dbc = new DBConn();
- Tool tl = new Tool();
- String aid = request.getParameter("id");
- String rsql = "select * from records where record = '"+aid+"' and opertype = '多部门编辑文章'";
- String[][] rec = dbc.getArray(rsql);
- if(rec==null){
- out.print("该文章没有修改记录!");
- }else{
- String atsql = "select title from article where id = '"+aid+"' ";
- String[][] at = dbc.getArray(atsql);
- String atil = "";
- if(at == null){
- out.print("没有ID为"+aid+"的文章,该文章可能已经被删除!");
- }else{
- atil = at[0][0];
- }
- out.print("文章 <a href=''><font color='red'>"+atil+"</font></a> 修改记录如下:<br />");
- for(int i = 0; i < rec.length; i++){
- String usql = "select username from [user] where id = '"+rec[i][1]+"'";
- String[][] user = dbc.getArray(usql);
- String username = "";
- if(user==null){
- out.print("没有ID为"+rec[i][1]+"的用户!");
- }else{
- username = user[0][0];
- }
- String time = tl.getTime3(rec[i][3]);
- out.print("用户 <font color='red'>"+username+"</font> 于 <font color='red'>"+time+"</font> 对该文章进行修改<br />");
- }
- }
- %>
- </body>
- </html>