📄 bulletindel.jsp
字号:
<%--
模块名称:公告管理
模块功能:公告删除
版 本:V1.0
著 作 人:蔡静
著作日期:2001-11-12
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出处:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.*" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
Security auth = new Security();
String employee_id = (String)session.getAttribute("employee_id");
if(employee_id == null || employee_id.equals(""))
{
response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
}
String modelid = "Bbs020";
int authflag = auth.popedom(employee_id, modelid);
if(authflag == 0 || authflag == 2 || authflag == -1)
{
%>
<jsp:forward page="../inc/noauth.jsp" >
</jsp:forward>
<%
}
%>
<html>
<head>
<title>公告删除</title>
</head>
<body>
<%
String sql;
String bulletin_ids = request.getParameter("bulletin_ids");
ExtendString es = new ExtendString();
String[] bulletin_id = new String[10];
bulletin_id = es.Split(",",bulletin_ids);
for (int i=0; i<es.length; i++) {
sql = "delete from t_bulletin where bulletin_id='" + bulletin_id[i] + "'";
db.executeUpdate(sql);
}
%>
<script language="javascript">
alert("删除成功!");
location = "BulletinManage.jsp";
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -