📄 addok.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page language="java" import="popten.web.*,popten.util.*" %>
<%@ page errorPage="error.jsp" %>
<%@ include file="chelogin3.jsp"%>
<html>
<head>
<title>资料添加成功</title>
<link rel="stylesheet" type="text/css" href="../style/style.css">
</head>
<body>
<%if(ParamUtils.getString(request,"add","").length()>0){
News.addNews(request);%>
<!--添加成功开始-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<th width="525" class="td5">
<img border="0" src="../img/null.gif" width="2" height="2">系统信息</th>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width=98%>
<tr>
<td width="100%"><b>详细信息:</b><br>□资料[<%=request.getParameter("news_title")%>]添加成功!</td>
</tr>
<tr>
<td width="100%" align="center"><br><br><a href="right.jsp"><img border="0" src="../img/button-back.gif" name="Submit"></a><br></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table>
<!--添加成功结束-->
<%}
else if(ParamUtils.getString(request,"edit","").length()>0){
News.editNews(request);%>
<!--修改成功开始-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<th width="525" class="td5">
<img border="0" src="../img/null.gif" width="2" height="2">系统信息</th>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width=98%>
<tr>
<td width="100%"><b>详细信息:</b><br>□资料[<%=request.getParameter("news_title")%>]修改成功!</td>
</tr>
<tr>
<td width="100%" align="center"><br><br><a href="right.jsp"><img border="0" src="../img/button-back.gif" name="Submit"></a><br></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table>
<!--修改成功结束-->
<%}
else if(request.getParameter("action")!=null && request.getParameter("action").equals("del")){%>
<!--删除开始-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<th width="525" class="td5">
<img border="0" src="../img/null.gif" width="2" height="2">系统信息</th>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width=98%>
<tr>
<td width="100%"><b>详细信息:</b><br>□你确信要删除[<%=request.getParameter("news_title")%>]吗?</td>
</tr>
<tr>
<td width="100%" align="center"><br><br><p><form action="addok.jsp" method="get" name="form1"><input type="hidden" name="news_title" value="<%=request.getParameter("news_title")%>">
<input type="hidden" name="action" value="del1">
<input type="hidden" name="news_id" value="<%=request.getParameter("news_id")%>">
<input type="hidden" name="cata2_id" value="<%=request.getParameter("cata2_id")%>">
<input type="hidden" name="cata1_id" value="<%=request.getParameter("cata1_id")%>">
<input type="hidden" name="cata0_id" value="<%=request.getParameter("cata0_id")%>">
<input border="0" src="../img/button-ok.gif" name="Submit" type="image" class="button">
<img src="../img/button-back.gif" name="Submit" class="button" onclick="javascript:history.go(-1)">
</p>
</form></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table>
<!--删除结束-->
<%}
else if(request.getParameter("action")!=null && request.getParameter("action").equals("del1")){
News.delNews(request);%>
<!--删除成功开始-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<th width="525" class="td5">
<img border="0" src="../img/null.gif" width="2" height="2">系统信息</th>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width=98%>
<tr>
<td width="100%"><b>详细信息:</b><br>□资料[<%=request.getParameter("news_title")%>]删除成功!</td>
</tr>
<tr>
<td width="100%" align="center"><br><br><a href="right.jsp"><img border="0" src="../img/button-back.gif" name="Submit"></a><br></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table>
<!--删除成功结束-->
<%}
else{throw new Exception();}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -