?? supertype_del_deal.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%@ page import="com.wgh.DB.connDB"%>
<jsp:include page="safe.jsp"/>
<%
connDB conn=new connDB();
String ID[]=request.getParameterValues("delid");
String superTypeID="";
if (ID.length>0){
for(int i=0;i<ID.length;i++){
superTypeID=superTypeID+ID[i]+",";
}
superTypeID=superTypeID.substring(0,superTypeID.length()-1);
int ret=-1;
String sql="Delete From tb_superType Where ID in("+superTypeID+")";
ret=conn.executeUpdate(sql);
if(ret==0){
out.println("<script lanuage='javascript'>alert('該分類已經包括子分類信息,請先刪除小分類信息后,再將其刪除!');window.location.href='superType.jsp';</script>");
}else{
out.println("<script lanuage='javascript'>alert('大分類信息刪除成功!');window.location.href='superType.jsp';</script>");
}
}else{
out.println("<script lanuage='javascript'>alert('您的操作有誤!');window.location.href='superType.jsp';</script>");
}
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -