c-innovacion2/resoft/field_manager/process/point/project/edit_ok.jsp

28 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_home = r_call(request.getParameter("c_home"));
String c_project_no = r_call(request.getParameter("c_project_no"));
String c_no = r_call(request.getParameter("c_no"));
String c_name = r_call(request.getParameter("c_name"));
String c_ji_no = r_call(request.getParameter("c_ji_no"));
String c_part = r_call(request.getParameter("c_part"));
String c_content = r_call2(request.getParameter("c_content"));
String sql_ok = "";
sql_ok = "update tbl_point_project set c_name='"+ c_name +"',c_ji_no="+ c_ji_no +",c_part="+ c_part +",c_content='"+ c_content +"' ";
sql_ok = sql_ok + " where c_now = 0 and c_use = 0 and c_no = " + c_no;
stmt2.execute(sql_ok);
%>
<script>
alert("Edit OK");
parent.location.href="list.jsp?c_home=<%=c_home%>&c_project_no=<%=c_project_no%>"
</script>
<%
%>
<%@include file="/include/db/db_close.jsp"%>