📄 modify_affiche.jsp~84~
字号:
<%@ 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)){
Affiche a=bf.SearchAffiche("WHERE aid="+aid);
a.setTitle(ParamUtils.getRequestString(request,"title"));
a.setContent(ParamUtils.getRequestString(request,"content"));
response.sendRedirect("manage_affiche.jsp");
}else{
session.setAttribute("error","在公告信息中操作失败");
response.sendRedirect("error.jsp");
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -