changeradiolist.jsp~30~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:2k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="java.sql.*,java.lang.*,offiecol.mc.tools.*" %>
- <%request.setCharacterEncoding("gbk");%>
- <jsp:useBean id="sql" scope="page" class="control.sqlcontrol"></jsp:useBean>
- <jsp:useBean id="fen" scope="page" class="control.Textcontrol.Pagecontrol"></jsp:useBean>
- <html>
- <head>
- <title>
- articlelist
- </title>
- </head>
- <body bgcolor="#ffffff">
- <%
- try{
- String ud = (String)session.getAttribute("UD");
- String udid = (String)session.getAttribute("UDID");
- String un = (String)session.getAttribute("UN");
- String uid = (String)session.getAttribute("UID");
- String pp = (String)session.getAttribute("POPE");
- String login = (String)session.getAttribute("LOGIN");
- if(login.equals("OK")){
- Connection conn=sql.getSQL2005conn("dbconfig.xml");
- if(request.getParameter("pageID")==null){
- }else{
- fen.setpages(request.getParameter("pageID"));
- }
- if(pp.equals("com")){//普通权限
- out.print("你没有权限查看这个页面!");
- }else{
- String where = "";
- if(pp.equals("dep")){//部门权限
- where ="type='0'";
- }else if(pp.equals("all")){//全局权限
- where ="";
- }
- String select = fen.getPageinfsql(12,"radio","id","desc",where);
- ResultSet show = sql.getStatement(select);
- %>
- <div align="center">
- <table width="90%" border="1">
- <tr>
- <td>公告名称</td>
- <td>公告部门</td>
- <td>公告日期</td>
- <td>公告类型</td>
- <td>修改公告</td>
- <td>删除公告</td>
- </tr>
- <%
- while(show.next()){
- %>
- <tr>
- <td><%=show.getString("title") %></td>
- <td><%=show.getString("depar") %></td>
- <td><%=show.getString("date") %></td>
- <td><%=show.getString("type").equals("1")?"全局公告":"部门内公告" %></td>
- <td><a href=changeradio.jsp?id=<%=show.getString("id")%> target="_blank" >修改此公告</a></td>
- <td><a href=deleteradio.jsp?deleteid=<%=show.getString("id")%> >删除记录</a></td>
- </tr>
- <%
- }
- %>
- </table>
- <%
- out.println("<div>"+fen.controlPage("changeradiolist.jsp","pageID",8)+"</div>");
- %>
- </div>
- </body>
- </html>
- <%
- show.close();
- sql.closeDB();
- }
- }else{
- out.print("请登录!");
- %>
- <br /><a href="userlogin.jsp" target="mainFrame">用户登录</a>
- <%
- }
- }catch(Exception e){
- e.printStackTrace();
- } %>