infolist.jsp
资源名称: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>
- changeinfo
- </title>
- </head>
- <body bgcolor="#ffffff">
- <div align="center">
- <%
- try{
- sql.getSQL2005conn("dbconfig.xml");
- //部门名:
- String ud = (String)session.getAttribute("UD");
- //部门ID:
- String udid =(String)session.getAttribute("UDID");
- //用户名:
- String un = (String)session.getAttribute("UN");
- //用户ID:
- String uid = (String)session.getAttribute("UID");
- //权限:
- String pp = (String)session.getAttribute("POPE");
- //LOGIN:
- String login = (String)session.getAttribute("LOGIN");
- if(login!=null&&login.equals("OK")){
- %><br />
- <h4>管理备忘</h4>
- <%
- ResultSet bs = sql.getStatement("select * from perinfo where usersid='"+uid+"' order by date desc;");
- out.println("<table cellpadding='0' cellspacing='0' border='1' width='90%'>");
- while(bs.next()){
- if(bs.getString("isread").equals("no")){
- out.println("<tr><td height='25px'><font color='#ff0000'>[待办]</font></td><td>"+bs.getString("title")+"</td><td>"+bs.getString("date")+"</td><td><a href=changeinfo.jsp?id="+bs.getString("id")+" >修改备忘信息</td><td><a href=deleteinfo.jsp?id="+bs.getString("id")+" >删除记录</td></tr>");
- }else{
- out.println("<tr><td height='25px'><font color='#00ff00'>[完结]</font></td><td>"+bs.getString("title")+"</td><td>"+bs.getString("date")+"</td><td><a href=changeinfo.jsp?id="+bs.getString("id")+" >修改备忘信息</td><td><a href=deleteinfo.jsp?id="+bs.getString("id")+" >删除记录</td></tr>");
- }
- }
- out.println("</table>");
- bs.close();
- sql.closeDB();
- }else{
- response.sendRedirect("userlogin.jsp");
- }
- }catch(Exception ex){
- ex.printStackTrace();
- }
- %>
- </div>
- </body>
- </html>