📄 index.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Java01班B组新闻发布系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="/news/images/jiaoyu.css" type=text/css rel=stylesheet>
<LINK href="/news/images/educss910.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<script type="text/javascript">
function isodatetime() {
var today = new Date();
var year = today.getYear();
if (year < 2000)
year = year + 1900;
var month = today.getMonth() + 1;
var day = today.getDate();
var hour = today.getHours();
var hourUTC = today.getUTCHours();
var diff = hour - hourUTC;
var hourdifference = Math.abs(diff);
var minute = today.getMinutes();
var minuteUTC = today.getUTCMinutes();
var minutedifference;
var second = today.getSeconds();
var timezone;
if (minute != minuteUTC && minuteUTC < 30 && diff < 0) { hourdifference--; }
if (minute != minuteUTC && minuteUTC > 30 && diff > 0) { hourdifference--; }
if (minute != minuteUTC) {
minutedifference = ":30";
}
else {
minutedifference = ":00";
}
if (hourdifference < 10) {
timezone = "0" + hourdifference + minutedifference;
}
else {
timezone = "" + hourdifference + minutedifference;
}
if (diff < 0) {
timezone = "-" + timezone;
}
else {
timezone = "+" + timezone;
}
if (month <= 9) month = "0" + month;
if (day <= 9) day = "0" + day;
if (hour <= 9) hour = "0" + hour;
if (minute <= 9) minute = "0" + minute;
if (second <= 9) second = "0" + second;
time = year + "年" + month + "月" + day + "日"
+ hour + ":" + minute + ":" + second + timezone;
document.isoclock.display.value = time;
window.setTimeout("isodatetime();", 500);
}
</script>
</HEAD>
<BODY OnLoad="isodatetime()">
<TABLE class=ge2 cellSpacing=0 cellPadding=0 width=910 align="center"
border=0>
<TR>
<TD>
<SPAN
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost:8080/news/index/')"
style="CURSOR: hand; float: right; color: #339900;"
title=Java01班B组新闻发布系统>设为首页</SPAN>
<SPAN
onclick="window.external.addFavorite('http://localhost:8080/news/index','Java01班B组新闻发布系统')"
style="CURSOR: hand; float: right; color: #339900;"
title=Java01班B组新闻发布系统>加入收藏</SPAN>
</TD>
</TR>
<TR>
<TD background="/news/images/logo.jpg" height=130>
</TD>
</TR>
</TABLE>
<TABLE id=KyNav cellSpacing=0 cellPadding=0 width=910 align="center"
border=0>
<TBODY>
<TR>
<TD align="center" background="/news/images/ky_03.gif" height=26>
<form name=isoclock>
<input type=text name=display size=30
style="border: 0; color: #339900;" readonly="readonly" />
<logic:present name="user" scope="session">
<a href="sendmail.jsp" style="color: #339900;">给管理员发送邮件</a>
</logic:present>
<logic:notPresent name="user" scope="session">
<a href="" style="color: #339900;"
onclick="javascript=alert('您还没有登入,请登入后再给管理员发邮件!!')">给管理员发送邮件</a>
</logic:notPresent>
</form>
</TD>
</TR>
</TBODY>
</TABLE>
<DIV id=contain>
<DIV id=mainbg>
<DIV id=rightblock>
<DIV class=text>
<DIV id=newslist >
<TABLE cellSpacing=0 cellPadding=0 width=430 align=center
border=0>
<TBODY>
<TR>
<TD class=tit1 width=105 height=35>
<IMG height=12 src="/news/images/i1.gif" width=15>
最新新闻:
</TD>
<TD class="bx bc" width=330 background="/news/images/x2.gif"></TD>
</TR>
</TBODY>
</TABLE>
<logic:iterate id="news" name="topnews" length="1">
<div class="textbox">
<div class="title">
<bean:write name="news" property="title" />
</div>
<div class="text">
<bean:write name="news" property="content" />
</div>
</div>
</logic:iterate>
</DIV>
<DIV id=right>
<logic:iterate id="type" name="typeset">
<TABLE cellSpacing=0 cellPadding=0 width=282 border=0>
<TBODY>
<TR>
<TD class=tit3 width=282 background="/news/images/1_50.gif"
height=32>
<bean:write name="type" property="newstype" />
</TD>
</TR>
<TR>
<TD class=lm1>
<TABLE id=fods cellSpacing=0 cellPadding=0 width="100%"
bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD style="PADDING-BOTTOM: 7px">
<DIV id=tom>
<DIV style="DISPLAY: block">
<TABLE class=list1 cellSpacing=0 cellPadding=0
width=227 align=center border=0>
<TBODY>
<TR>
<TD align=left width=225>
<TABLE cellSpacing=0 cellPadding=0 width=200
background="/news/images/pl01.gif" border=0>
<TBODY>
<TR>
<TD width=18>
<TABLE cellSpacing=0 cellPadding=0 width=18
border=0>
<TBODY>
<TR align=left>
<TD align="center" height=24>
<IMG height=13 src="/news/images/m01.gif"
width=13 align="middle">
</TD>
</TR>
<TR align=left>
<TD align="center" height=24>
<IMG height=13 src="/news/images/m02.gif"
width=13 align="middle">
</TD>
</TR>
<TR align=left>
<TD align="center" height=24>
<IMG height=13 src="/news/images/m03.gif"
width=13 align="middle">
</TD>
</TR>
<TR align=left>
<TD align="center" height=24>
<IMG height=13 src="/news/images/m04.gif"
width=13 align="middle">
</TD>
</TR>
<TR align=left>
<TD align="center" height=24>
<IMG height=13 src="/news/images/m05.gif"
width=13 align="middle">
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD width=182>
<TABLE id=link2 cellSpacing=0 cellPadding=0
width=182 border=0>
<TBODY>
<logic:iterate id="news" name="type"
property="newses">
<TR align=left>
<TD height=24>
<html:link page="/browse.do"
paramId="newsid" paramName="news"
paramProperty="newsid">
<bean:write name="news" property="title" />
<br />
</html:link>
</TD>
</TR>
</logic:iterate>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -