35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
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_name = r_call(request.getParameter("c_name"));
|
|
String c_home = r_call(request.getParameter("c_home"));
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
String c_ji_no = r_call(request.getParameter("c_ji_no"));
|
|
String c_up_no = r_call(request.getParameter("c_up_no"));
|
|
String c_exp = r_call(request.getParameter("c_exp"));
|
|
String c_point = r_call(request.getParameter("c_point"));
|
|
|
|
|
|
String sql_ok = "";
|
|
sql_ok = "update tbl_point_ji_detail set ";
|
|
sql_ok = sql_ok + " c_title = '" + c_name + "' ";
|
|
|
|
if(!c_up_no.equals("0")){
|
|
sql_ok = sql_ok + ", c_exp = '" + c_exp + "' ";
|
|
sql_ok = sql_ok + ", c_point = " + c_point + " ";
|
|
}
|
|
sql_ok = sql_ok + " where c_no = " + c_no;
|
|
|
|
stmt2.execute(sql_ok);
|
|
%>
|
|
<script>
|
|
alert("Edit OK");
|
|
parent.location.href="list.jsp?c_home=<%=c_home%>&c_ji_no=<%=c_ji_no%>"
|
|
</script>
|
|
<%
|
|
|
|
%>
|
|
<%@include file="/include/db/db_close.jsp"%> |