viewinfo_do.jsp~4~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:2k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="java.sql.*,java.lang.*" %>
- <%request.setCharacterEncoding("gbk"); %>
- <jsp:useBean id="sql" scope="page" class="control.sqlcontrol" />
- <html>
- <head>
- <title>
- viewinfo_do
- </title>
- </head>
- <body bgcolor="#ffffff">
- <div align="center">
- <%try{
- sql.getSQL2005conn("dbconfig.xml");
- //部门名:
- String ud = "财政部门";//(String)session.getAttribute("UD");
- //部门ID:
- String udid = "8";//(String)session.getAttribute("UDID");
- //用户名:
- String un = "mation";//(String)session.getAttribute("UN");
- //用户ID:
- String uid = "28";//(String)session.getAttribute("UID");
- //权限:
- String pp = "all";//(String)session.getAttribute("POPE");
- //LOGIN:
- String login = "OK";//(String)session.getAttribute("LOGIN");
- if(login!=null&&login.equals("OK")){
- }else{
- response.sendRedirect("userlogin.jsp");
- }
- String id = request.getParameter("id");
- ResultSet bs = sql.getStatement("select * from perinfo where id="+id+";");
- bs.next();
- %>
- <table cellpadding="0" cellspacing="0" border="1" width="80%">
- <tr>
- <td align="center" height="30px" width="80%"><strong><%=bs.getString("title")%></strong>
- <br>记录于:<%=bs.getString("date")%></td>
- </tr>
- <tr>
- <td height="18px" align="left">
- <a href="finishinfo.jsp?id=<%=id%>">[完结]</a>
- <a href="deleteinfo.jsp?id=<%=id%>">[删除]</a></td>
- </tr>
- <tr>
- <td> <%=bs.getString("context")%></td>
- </tr>
- </table>
- </div>
- <%bs.close();
- sql.closeDB();
- }catch(Exception ex){
- }
- %>
- </body>
- </html>