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

📄 soft_manage.jsp

📁 Java 实现代码后台管理功能的 script语言
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file ="../DT_inc/ChkPwd.jsp"%>

<%@include file="../ConnDB.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>文章管理</title>
<link href="Style.css" rel="stylesheet" type="text/css" />

</head>

<body>
<br />
&nbsp; <a href="Soft_Manage.jsp">软件管理</a> |  <a href="Soft_Add.jsp">软件添加</a>
<hr color="#0099FF" size="1" />
<br />

<%
Statement stmt_Soft=conn.createStatement();
String SqlSoft="Select * from tSoft order by fUpdateTime DESC" ;
ResultSet RsSoft =stmt_Soft.executeQuery(SqlSoft);

%>
&nbsp; 文章共计: <span class="word_Red"><%//=RsSoft.RecordCount%></span>篇
<div align="center">
<table width="700" border="0" cellspacing="0" align="center">
	<tr height="20">
		<td height="30">软件名称</td>
		<td>栏目</td>
		<td>时间</td>
		<td width="100">管  理</td>
	</tr>

	<%while (RsSoft.next()) 
	{
	%>
	<tr height="20" onmouseover="this.bgColor='#f0f8ff';" onmouseout="this.bgColor='#FFFFFF';">
		<td><%=RsSoft.getString("fSoftName")%></td>
		<td>
			<%
			Statement stmt_SoftClass=conn.createStatement();
			String SqlSoftClass="Select * from tSoftClass where fClassID=" + RsSoft.getInt("fClassID");
			ResultSet RsSoftClass =stmt_SoftClass.executeQuery(SqlSoftClass);
			
			if(RsSoftClass.next())
			{
				out.print(RsSoftClass.getString("fClassName"));
			}else{
				out.print("<p>暂时没有栏目!!!</p>");
			}
		%>
		</td>
		<td><%=RsSoft.getString("fUpdateTime")%></td>

		<%int SoftID =RsSoft.getInt("fSoftID"); %>
		<td><a href="Soft_Update.jsp?ID=<%=SoftID%>">修改</a>
		|&nbsp; <a href="Soft_DEL.jsp?ID=<%=SoftID%>" onclick="return confirm('删除后将不能恢复,同时将自动删除对应上传软件,你确定删除么?')">删除</a>		</td>
	</tr>

	<%
	}
	%>
</table>
	<%//分页未做 pagination(RsSoft.PageCount,RsSoft.pagesize,page,RsSoft.RecordCount)%>
</div>
<%
RsSoft.close();
stmt_Soft.close();
conn.close();
%>
</body>
</html>

⌨️ 快捷键说明

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