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

📄 news.jsp

📁 免费java毕业设计论文:jva网络购物.JspShop网络购物系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java" import="java.sql.*,java.util.*" errorPage="" %>
<html>
<%@ include file="top.jsp"%>

<link href="css.css" rel="stylesheet" type="text/css">

        <div align="center">
          <center>
        
    <table width="760" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" >
      <!--DWLayoutTable-->
      <%
	  String str=request.getParameter("news_id");
	  if(str==""){str="1";}
	  int news_id=Cint(str);
      sql="select * from news where news_id="+news_id;
      rs=mdb.executeQuery(sql);
      if (rs.next())
      {%>
      <tr> 
        <td width="760"  height="25" valign="top" ><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <!--DWLayoutTable-->
            <tr> 
              <td width="760"  height="25" valign="top" ><div align="center"><A href="allnews.asp">新闻中心</A>>><%=rs.getString("news_title")%></div></td>
            </tr>
          </table></td>
      </tr>
      <tr> 
        <td height="200" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
            <!--DWLayoutTable-->
            <tr> 
              <td width="760" height="200" valign="top"><div align="center">日期:<%=rs.getDate("news_date")%></div>
                <div align="center"> 
                  <div align="left"> 
                    <pre><%=rs.getString("news_content")%></pre>
                  </div>
                </div></td>
            </tr>
          </table></td>
      </tr>
    </table>
          </center>
</div>

          <%}
		  else{
		  out.print("此新闻不存在或已经被删除!");
		  }
%>
<%@ include file="copy.jsp"%>
</body>
</html>

⌨️ 快捷键说明

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