36 lines
1.5 KiB
Plaintext
36 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="/include/db/db_connect.jsp"%>
|
|
<%@include file="/include/function/function.jsp"%>
|
|
<%request.setCharacterEncoding("utf-8");%>
|
|
<%
|
|
String show_no = r_call(request.getParameter("show_no"));
|
|
String check_no = r_call(request.getParameter("check_no"));
|
|
String c_relation = r_call(request.getParameter("c_relation"));
|
|
String c_relation2 = r_call(request.getParameter("c_relation2"));
|
|
String c_home = r_call(request.getParameter("c_home"));
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
String c_name = r_call(request.getParameter("c_name"));
|
|
String c_target = r_call(request.getParameter("c_target"));
|
|
String c_exp = r_call(request.getParameter("c_exp"));
|
|
|
|
|
|
String sql_in = "update tbl_community set ";
|
|
sql_in = sql_in + " c_name = '" + c_name + "' ";
|
|
sql_in = sql_in + ", c_target = '" + c_target + "' ";
|
|
sql_in = sql_in + ", c_exp = '" + c_exp + "' ";
|
|
sql_in = sql_in + " where c_no = " + c_no + " and c_member_no = " + session.getAttribute("member_no") ;
|
|
stmt2.execute(sql_in);
|
|
|
|
|
|
%>
|
|
<script>
|
|
alert("Edit Community OK.")
|
|
parent.location.href="edit.jsp?show_no=<%=show_no%>&check_no=<%=check_no%>&c_relation=<%=c_relation%>&c_relation2=<%=c_relation2%>&c_no=<%=c_no%>";
|
|
</script>
|
|
|
|
<%@include file="/include/db/db_close.jsp"%>
|