?? index.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, // 當前頁數(shù)
pc = 0; // 總頁數(shù)
%>
<html>
<head>
<title>華源網(wǎng)校</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"> </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"> </td>
<td background="image/window-t2.gif"> </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"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" height="36" width="126" background="image/contact4.gif"> </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> </td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="40"> </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"> 您現(xiàn)在的位置是在 ->
<a href="http://www.gbsource.com">中華學源</a> ->
<a href="./">華源網(wǎng)校</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 { %>
<!-- 顯示頁數(shù) -->
<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">華源網(wǎng)站
版權所有 (2001-2002)</td>
</tr>
</table>
</td>
<td width="13">
<p> </p>
<p> </p>
</td>
</tr>
</table>
</td>
<td width="21" background="image/bg1.gif"> </td>
<td width="23"> </td>
<td width="24" background="image/window-m.gif"> </td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="19"> </td>
<td width="27" background="image/window-d3.gif"> </td>
<td background="image/window-D2.gif" width="168"> </td>
<td width="25" background="image/window-d1.gif"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -