26 lines
1.0 KiB
Plaintext
26 lines
1.0 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_name = r_call(request.getParameter("c_name"));
|
|
String c_survey_no = r_call(request.getParameter("c_survey_no"));
|
|
String c_content = r_call2(request.getParameter("c_content"));
|
|
|
|
String sql_ok = "";
|
|
sql_ok = "insert into tbl_survey_project (c_home,c_maker,c_project_no, c_name,c_survey_no,c_content,c_now,c_use,c_date) values(";
|
|
sql_ok = sql_ok + c_home + ",0,"+ c_project_no +",'" + c_name + "',"+ c_survey_no +",'"+ c_content +"',0,0,now())";
|
|
stmt2.execute(sql_ok);
|
|
%>
|
|
<script>
|
|
alert("Insert OK");
|
|
parent.location.href="list.jsp?c_home=<%=c_home%>&c_project_no=<%=c_project_no%>"
|
|
</script>
|
|
<%
|
|
|
|
%>
|
|
<%@include file="/include/db/db_close.jsp"%> |