c-innovacion2/resoft/manager_for_cms/process/manager/delete.jsp

25 lines
627 B
Plaintext

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/include/db/db_connect.jsp"%>
<%@include file="/include/function/function.jsp"%>
<%request.setCharacterEncoding("utf-8");%>
<%
String c_no = r_call(request.getParameter("c_no"));
if(c_no.equals("")){
%>
<script>
alert("Wrong Connection.");
location.href="list.jsp"
</script>
<%
}else{
String sql_ok = "update tbl_manager set c_use = 1 where c_no = "+ c_no;
stmt.execute(sql_ok);
%>
<script>
alert("Delete OK. ");
location.href="list.jsp"
</script>
<%
}
%>
<%@include file="/include/db/db_close.jsp"%>