📄 news.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page language="java" import="java.util.*,hymn.web.*,hymn.util.*" %>
<%@ page errorPage="../error.jsp" %>
<%News news=new News();
String news_id=request.getParameter("news_id");
int id=Integer.parseInt(news_id);
News listnews=news.loadnews(id);%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>hymn</title>
<link rel="stylesheet" type="text/css" href="../images/style.css">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="100%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="100%" colspan="3" class="td7" valign="top" align="center">
<img border="0" src="../img/null.gif" width="2" height="2">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<tr>
<td width="100%" align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><font style="font-size:14pt" color="#330000"><%=listnews.getnews_title()%></font></td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" align="center"><hr color="#006600"></td>
</tr>
<tr>
<td width="100%" align="center">作者:<font color=#808080><%=listnews.getnews_author()%></font> 出处:<font color=#808080><%=listnews.getnews_writefrom()%></font> 日期:<font color=#808080><%=listnews.getnews_pdate()%></font> 阅读数:<font color=#808080><%=listnews.getnews_hit()%></font></td>
</tr>
<tr>
<td width="100%"><p><%=listnews.getnews_content()%></p><br></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="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>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -