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

📄 info_new.jsp~5~

📁 一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.
💻 JSP~5~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.New" %>
<%@ page import="com.bwm.core.*" %>
<%@ page import="java.util.*" %>
<html>
<head>
<title>
info_new
</title>
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<body bgcolor="#ffffff">
<table border="1" align="center" cellpadding="0" cellspacing="0" class="tableBorder3">
  <tr align="center">
    <td colspan="2" class="TableTitle1" >新闻详细信息</td>
  </tr>
  <%
BasetableFactory bf=BasetableFactory.getInstance();
String nid=ParamUtils.getRequestString(request,"nid");
New n=bf.SearchNew("WHERE nid='"+nid+"'");
if(n!=null&&n.getAid()>0){
 %>
  <tr align="center">
    <td width="20%">新闻标题</td>
    <td width="60%" align="left">&nbsp;<%=n.getTitle()%> </td>
  </tr>
  <tr align="center">
    <td height="100">新闻内容</td>
    <td align="left" valign="top">&nbsp;&nbsp;&nbsp;<%=n.getContent()%> </td>
  </tr>
  <tr align="center">
    <td height="4">摘自</td>
    <td height="4" align="left">&nbsp;<%=n.getAtime()%></td>
  </tr>
  <tr align="center">
    <td height="3">发布人</td>
    <td height="3" align="left">&nbsp;<%=bf.SearchUser("WHERE uid='"+n.getUid()+"'").getName()%></td>
  </tr>
  <tr align="center">
    <td height="7">发布时间</td>
    <td height="7" align="left">&nbsp;<%=n.getAtime()%></td>
  </tr>
<%}%>
</table>
</body>
</html>

⌨️ 快捷键说明

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