26 lines
836 B
Plaintext
26 lines
836 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_project_no = r_call(request.getParameter("c_project_no"));
|
|
String c_mode = r_call(request.getParameter("c_mode"));
|
|
String c_value = r_call(request.getParameter("c_value"));
|
|
if(c_project_no.equals("")){
|
|
%>
|
|
<script>
|
|
alert("Wrong Connection.");
|
|
location.href="../list.jsp"
|
|
</script>
|
|
<%
|
|
}else{
|
|
String sql_ok = "update tbl_project_plan set "+ c_mode +" = "+ c_value +" where c_relation=0 and c_project_no = "+ c_project_no;
|
|
stmt.execute(sql_ok);
|
|
%>
|
|
<script>
|
|
location.href="list.jsp?c_project_no=<%=c_project_no%>"
|
|
</script>
|
|
<%
|
|
}
|
|
%>
|
|
<%@include file="/include/db/db_close.jsp"%> |