header.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: header.jsp,v $
- * $Revision: 1.5.2.1 $
- * $Date: 2001/01/11 06:22:04 $
- */
- %>
- <%@ page
- import="com.coolservlets.forum.*,
- com.coolservlets.forum.util.*,
- com.coolservlets.util.*"
- %>
- <% // prepend "header" to variables used here to prevent clashes with including pages...
- String siteTitle = "CoolServlets";
- String pageTitle = (title == null || title.length() == 0) ? siteTitle : title + " - " + siteTitle;
- String headerUserName = null;
- boolean headerCanPost = false;
- if (forumID > -1) {
- try {
- headerCanPost = forumFactory.getForum(forumID).hasPermission(ForumPermissions.CREATE_THREAD);
- } catch (Exception ignoreFnF) {}
- }
- if (authToken != null && forumFactory != null) {
- try {
- ProfileManager headerProfileManager = forumFactory.getProfileManager();
- User headerUser = (headerProfileManager == null) ? null : headerProfileManager.getUser(authToken.getUserID());
- if (headerUser != null && !headerUser.isAnonymous()) {
- headerUserName = headerUser.getName();
- if (headerUserName == null || headerUserName.trim().length() == 0) {
- headerUserName = headerUser.getUsername();
- }
- }
- } catch (Exception ignore) {}
- }
- %>
- <html>
- <head>
- <title><%= title %></title>
- <META http-equiv=Content-Type content="text/html; charset=GB2312">
- <META content="MSHTML 5.50.4134.600" name=GENERATOR>
- <link rel="stylesheet" href="/vnex/hr_macos.css" type="text/css">
- <script language="JavaScript">
- <!--
- function MM_openBrWindow(theURL,winName,features) { //v2.0
- window.open(theURL,winName,features);
- }
- //-->
- </script>
- </head>
- <STYLE>
- #ssm2 A {
- FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana; TEXT-DECORATION: none
- }
- #ssm2 A:hover {
- COLOR: red
- }
- </STYLE>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_communicate.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <BODY text=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000">
- <DIV align=center>
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#cccccc">
- <td>
- <table cellpadding="0" cellspacing="0" border="0" width="600">
- <tr bgcolor="#FFFFFF">
- <td width="1%">
- </td>
- <td width="1%">
-
- </td>
- <% if (headerUserName != null) { %>
- <td width="1%" nowrap align="center">
- <a href="/mainctrl/bbs/account?mode=2"><font class="strong"><%= headerUserName %></font></a>
- </td>
- <% } %>
- <%-- Spacer --%>
- <% if (forumID > 0) { %>
- <td width="90%"> </td>
- <% } else { %>
- <td width="94%"> </td>
- <% } %>
- <% if (headerUserName != null) { %>
- <td width="1%" nowrap align="center">
- <a href="/mainctrl/bbs/index?logout=true" class="normal">
- <img src="/skins/bay/images/logout.gif" width=56 height=23 alt="退出" border="0" >
- </a>
- </td>
- <% } else { %>
- <td width="1%" nowrap align="center">
- <a href="/mainctrl/bbs/account" class="normal">
- <img src="/skins/bay/images/login.gif" width=56 height=23 alt="登录" border="0" >
- </a>
- </td>
- <% } %>
- <% if (forumID > 0) { %>
- <td width="1%" nowrap align="center">
-
- <img src="/skins/bay/images/bluedot.gif" width=1 height=23 border=0>
-
- </td>
- <td width="1%" nowrap>
- <a href="/mainctrl/bbs/viewForum?forum=<%= forumID %>"
- ><img src="/skins/bay/images/read.gif" width=56 height=23 alt="查看帖子" border="0" ></a>
- </td>
- <% if (headerCanPost) { %>
- <td width="1%" nowrap>
- <img src="/skins/bay/images/vertLine.gif" width=1 height=23 border=0 hspace=4>
- </td>
- <td width="1%" nowrap>
- <a href="/mainctrl/bbs/post?forum=<%= forumID %>"
- ><img src="/skins/bay/images/post.gif" width=56 height=23 alt="增加帖子" border="0"
- ></a>
- </td>
- <% } %>
- <!--<td width="1%" nowrap>
- <img src="/skins/bay/images/vertLine.gif" width=1 height=23 border=0 hspace=4>
- </td>
- <td width="1%" nowrap>
- <a href="/mainctrl/bbs/search?forum=<%= forumID %>"
- ><img src="/skins/bay/images/search.gif" width=56 height=23 alt="查找" border="0"
- ></a>
- </td>-->
- <% } else { %>
- <% if( forumID > -1 ) { %>
- <!--<td width="1%" nowrap align="center">
-
- <img src="/skins/bay/images/bluedot.gif" width=1 height=23 border=0>
-
- </td>
- <td width="1%" nowrap>
- <a href="/mainctrl/bbs/search?forum=-1"
- ><img src="/skins/bay/images/search.gif" width=56 height=23 alt="查找" border="0"
- ></a>
- </td>-->
- <% } %>
- <% } %>
- </tr>
- </table>