46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@ page import="java.util.*"%>
|
|
<%@ page import="java.io.*"%>
|
|
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
|
|
<%@ page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy" %>
|
|
<%@ include file="/manager_for_cms/include/manager_head.jsp"%>
|
|
<%request.setCharacterEncoding("utf-8");%>
|
|
<%
|
|
String c_home = r_call(request.getParameter("c_home"));
|
|
String c_maker = r_call(request.getParameter("c_maker"));
|
|
String board_no = r_call(request.getParameter("board_no"));
|
|
if(board_no == null || board_no.equals("")){
|
|
%>
|
|
<script>
|
|
alert("Wrong connection.")
|
|
</script>
|
|
<%
|
|
}else{
|
|
int c_relation = 0;
|
|
int c_relation2 = 0;
|
|
String sql_ok2 = "select * from tbl_menu where c_no = " + board_no;
|
|
ResultSet rss = stmt.executeQuery(sql_ok2);
|
|
if(rss.next()){
|
|
c_relation= rss.getInt("c_relation");
|
|
c_relation2= rss.getInt("c_relation2");
|
|
|
|
}
|
|
rss.close();
|
|
String para_t = "c_home=" + c_home + "&c_maker=" + c_maker + "&board_no=" + board_no + "&c_relaton=" + c_relation + "&c_relation2=" + c_relation2;
|
|
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
|
|
String sql_ok = "";
|
|
sql_ok = "update tbl_board set c_use = 1 where c_no = " + c_no;
|
|
stmt2.execute(sql_ok);
|
|
|
|
|
|
%>
|
|
<script>
|
|
alert("Delete OK.");
|
|
location.href="list.jsp?<%=para_t%>";
|
|
</script>
|
|
<%}%>
|
|
<%@ include file="/manager_for_cms/include/manager_bottom.jsp"%>
|
|
|