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

📄 newspre.jsp

📁 Jsp 新闻发布系统 源代码(含PPT)
💻 JSP
字号:
<%@page language="java" contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
<%@page import="com.jbaptech.accp.newspublish.db.FirstLeveTitleDbOpreation"%>
<%@page import="com.jbaptech.accp.newspublish.db.SecondLevelTitleDbOpreation"%>
<%@page import=" com.jbaptech.accp.newspublish.data.*"%>
<%@page import=" java.util.ArrayList"%>
<%
  ArrayList list = new FirstLeveTitleDbOpreation().getAllFirstLevelTitleList();
  String strParentId = request.getParameter("parentId");
  ArrayList listSecondTitle = null;
  if (strParentId != null && strParentId.trim().length() != 0) {
    int parentId = Integer.parseInt(strParentId);
    listSecondTitle = new SecondLevelTitleDbOpreation().getSecondLevelTitleListByFirstLevelTitle(parentId);
  }
%>
<html>
<head>
<title>新闻发布系统</title>
</head>
<body>
<table width="100%">
  <tr>
    <td bgcolor="#FFFFFF" height="86">
      <img src="images/head.gif" border="0" width="100%" alt="0"/>
    </td>
  </tr>
</table>
<table width="100%" bgcolor="#FFFFFF">
  <tr>
    <td width="150" valign="top" align="left" bgcolor="#9999FF">
      <table>
        <tr>
          <td width="145" height="90" valign="top" align="left">
            <img src="images/left.jpg" border="0" width="146" height="96" alt="0"/>
          </td>
        </tr>
        <tr>
          <td height="461" width="145" valign="top">
            <div align="center">
              <font size="4">
                <b>
                  <font size="3">新闻分类</font>
                </b>
              </font>
            </div>
            <p>
            <%
              if (list.size() != 0) {
                for (int i = 0; i < list.size(); i++) {
                  FirstLevelTitle fTitle = (FirstLevelTitle) list.get(i);
            %>

            <div align="center">
              <a href="newspre.jsp?parentId=<%=fTitle.getId()%>"><%=fTitle.getTitleName()%>              </a>
            </div>
            <br>
          <%}}          %>
          </td>
        </tr>
      </table>
    </td>
    <td valign="top" height="100%" width="859">
      <table width="100%">
        <tr>
          <td valign="top" height="13" bgcolor="#9999FF">
            <div align="center">Wecome to this news station!</div>
          </td>

        <tr>
          <td valign="top" height="531" bgcolor="#FFFFFF">
            <p>
            <%
              if (listSecondTitle != null && listSecondTitle.size() != 0) {
                for (int i = 0; i < listSecondTitle.size(); i++) {
                  SecondLevelTitle sTitle = (SecondLevelTitle) listSecondTitle.get(i);
            %>
              <li><a href="<%=sTitle.getFilePath()%>" target="_blank"><%=sTitle.getTitleName()%></a></li>
              <br>
            <%}}            %>

          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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