【JSP开源代码栏目提醒】:网学会员--在 JSP开源代码编辑为广大网友搜集整理了:AddNewsBoardok.jsp绩等信息,祝愿广大网友取得需要的信息,参考学习。
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ page import="com.stuhouse.qqNews.*"%>
<%@ page import="com.stuhouse.qqNews.sql.*"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="com.util.*"%>
<%@ page import="java.text.*"%>
<!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">
<link rel="stylesheet" href="admin.css" type="text/css">
<title>无标题文档</title>
</head>
<style type="text/css">
<!--
body {
background-color:#6699CC;
vertical-align:top
}
td {
color:#FFFFFF;
line-height:20px;
letter-spacing:3px;
font-family:"宋体";
}
.TopHeader{
background-color:#FFCC33;
text-align:center
}
-->
</style>
<script language="javascript">
<!--
-->
</script>
<%
String BoardName = ParameterUtils.getString(request,"BoardName");
String Introduce = ParameterUtils.getString(request,"Introduce");
%>
<body>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC">
<tr class="TopHeader">
<td width="10%"><a href="AddBoard.jsp">添加产品分类</a></td>
<td width="10%"><a href="AddProductInfo.jsp">产品发布</a></td>
<td width="10%"><a href="EditProductInfo.jsp">修改产品信息</a></td>
<td width="10%"><a href="AddNewsBoard.jsp">添加新闻分类</a></td>
<td width="10%"><a href="PublishNews.jsp">新闻发布</a></td>
<td width="10%"><a href="PublishPhotoNews.jsp">发布图片新闻</a></td>
<td width="10%"><a href="NewsManagement.jsp">新闻管理</a></td>
<td width="10%"><a href="PicManagement.jsp">图片管理</a></td>
<td width="10%"><a href="CheckOrderList.jsp">查看订单</a></td>
<td width="10%"><a href="SeeUserInfo.jsp">查看注册用户</a></td>
</tr>
</table>
<br>
<hr width="95%" color="#CCCCCC" size="1px">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<%
Factory factory = Factory.getInstance();
NewsBoard newsboard = factory.getNewsBoard();
NewsBoardFactory newsboardfactory = factory.getNewsBoardFactory();
newsboard.setName(BoardName);
newsboard.setIntroduce(Introduce);
if(newsboardfactory.Add(newsboard)==1)
out.println("<div align='center'><font color='red' size=4>添加成功</font></div>");
//response.sendRedirect("AddBoard.jsp");
else
out.println("<div align='center'><font color='red' size=4>添加失败</font></div>");
%>
</td>
</tr>
<tr>
<td align="center" height="40"><a href="AddNewsBoard.jsp">继续添加</a></td>
</tr>
</table>
</body>
</html>