<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%> <%@page import="util.Info"%> <%@page import="dao.CommDAO"%> <%@page import="util.PageManager"%> <% if((String)request.getSession().getAttribute("username")==null || (String)request.getSession().getAttribute("username")=="") { out.print(""); out.close(); } %> dx <% String lb="系统简介"; if("1".equals(request.getParameter("lb"))){ lb="系统简介"; }else if("2".equals(request.getParameter("lb"))){ lb="关于我们"; }else if("3".equals(request.getParameter("lb"))){ lb="联系方式"; } %> 编辑<%=lb%>:

<% String url="dx.jsp?lb="+lb; HashMap ext = new HashMap(); new CommDAO().update(request,response,"dx",ext,true,false,""); String sql="select * from dx where leibie='"+lb+"'"; ArrayList list = PageManager.getPages(url,20,sql, request ); int i=0; for(HashMap map:list){ i++; } if(i==0) { sql="insert into dx(leibie,content) values('"+lb+"','"+lb+"')"; new CommDAO().commOper(sql); out.print(""); } else { HashMap m = new CommDAO().getmaps("leibie",lb,"dx"); %>
&lb=<%=lb%>" method="post" name="f1" >
内容: ">
 
<% } %>