alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</tr> </table> <%}%> </fmt:bundle> <%@ include file="ad.jsp"%> <%@ include file="news.jsp"%>

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<%--
 - $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/user/header.jsp,v 1.73 2005/01/24 12:34:02 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.73 $
 - $Date: 2005/01/24 12:34:02 $
 -
 - ====================================================================
 -
 - Copyright (C) 2002-2005 by MyVietnam.net
 -
 - This program is free software; you can redistribute it and/or
 - modify it under the terms of the GNU General Public License
 - as published by the Free Software Foundation; either version 2
 - of the License, or any later version.
 -
 - All copyright notices regarding mvnForum MUST remain intact
 - in the scripts and in the outputted HTML.
 - The "powered by" text/logo with a link back to
 - http://www.mvnForum.com and http://www.MyVietnam.net in the
 - footer of the pages MUST remain visible when the pages
 - are viewed on the internet or intranet.
 -
 - This program is distributed in the hope that it will be useful,
 - but WITHOUT ANY WARRANTY; without even the implied warranty of
 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 - GNU General Public License for more details.
 -
 - You should have received a copy of the GNU General Public License
 - along with this program; if not, write to the Free Software
 - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 -
 - Support can be obtained from support forums at:
 - http://www.mvnForum.com/mvnforum/index
 -
 - Correspondence and Marketing Questions can be sent to:
 - info@MyVietnam.net
 -
 - @author: Minh Nguyen  minhnn@MyVietnam.net
 - @author: Mai  Nguyen  mai.nh@MyVietnam.net
 --%>
<%@ page pageEncoding="utf-8"%>
<%@ page import="com.mvnforum.MVNForumConfig" %>
<%@ include file="inc_js_checkvalid_myvietnamlib.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<script type="text/javascript">
function SubmitFormSearch() {
  if (ValidateFormSearch() == true ) {
    document.submitformsearch.submitbutton.disabled=true;
    document.submitformsearch.submit();
  }
}

function ValidateFormSearch() {
  if (isBlank(document.submitformsearch.key, "<fmt:message key="mvnforum.user.header.search"/>")) return false;
  return true;
}
</script>
<table width="95%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
    <td height="60">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td rowspan="2">
            <a href="<%=MVNForumConfig.getLogoUrl()%>"><fmt:message key=" title="">
          </td>
          <td rowspan="2">
            <!-- Put your banner here if you want -->   
          </td>
          <td width="100%" height="25" align="right" valign="top" nowrap class="welcomeHeader">
            <%if (onlineUser.isMember()) {%>
              <fmt:message key="mvnforum.user.header.welcome"/> <%=memberName%>
              <%int newMessageCount = onlineUser.getNewMessageCount();
                if (newMessageCount > 0 ) { %>
                (<a href="mymessage"><%=onlineUser.getNewMessageCount()%> )
              <%}%>
              <% if (onlineUser.getAuthenticationType() == OnlineUser.AUTHENTICATION_TYPE_COOKIE) { %>()<% } %> | 
              <a href="logout" class="welcomeHeader">
              <br/>
              <% if ( MVNForumConfig.getEnableShowLastLogin() ) {%>
                <fmt:message key="mvnforum.common.member.last_login"/>: <%=onlineUser.getGMTTimestampFormat(onlineUser.getLastLogonTimestamp())%>
                <fmt:message key="mvnforum.common.from_ip"/> <%=onlineUser.getLastLogonIP()%>
              <%}%>
            <%} else if ((memberName!=null) && (memberName.length()>0)) {%>
              <fmt:message key="mvnforum.user.header.welcome"/> <%=memberName%>
              <%if (MVNForumConfig.getEnableLogin()) {%>
                | <a href="login" class="welcomeHeader">
              <% } %>
            <%} else {%>
              <fmt:message key="mvnforum.user.header.welcome"/> <%=MVNForumConfig.getDefaultGuestName()%>
              <%if (MVNForumConfig.getEnableLogin()) {%>
                | <a href="login" class="welcomeHeader">
              <% } %>
            <%}%>
              
          </td>
        </tr>
        <tr>
          <td height="35" valign="top">
          <form action="searchprocess" name="submitformsearch">
            <table class="tborder" cellspacing="1" cellpadding="2" align="right">
              <tr class="topmenu">
                <td align="left" valign="top" nowrap> 
                  <img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/search.gif" alt="" title="" hspace="0" vspace="0" border="0" align="bottom">
                  <input type="text" size="10" name="key">
                  <input type="button" name="submitbutton" value=" 
                </td>
              </tr>
            </table>
          </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<table class="tborder" width="95%" cellspacing="1" cellpadding="2" align="center">
  <tr class="topmenu">
    <td nowrap> 
      <a href="index" class="topmenu">
      <%--
      <a href="listforums" class="topmenu"> | 
      --%>
       | <a href="listrecentthreads" class="topmenu">
      <%if (MVNForumConfig.getEnableOnlineUsers()) {%>
       | <a href="listonlineusers" class="topmenu">
      <% } // if enable online users%>
      <%if (MVNForumConfig.getEnableCompany() && MVNForumConfig.getEnableListCompanies()) {%>
       | <a href="listcompanies" class="topmenu">
      <% } %>
      <%if (MVNForumConfig.getEnableListMembers()) {%>
       | <a href="listmembers" class="topmenu">
      <% } %>
      <%if (MVNForumConfig.getEnableNewMember() && onlineUser.isGuest()) {%>
       | <a href="registermember" class="topmenu">
      <% } %>
      <%if (onlineUser.isMember()) {%>
       | <a href="myprofile" class="topmenu">
      <% } %>
      <%if (MVNForumConfig.getEnableSearch()) {%>
       | <a href="search" class="topmenu">
      <%}%>
       | <a href="help" class="topmenu">
    <%if (MVNForumConfig.getEnableCompany()) {%>
      <%if (onlineUser.isMember()) {%>              
       | <a href="addmessage" class="topmenu">
      <%}%>
    <%}%>
      <%if (MVNForumConfig.getEnableRSS()) {%>
       | <a href="rsssummary" class="topmenu"><fmt:message key=" title="" hspace="0" vspace="0" border="0" align="bottom">
      <% } %>
      <%if (permission.canModerateThreadInAnyForum()) {%>
       | <a href="modcp" class="topmenu">
      <% } %>
    </td>
  </tr>
</table>
<%if (MVNForumConfig.getShouldShowUserArea() == false) {%>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="pagedesc">
    <td align="center" class="warning">
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.