📄 channelcontent.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*"%>
<!--
┌─ 深度学习之IT学习网 ─────── www.ITstudy.cn ────┐
│
│ 感谢你使用 深度学习之IT学习网
│ 本代码完全公开和免费,你可以任意复制、传播、修改和使用,
│ 但不得公开发表代码 不得用做商业用途,不得向其他使用者收费。
│
│ 使用时,请保留此段信息,谢谢配合
│
│ 作者:吕海鹏 2006/6/18
│
└────────────────── www.DeepTeach.com ───┘
-->
<!--#include file="DT_Inc/SQL_injection.jsp"-->
<%@include file="ConnDB.jsp"%>
<!--#include file="DT_Inc/Function.jsp"-->
<!--#include file = "DT_Inc/Editor/Include/DeCode.asp"-->
<%
//网站配置
//创建语句对象
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql = "select * from tSiteConfig";
ResultSet RsSiteConfig = stmt.executeQuery(sql);
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=gb2312" />
<meta name="keywords" content="<%=RsSiteConfig.getString("fMetaKeywords")%>" />
<meta name="description" content="<%=RsSiteConfig.getString("fMetaDescription")%>" />
<title><%=RsSiteConfig.getString("fSiteTitle")%></title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%@include file="index_Top.jsp"%>
<table width="995" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="230" valign="top"><br />
<%@include file="Announce.jsp"%>
<br />
<table width="220" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FF0000">
<tr>
<td height="36" valign="middle" background="images/index-left2-1.gif" bgcolor="#FFFFFF"><div align="center" class="glow_white">论坛登录入口</div></td>
</tr>
<tr>
<td height="120" align="center" valign="middle" bgcolor="#FFFFFF">
<!--论坛入口 开始-->
<br />
<div align="center">
<form action="http://www.deepteach.com/Forum/login.asp?action=chk" method="post">
用户姓名:<input tyep="text" name="username" size="12" /><br />
用户密码:<input type="password" name="password" size="12" /><br />
验证码:<input type="text" name="codestr" size="4" /><img src="http://www.deepteach.com/Forum/DV_getcode.asp" height="18" alt="验证码,看不清楚?请点击刷新验证码" style="cursor : pointer;" onClick="this.src='http://www.deepteach.com/Forum/DV_getcode.asp'" /><br />
Cookie: <select name="CookieDate">
<option value="0" selected="selected">不保存</option>
<option value="1">保存一天</option>
<option value="2">保存一月</option>
<option value="3">保存一年</option>
</select>
<br />
<input type="submit" name="submit" value="登录" />
<input name="button" type="button" onclick=window.open("http://www.deepteach.com/Forum/reg.asp") value="注册" />
<input name="button" type="button" onclick=window.open("http://www.deepteach.com/Forum/index.asp") value="游客进入" />
</form>
</div>
<!--论坛入口 结束--> </td>
</tr>
</table>
<br />
<table width="220" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FF0000">
<tr>
<td height="36" valign="middle" background="images/index-left2-1.gif" bgcolor="#FFFFFF"><div align="center" class="glow_white">论坛新贴</div></td>
</tr>
<tr>
<td height="100" bgcolor="#FFFFFF">
<table width="95%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<script src="http://www.deepteach.com/Forum/Dv_News.asp?GetName=deepteach"></script>
</td>
</tr>
</table></td>
</tr>
</table>
<br />
<!--本站统计-->
<%@include file="Statistic.jsp"%>
<br />
<table width="220" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FF0000">
<tr>
<td height="36" valign="middle" background="images/index-left2-1.gif" bgcolor="#FFFFFF"><div align="center" class="glow_white">友情链接</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<%@include file="FriendSite.jsp"%>
</td>
</tr>
</table>
<p> </p></td>
<td valign="top">
<!---------------->
<%
String ID=request.getParameter("ID");
//文章内容
//创建语句对象
Statement stmtChannel=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String SqlChannel="Select * from tChannel where fChannelID=" + ID ;
ResultSet RsChannel = stmtChannel.executeQuery(SqlChannel);
RsChannel.next();
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><br />
<td height="21" background="images/t-2-bg2.gif" class="word_White"><img src="images/t-2-2.gif" width="23" height="21" align="absmiddle" /><%=RsChannel.getString("fContentTittle")%></td>
</tr>
<tr bgcolor="#FAFAFA">
<td height="100"><br />
<table width="95%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=RsChannel.getString("fContent")%>
<br />
<!--------------------->
</td>
</tr>
</table></td></tr>
</table>
<%
RsChannel.close();//关闭记录集对象
stmtChannel.close(); //关闭语句对象
%>
</td>
</tr>
</table>
<%@include file="index_Bottom.jsp"%>
</body>
</html>
<%
RsSiteConfig.close(); //关闭记录集对象
stmt.close(); //关闭语句对象
//*********** 数据库关闭代码 ************
conn.close(); //关闭连接对象
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -