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

📄 index.jsp

📁 jsp实现网络教育系统
💻 JSP
字号:
<%@ taglib prefix="tech" uri="/WEB-INF/tech.xml" %>
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page import="org.jetic.web.tech.*" %>
<jsp:useBean id="info" scope="page" class="org.jetic.web.tech.Infomation" />
<jsp:setProperty name="info" property="*" />
<%
int p = 0,	// 当前页数
	pc = 0;	// 总页数
%>
<html>
<head>
<title>华源网校</title>
<link rel="stylesheet" href="http://202.115.4.249/css/gbsource.css" type="text/css">
<script language="javascript" src="http://202.115.4.249/js/gbsource.js"></script>
<script language="javascript">
function viewArticle(id) {
	techWin = window.open("view.jsp?articleID=" + id ,"gbs_tech", "width=500,height=400,scrollbars=1");
	techWin.focus();
}
</script>
</head>

<body text="#000000" topmargin="0" leftmargin="0">
<table width="100%" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="234" height="90" background="image/tech1-1.gif" align="center"></td>
    <td background="image/tech1-2.gif" valign="top" align="center">&nbsp;</td>
    <td width="132" background="image/tech1-3.gif" align="center"></td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="150" height="54" background="image/contact2.gif"></td>
    <td align="center" valign="bottom"> 
      <script>WebMenu();</script>
      <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td height="7"></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td width="19" height="18" background="image/window-t1.gif">&nbsp;</td>
          <td background="image/window-t2.gif">&nbsp;</td>
          <td width="22" background="image/window-t3.gif"> </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="128" height="162" valign="top"> 
      <table width="126" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" height="368" width="126" background="image/contact3.gif" align="center"> 
            <table width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center">
                  <table border="0" cellpadding="2" cellspacing="1" width="80%" bordercolorlight="#000000" bordercolordark="#FFFFFF" bordercolor="#000000" bgcolor="#000000">
                    <tr> 
                      <td width="100%" bgcolor="#eeeeee"> 
                        <div align="center"> 
                         <tech:CategoryList>
                          <p style="word-spacing: 8; margin-top: 8; margin-bottom: 8"></p>
                          <table border="0" cellpadding="2" cellspacing="1" width="90%" bordercolorlight="#000000" bordercolordark="#FFFFFF" bordercolor="#000000" bgcolor="#000000">
                            <tr> 
                              <td onMouseOver="this.style.backgroundColor='#dddddd';" onMouseOut="this.style.backgroundColor='';" width="80%" bgcolor="#FFFFFF" align="center">
                                <a href="index.jsp?categoryID=<%= categoryID %>" target="_top"><%= categoryName %></a>
                              </td>
                            </tr>
                          </table>
                         </tech:CategoryList>
                          <p style="word-spacing: 8; margin-top: 8; margin-bottom: 8"></p>
                        </div>
                      </td>
                    </tr>
                  </table>
                  <% if (info.getCategoryID() < 1 && info.getKeyword().length() == 0) { %>
                  <jsp:include page="other.html" />
                  <% } %>
                </td>
                <td width="10">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
		<tr>
          <td valign="top" height="36" width="126" background="image/contact4.gif">&nbsp;</td>
        </tr>
      </table>
    </td>
    <td valign="top" width="889"> 
      <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" valign="top"> 
            <table width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
            <table width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="40">&nbsp;</td>
                <td>
                  <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#000000" bordercolordark="#FFFFFF">
                    <tr> 
                      <td width="100%"> 
                        <div align="center"> 
                          <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#000000" bordercolordark="#eeeeee" bgcolor="#eeeeee">
                            <tr> 
                              <td height="22">&nbsp;您现在的位置是在 -&gt;
                                <a href="http://www.gbsource.com">中华学源</a> -&gt;
                                <a href="./">华源网校</a>
                              </td>
                            </tr>
                          </table>
                        </div>
                      </td>
                    </tr>
                    <tr> 
                      <td width="100%"> 
                        <div align="center"> 
                          <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#000000" bordercolordark="#eeeeee">
                            <tr> 
                              <td colspan="2" align="center" bgcolor="#eeeeee" height="22"><font face="Wingdings">1</font>更新日志</td>
                            </tr>
                           <tech:ArticleList
                               categoryID="<%= info.getCategoryID() %>"
                               keyword="<%= info.getKeyword() %>"
                               page="<%= info.getPage() %>"
                               pagesize="10">
                            <tr height="22" width="129"> 
                              <td width=""><a href="javascript:viewArticle(<%= articleID %>)"><%= articleTitle %></a></td>
                              <td><%= articleTime %></td>
                            </tr>
                           </tech:ArticleList>
                          </table>
                        </div>
                      </td>
                    </tr>
                    <% if (info.getCategoryID() < 1 && info.getKeyword().length() == 0) { %>
                    <jsp:include page="lastarticle.jsp" />
                    <% } else { %>
                    <!-- 显示页数 -->
                    <tr>
                      <td align="center">
                        <table border="0" width="100%">
                          <tr>
                            <td width="250">
                              <form action="index.jsp" method="get">
                                <select name="categoryID" size="1">
                                  <option value="0">所有分类</option>
                                  <tech:CategoryList>
                                  <option value="<%= categoryID %>"<%
                                  	if (categoryID.intValue() == info.getCategoryID())
                                  		out.print(" selected");
                                  %>><%= categoryName %></option>
                                  </tech:CategoryList>
                                </select>
                                <input type="text" name="keyword" size="10" value="<%= info.getKeyword() %>">
                                <input type="submit" value="<查>">
                              </form>
                            </td>
                            <td>
                              查看其他各页:<pagin:Pagin link="" page="" pagecount="" type="" />
                              <%
                              if (listpage == null)	listpage = new Integer(0);
                              if (listpagecount == null)	listpagecount = new Integer(0);
                              p = listpage.intValue();
                              pc = listpagecount.intValue();
		      				for (int I = 1; I <= pc; I++) {
			  	      			if (I == p)
						      		out.println(I);
      							else
		      						out.println("<a href=\"index.jsp?categoryID=" +
      									info.getCategoryID() + "&keyword=" +
		      							info.getKeyword() + "&page=" +
				      					I + "\">" + I + "</a>");
      						}
                              %>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <% }%>
                    <tr> 
                      <td width="100%" bgcolor="#EEEEEE" height="22" valign="middle" align="center">华源网站&nbsp; 
                        版权所有 (2001-2002)</td>
                    </tr>
                  </table>
                </td>
                <td width="13">
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                </td>
              </tr>
            </table>
          </td>
		  <td width="21" background="image/bg1.gif">&nbsp; </td>
		  <td width="23">&nbsp; </td>
          <td width="24" background="image/window-m.gif">&nbsp; </td>
        </tr>
      </table>
      <table width="100%" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="19">&nbsp;</td>
          <td width="27" background="image/window-d3.gif">&nbsp;</td>
          <td background="image/window-D2.gif" width="168">&nbsp;</td>
          <td width="25" background="image/window-d1.gif">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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