📄 index.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<!--
┌─ 深度学习之网址导航系统(jsp) ─────── www.ITstudy.cn ────┐
│
│ 感谢你使用 深度学习之网址导航系统
│ 本代码完全公开和免费,你可以任意复制、传播、修改和使用,
│ 但不得公开发表代码 不得用做商业用途,不得向其他使用者收费。
│
│ 使用时,请保留此段信息,谢谢配合
│
│ 作者:吕海鹏 2007/4/8
│
└────────────────── www.DeepTeach.com ───┘
-->
<%@include file="ConnDB.jsp"%>
<%
//网站配置
//创建语句对象
Statement stmt_SiteConfig=conn.createStatement();
String sql_SiteConfig = "select * from tSiteConfig";
ResultSet RsSiteConfig = stmt_SiteConfig.executeQuery(sql_SiteConfig);
RsSiteConfig.next();
%>
<!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 http-equiv="Content-Type" content="text/html; charset=GBK" />
<link href="style/Style.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<title>深度学习网址导航系统(jsp)</title>
</head>
<body>
<%@include file="top.jsp"%>
<div align="center">
<iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="468" height="40" src="http://unstat.baidu.com/bdun.bsc?tn=advert&cv=1&cid=136707&csid=107&rkcs=4&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=0&tbsz=&tbst=&bdas=0"></iframe>
<br />
</div>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<%
Statement stmt_WebDirClass=conn.createStatement();
String sql_WebDirClass="select * from tDT_WebDirClass order by fOrderID";
ResultSet Rs_WebDirClass=stmt_WebDirClass.executeQuery(sql_WebDirClass);
while(Rs_WebDirClass.next())
{
String ClassName=Rs_WebDirClass.getString("fClassName");
%>
<tr>
<td> <%=ClassName%>:</td>
<%
Statement stmt_WebDirContent=conn.createStatement();
String sql_WebDirContent="select top 5 * from tDT_WebDirContent where fClassName='"+ClassName+"' order by fOrderID";
ResultSet rs_WebDirContent=stmt_WebDirContent.executeQuery(sql_WebDirContent);
int i=1;
while(rs_WebDirContent.next()&& i<=5)
{
%>
<td><a href="<%=rs_WebDirContent.getString("fUrl")%>" target="_blank"><%=rs_WebDirContent.getString("fTitle")%></a></td>
<%
i++;
}
rs_WebDirContent.close();
stmt_WebDirContent.close();
%>
</tr>
<%
}
Rs_WebDirClass.close();
stmt_WebDirClass.close();
%>
</table>
<%@include file="bottom.jsp"%>
</body>
</html>
<%
RsSiteConfig.close(); //关闭记录集对象
stmt_SiteConfig.close(); //关闭语句对象
//*********** 数据库关闭代码 ************
conn.close(); //关闭连接对象
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -