desktop.jsp
来自「database connection, database connection」· JSP 代码 · 共 183 行
JSP
183 行
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="top.jsp"%>
<SCRIPT LANGUAGE="JavaScript">
<!--
var flasher = false
// calculate current time, determine flasher state,
// and insert time into status bar every second
function updateTime() {
var now = new Date()
var theHour = now.getHours()
var theMin = now.getMinutes()
var theTime = "" + ((theHour > 12) ? theHour - 12 : theHour)
theTime += ((theMin < 10) ? ":0" : ":") + theMin
theTime += ((flasher) ? " " : " =")
theTime += (theHour >= 12) ? " 下午" : " 上午"
flasher = !flasher
window.status = theTime
// recursively call this function every second to keep timer going
timerID = setTimeout("updateTime()",1000)
}
//-->
</SCRIPT>
<html>
<body onLoad="updateTime()">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr vAlign="top">
<td>
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0" height="586">
<tr>
<td class="welcomeleft" id="left_pane" vAlign="top" width="155">
<table cellSpacing="0" cellPadding="0" width="154" border="0" valign="top">
<tr>
<td><img src=../images/icon_20.gif><font color=ffffff><font size=2><b>我的办公桌</b></font></font></td>
</tr>
</table>
<table cellSpacing=0 cellPadding=0 width=154 border=0 valign=top >
<tr>
<td>
<font color=000000>您上一次的时间登录是:<br><%=(String) session.getAttribute("lastlogintime")%></font></font>
</td>
</tr>
</table>
<table cellSpacing="0" cellPadding="0" width="100%" border="0" background=../images/back.gif height="524">
<tr height="253">
<td>
<input name="Submit" onClick="location='mykehu.jsp?space=3.1'" type="submit" class="buttonmain" value=" 我的客户中心"><br><br>
<input name="Submit" onClick="location='msg_main.jsp?space=4.0'" type="submit" class="buttonmain" value=" 查看我的消息"><br><br>
<input name="Submit" onClick="location='myrecemail.jsp?space=9.0&action=list'" type="submit" class="buttonmain" value=" 我的邮件中心"><br><br>
<input name="Submit" onClick="location='myfriend.jsp'" type="submit" class="buttonmain" value=" 我的通讯录 "><br><br>
<input name="Submit" onClick="location='mepass.jsp?space=8.9'" type="submit" class="buttonmain" value=" 修改我的密码"><br><br>
<input name="Submit" onClick="location='me.jsp?space=8.8'" type="submit" class="buttonmain" value=" 我的个人档案"><br><br>
<input name="Submit" onClick="location='mybbs.jsp?space=6.2'" type="submit" class="buttonmain" value=" 我的论坛话题"><br><br>
<input name="Submit" onClick="location='tool_main.jsp?space=8.0'" type="submit" class="buttonmain" value=" 日常工作工具">
</td>
</tr>
</table>
</td>
<td id=right_pane>
<table class=maintd id=Columns height="100%" cellSpacing=0 cellPadding=12 width="100%" border=0 background=../images/adminbodybg.gif>
<tr height="50%">
<td vAlign=top width="50%">
<table id=Table2 cellSpacing=1 cellPadding=1 width="100%" border=0>
<tr>
<td style="WIDTH: 2px" noWrap><IMG alt="" src="../images/tongzhigonggao.gif"></TD>
<td vAlign=center noWrap><SPAN class=subtitle><SPAN id=Label1>通知公告</SPAN></SPAN> </TD>
</tr>
<tr>
<td noWrap></TD>
<td noWrap><FONT face=宋体>
<table width="100%" border=0>
<tr>
<td> </td>
</tr>
</table>
<table class=Grid id=CategoryItemPage1_SelectiveGrid1 style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-RIGHT-WIDTH: 0px" cellSpacing=1 cellPadding=1 rules=cols border=0 SelectedItems="Guid[] Array" ItemCount="13">
<%
int i=1;
rs = stmt.executeQuery("select * from news where lei=1 order by id desc");
while(rs.next()&i<10){
i++ ;
%>
<tr>
<td>
<img id="CategoryItemPage1_SelectiveGrid1__ctl3_ImageX9" src="../images/gridicon.gif" border="0"/>
<a href="newslist.jsp?id=<%=rs.getString("id")%>"><%=rs.getString("title")%></a>
</td>
<td><%=rs.getString("fbtime")%></td>
</tr>
<%}%>
</table>
</td>
</tr>
</table>
</td>
<td vAlign=top>
<table id=Table3 cellSpacing=1 cellPadding=1 width="100%" border=0>
<tr>
<td style="WIDTH: 2px" noWrap>
<img alt="" src="../images/tongzhigonggao.gif"></td>
<td vAlign=center noWrap>
<span class=subtitle><SPAN id=Label2 style="FONT-WEIGHT: bold">公司新闻</span></span></td></tr>
<tr>
<TD noWrap><FONT face=宋体></FONT></TD>
<TD noWrap><FONT face=宋体>
<INPUT id=Categoryitempage2_PickedIDs type=hidden size=1
name=Categoryitempage2:PickedIDs>
<DIV id=Categoryitempage2_Panel1>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD><FONT color=red></FONT><FONT
color=blue></FONT></TD></TR></TBODY></TABLE>
<TABLE class=Grid id=Categoryitempage2_SelectiveGrid1 style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-RIGHT-WIDTH: 0px" cellSpacing=1 cellPadding=1 rules=cols border=0 SelectedItems="Guid[] Array" ItemCount="13">
<%
int j=1;
rs=stmt.executeQuery("select * from news where lei=2 order by id desc");
while(rs.next()&j<10){
j++ ;
%>
<TR class=datalist1>
<TD><IMG id=CategoryItemPage1_SelectiveGrid1__ctl3_ImageX9 src="../images/gridicon.gif" border=0>
<A href="newslist.jsp?id=<%=rs.getString("id")%>" ><%=rs.getString("title")%></A>
<SPAN id=CategoryItemPage1_SelectiveGrid1__ctl3_Label2 style="COLOR: gray" NAME="Label2"></SPAN></TD>
<TD><SPAN id=CategoryItemPage1_SelectiveGrid1__ctl3_Label3>
<%=rs.getString("fbtime")%></SPAN> </TD></TR>
<%}%>
</TABLE></DIV></FONT></TD></TR></TABLE></TD></TR>
<TR>
<TD vAlign=top width="50%">
<TABLE id=Table4 cellSpacing=1 cellPadding=1 width="100%" border=0>
<TR>
<TD style="WIDTH: 2px" noWrap><IMG alt="" src="../images/tongzhigonggao.gif"></TD>
<TD vAlign=center noWrap><SPAN class=subtitle><SPAN id=Label3 style="FONT-WEIGHT: bold">活动盛事</SPAN></SPAN></TD></TR>
<TR>
<TD noWrap><FONT face=宋体></FONT></TD>
<TD noWrap><FONT face=宋体>
<INPUT id=Categoryitempage3_PickedIDs type=hidden size=1 name=Categoryitempage3:PickedIDs>
<DIV id=Categoryitempage3_Panel1>
<TABLE width="100%" border=0>
<TR>
<TD><FONT color=red></FONT><FONT color=blue></FONT></TD></TR></TABLE>
<TABLE class=Grid id=Categoryitempage3_SelectiveGrid1 style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-RIGHT-WIDTH: 0px" cellSpacing=1 cellPadding=1 rules=cols border=0 SelectedItems="Guid[] Array" ItemCount="13">
<%
int l=1;
rs=stmt.executeQuery("select * from news where lei=3 order by id desc");
while(rs.next()&l<10){
l++ ;
%>
<TR class=datalist1>
<TD><IMG id=CategoryItemPage1_SelectiveGrid1__ctl3_ImageX9 src="../images/gridicon.gif" border=0> <A href="newslist.jsp?id=<%=rs.getString("id")%>" ><%=rs.getString("title")%></A>
<SPAN id=CategoryItemPage1_SelectiveGrid1__ctl3_Label2 style="COLOR: gray" NAME="Label2"></SPAN></TD>
<TD><SPAN id=CategoryItemPage1_SelectiveGrid1__ctl3_Label3><%=rs.getString("fbtime")%></SPAN> </TD></TR>
<%}%>
</TABLE></DIV></FONT></TD></TR></TABLE></TD>
</table>
</td>
<%@ include file="end.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?