modify_affiche.jsp~64~

来自「一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.」· JSP~64~ 代码 · 共 27 行

JSP~64~
27
字号
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.Affiche" %>
<%@ 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();
int aid=ParamUtils.getIntParameter(request,"aid");
BasetableFactory bf=BasetableFactory.getInstance();
if(action==null||"".equals(action)){
    return;
}else if("add".equals(action)&&bf.CreateAffiche(request)){
        response.sendRedirect("manage_affiche.jsp");
}else if("del".equals(action)&&bf.DeleteAffiche("WHERE aid="+aid)){
        response.sendRedirect("manage_affiche.jsp");
}else if("modify".equals(action)){
        String title=ParamUtils.getRequestString(request,"aid");
        session.setAttribute("error","在公告信息中操作失败");
        response.sendRedirect("error.jsp");
}else{
        session.setAttribute("error","在公告信息中操作失败");
        response.sendRedirect("error.jsp");
}
%>

⌨️ 快捷键说明

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