📄 alarmdel.jsp
字号:
<%--
模块名称:个人助理
模块功能:提醒删除
版 本:V1.0
著 作 人:蔡静
著作日期:2001-11-12
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:2001-12-30
修 改 人:Celts
修改理由:刷新问题
修改出处:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ 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 = "Per010";
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 flag = request.getParameter("flag");
String location = "";
if (flag.equals("1"))
location = "Alarm1.jsp";
else
location = "Alarm1all.jsp";
String alert_ids = request.getParameter("alert_ids");
ExtendString es = new ExtendString();
String[] alert_id = new String[10];
alert_id = es.Split(",",alert_ids);
for (int i=0; i<es.length; i++) {
sql = "delete from t_alerted where alert_id = '" + alert_id[i] + "'";
db.executeUpdate(sql);
sql = "delete from t_alert where alert_id = '" + alert_id[i] + "'";
db.executeUpdate(sql);
}
response.sendRedirect(location);
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -