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

📄 friendsite_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="FriendSite_Manage.jsp">友情链接管理</a> |  <a href="FriendSite_Add.jsp">添加友情链接</a>
<hr color="#0099FF" size="1" />

<%
Statement stmt_FriendSite=conn.createStatement();
String Sql_FriendSite="Select * from tFriendSite" ;
ResultSet RsFriendSiteManage =stmt_FriendSite.executeQuery(Sql_FriendSite);

%>
<div align="center">
<table width="600" border="0" cellspacing="1" bgcolor="#CCCCCC">
	<tr height="20" bgcolor="#FFFFFF">
		<td width="100" >站点名称</td>
		<td width="100" >友情链接类型</td>
		<td width="100" >是否审核</td>
		<td >站点LOGO</td>
		<td width="100" >管  理</td>
	</tr>

	<%while (RsFriendSiteManage.next())
	{
		String LogoUrl=RsFriendSiteManage.getString("fLogoUrl");
		int ID = RsFriendSiteManage.getInt("fID");

	%>
	<tr bgcolor="#FFFFFF" onmouseover="this.bgColor='#f0f8ff';" onmouseout="this.bgColor='#FFFFFF';">
		<td ><a href="<%=RsFriendSiteManage.getString("fSiteUrl")%>" target="_blank" title="站点简介:<%=RsFriendSiteManage.getString("fSiteIntro")%>&nbsp;
站点URL:<%=RsFriendSiteManage.getString("fSiteUrl")%>"><%=RsFriendSiteManage.getString("fSiteName")%></a></td>
		<td ><%if (RsFriendSiteManage.getInt("fLinkType")==0) { out.print("文字连接");} else{ out.print("图片连接");}%></td>
		<td ><%if (RsFriendSiteManage.getString("fIsOK").equals("1") ) {out.print("审核");} else {out.print("未审核");} %></td>
		<td ><%if (LogoUrl!=null ){%><img src="<%=LogoUrl%>" width="88" height="31" /><%}%></td>
		<td ><a href="FriendSite_Update.jsp?ID=<%=ID%>">修改</a> | <a href="FriendSite_DEL.jsp?ID=<%=ID%>" onclick="return confirm('删除后将不能恢复,你确定删除么?')">删除</a></td>
	</tr>
	<%
	}
	%>
</table>
</div>
<%
RsFriendSiteManage.close();
stmt_FriendSite.close();
conn.close();
%>

</body>
</html>

⌨️ 快捷键说明

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