⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 policysave.jsp

📁 JSP+ORACLE网站开发实例(下).rar
💻 JSP
字号:
 <%@ include file="admintop.jsp"%>
<%@ include file="isadmin.jsp"%>
<% String pytitle=request.getParameter("pytitle");
String pybody=request.getParameter("pybody");
String filename=request.getParameter("filename");

if(!pytitle.equals("")&&!pybody.equals("")&&!filename.equals("")){

 stmt.executeUpdate("INSERT INTO scott.policy(id,pytitle,pybody,pyimg) VALUES(scott.id.nextval,'"+pytitle+"','"+pybody+"','"+filename+"')");   
}else{
out.print("<script language='javascript'>window.confirm('对不起,所有选项都为必填!!');</script>");
		out.print("<script language='javascript'>parent.window.history.go(-1);</script>");
}

%>
<div align="center">
  <table width="400" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#F0F0F0">
    <tr>
      <td height="36" bgcolor="#B1E1F3"> 
        <div align="center"><strong>添加成功</strong></div></td>
  </tr>
  <tr>
    <td><div align="center">上传文件时一定要把所在填定的内容填写详细,以免发生不必要的错误</div></td>
  </tr>
  <tr>
    <td><div align="center"><a href="javascript:window.close()">【关闭窗口】</a></div></td>
  </tr>
</table>
</div>
<%@ include file="adminfoot.jsp"%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -