📄 xpartsdetailadd.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="check.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../oa.css" rel="stylesheet" type="text/css">
</head>
<body class="notice">
<p>
<%
String partid = request.getParameter("id");
String partname = request.getParameter("partname");
String content = request.getParameter("fckeditor");
if(content!=null){
content = content.replaceAll("\"",""");
content = content.replaceAll("'",""");
}
// String partid=(String)session.getAttribute("id");
dbc.getConnection();
//检查是否已经存在
String sql = "update parts set partwholename='"+partname+"',partdetail='"+content+"',user='"+(String)session.getAttribute("user")+"',part='"+(String)session.getAttribute("part")+"',pubtime='"+dateformat.getStringDate()+"' where id='"+partid+"'";
/*
String sql = "select count(*) from institutes where part='"+partid+"' and cid='"+scid+"'";
if(dbc.getCount(sql)<1){
sql = "insert into institutes(name,comment,part,cid) values('"+partname+"','"+content+"','"+partid+"' ,'"+scid+"')";
dbc.update(charset.ISO_2_GBK(sql));
}
else{
;
}
*/
dbc.update(charset.ISO_2_GBK(sql));
dbc.close();
//out.println(charset.ISO_2_GBK(sql));
response.sendRedirect("../partsdetailadd.jsp?t=0");
%>
</p>
<p align="center"><%@include file="../include/foot.jsp" %></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -