newradio_do.jsp
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="java.sql.*,java.lang.*" buffer="64kb" %>
- <%request.setCharacterEncoding("gbk"); %>
- <html>
- <head>
- <title>
- newarticle_do
- </title>
- </head>
- <jsp:useBean id="sql" scope="page" class="control.sqlcontrol" />
- <body bgcolor="#ffffff">
- <%
- sql.getSQL2005conn("dbconfig.xml");
- String title = request.getParameter("title");
- String usersid = request.getParameter("usersid");
- String context = request.getParameter("context");
- String depar = request.getParameter("depar");
- String date = new java.sql.Date(new java.util.Date().getTime()).toString();
- String type = request.getParameter("type");
- StringBuffer getselect = new StringBuffer();
- getselect.append("insert into radio(");
- getselect.append("usersid,");
- getselect.append("depar,");
- getselect.append("title,");
- getselect.append("date,");
- getselect.append("context,");
- getselect.append("type) values (");
- getselect.append("'"+usersid+"','"+depar+"','"+title+"','"+date+"','"+context+"','"+type+"');");
- String select = getselect.toString();
- sql.MouChoose(select);
- sql.closeDB();
- %>
- <div align="center">
- <h3>公告添加完毕,请进行其他操作!</h3><hr>
- <a href="newradio.jsp">继续添加</a>
- </div>
- </body>
- </html>