c-innovacion2/resoft/field_manager_new/process/point/ji/delete.jsp

26 lines
722 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"));
String c_home= r_call(request.getParameter("c_home"));
if(c_no.equals("")){
%>
<script>
alert("잘못 된 접속입니다.");
location.href="list.jsp"
</script>
<%
}else{
String sql_ok = "update tbl_point_ji set c_use = 1 where c_no = "+ c_no;
stmt.execute(sql_ok);
%>
<script>
alert("삭제했습니다. ");
location.href="list.jsp?c_home=<%=c_home%>"
</script>
<%
}
%>
<%@include file="/include/db/db_close.jsp"%>