⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modify_new.jsp~7~

📁 一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.
💻 JSP~7~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.New" %>
<%@ page import="com.bwm.core.*" %>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<%
if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;
session.removeAttribute("error");
session.removeAttribute("success");
String action =request.getParameter("action").toString();
String title=ParamUtils.getRequestString(request,"title");
String fromto=ParamUtils.getRequestString(request,"fromto");
String content=ParamUtils.getRequestString(request,"content");
int aid=ParamUtils.getIntParameter(request,"aid");
BasetableFactory bf=BasetableFactory.getInstance();
if(action==null||"".equals(action)){
    return;
}else if("add".equals(action)&&bf.CreateNew(request)){
        response.sendRedirect("manage_new.jsp");
}else if("del".equals(action)&&bf.DeleteAffiche("WHERE aid="+aid)){
        response.sendRedirect("manage_affiche.jsp");
}else if("modify".equals(action)){
     /*   Affiche a=bf.SearchAffiche("WHERE aid="+aid);
        a.setTitle(title);
        a.setContent(content);
        response.sendRedirect("manage_affiche.jsp");*/
}else{
        session.setAttribute("error","在公告信息中操作失败");
        response.sendRedirect("error.jsp");
}
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -