home | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<td width="100%" nowrap> <a class="nav" href="index"> »  <a class="nav" href="myprofile"> »  <a class="nav" href="mymessage"> »  <fmt:message key="mvnforum.user.addmessage.title"/> </td> </tr> </table> <br/> <%if (isPreviewing) { MemberBean memberBean = (MemberBean)request.getAttribute("MemberBean");%> <table class="tborder" width="95%" cellspacing="1" cellpadding="5" align="center"> <tr class="trow1"> <td width="155" rowspan="2" valign="top" nowrap> <%if (memberBean.getMemberGender() == 1) {%> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/male.gif" border="0" alt="" title=""> <%} else {%> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/female.gif" border="0" alt="" title=""> <%}%> <a href="viewmember?memberid=<%=memberBean.getMemberID()%>" class="memberName"><%=memberBean.getMemberName()%> <br/> <%=(memberBean.getMemberTitle().length() > 0) ? EnableMVNCodeFilter.filter(memberBean.getMemberTitle()) : MyUtil.getMemberTitle(memberBean.getMemberPostCount())%> <br/> <% if (memberBean.getMemberAvatar().length() > 0) { %> <div align="center"><fmt:message key=" title=""> <% } else { %> <p> <% } %> <br/> <%=memberBean.getMemberCountry()%>
<fmt:message key="mvnforum.user.viewthread.joined"/>: <%=onlineUser.getGMTDateFormat(memberBean.getMemberCreationDate())%>
<fmt:message key="mvnforum.common.post_count"/>: <%=memberBean.getMemberPostCount()%> </td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="100%" rowspan="2" valign="top" class="messageTextBold"> <%if (messageIcon.length() > 0) { out.print(EnableEmotionFilter.filter(messageIcon + "  ", ParamUtil.getContextPath() + MVNForumGlobal.EMOTION_DIR)); } %> <%=MyUtil.filter(messageTopic, false/*html*/, true/*emotion*/, false/*mvnCode*/, false/*newLine*/, false/*URL*/)%> </td> </tr> </table> <hr size="1" noshade> <%=MyUtil.filter(messageBody, false/*html*/, true/*emotion*/, true/*mvnCode*/, true/*newLine*/, true/*URL*/)%> <% String signature = MyUtil.filter(memberBean.getMemberSignature(), false/*html*/, true/*emotion*/, true/*mvnCode*/, true/*newLine*/, true/*URL*/); if (signature.length() > 0) { %> ----------------------------------------<br> <%=signature%> <%}%> </td> </tr> <tr class="trow1"> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="100%">    <a href="viewmember?memberid=<%=memberBean.getMemberID()%>"> <%if (memberBean.getMemberEmailVisible() == 1) {%>    <a href="mailto:<%=memberBean.getMemberEmail()%>"><%=memberBean.getMemberEmail()%> <%}%> <%if ((memberBean.getMemberHomepage().length() > 0) && (memberBean.getMemberHomepage().equals("http://")==false)) {%>   <%=memberBean.getMemberHomepage()%><%}%> <%if (memberBean.getMemberYahoo().length() > 0) {%>   <%=memberBean.getMemberYahoo()%><%}%> <%if (memberBean.getMemberAol().length() > 0) {%>   <%=memberBean.getMemberAol()%><%}%> <%if (memberBean.getMemberIcq().length() > 0) {%>   <%=memberBean.getMemberIcq()%><%}%> </td> <td nowrap> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/threat.gif" border="0" alt="" title="">  <a href="#"><fmt:message key=" title="">  </td> </tr> </table> </td> </tr> </table> <br/> <%} // isPreviewing%> <form action="addmessageprocess" method="post" name="mvnform"> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2"> </tr> <% //Check Company feature here, we use this variable to determine for Netmama's function if (MVNForumConfig.getEnableCompany() == false) { %> <tr class="trow1" id="To"> <td width="170" nowrap> * <td> </tr> <tr class="trow2" id="Cc"> <td width="170" nowrap> <td> </tr> <tr class="trow1" id="Bcc"> <td width="170" nowrap> <td> </tr> <%} else {/*Use only for Netmama*/%> <% boolean isTutorAdmin = ((Boolean)request.getAttribute("IsTutorAdmin")).booleanValue(); MemberTutorBean memberTutorBean = (MemberTutorBean) request.getAttribute("MemberTutorBean"); if (isTutorAdmin) { %> <tr class="trow1" id="To"> <td width="170" nowrap> <td> </tr> <tr class="trow2" id="Cc"> <td width="170" nowrap> <td> </tr> <tr class="trow1" id="Bcc"> <td width="170" nowrap> <td> </tr> <% } else { %> <tr class="trow1"> <td width="170" nowrap> * <td> <%if (memberTutorBean != null) {%> <input type="text" name="MessageToList" readonly value="<%=memberTutorBean.getTutorName()%>" size="70" class="bginput" tabindex="1"> <%} else { buttonDisable = true; %> <fmt:message key="mvnforum.user.addmessage.no_tutor"/> <%}%> </td> </tr> <% }//else } // end of Else Netmama %> <%if ( enablePublicMessage && permission.canAdminSystem() ) {%> <tr class="trow2"> <td width="170" nowrap> <td> <input type="checkbox" name="sendall" id="sendall" onclick="updateReceiverOption();" <%if(sendAll){%>checked<%}%> class="noborder"> <fmt:message key="mvnforum.common.message.sendall"/> () <script language="JavaScript">updateReceiverOption(); </tr> <%}%> <tr class="trow1"> <td width="170" nowrap> * <td> </tr> <tr class="trow2"> <td valign="top" nowrap> <fmt:message key="mvnforum.user.addpost.format"/>
<input onmouseover="stat('norm')" title="
<input onmouseover="stat('enha')" title=" </td> <td> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td nowrap> <input class="liteoption" style="font-weight: bold;" onmouseover="stat('b')" title=" onclick="mvncode(this.form,'b','')" type=button value=" "> <input class="liteoption" style="font-style: italic;" onmouseover="stat('i')" title=" onclick="mvncode(this.form,'i','')" type=button value=" "> <input class="liteoption" style="text-decoration: underline;" onmouseover="stat('u')" title=" onclick="mvncode(this.form,'u','')" type=button value=" "> <input class="liteoption" style="text-decoration: line-through;" onmouseover="stat('s')" title=" onclick="mvncode(this.form,'s','')" type=button value=" ">  <select id="sizeselect" onmouseover="stat('size')" onchange="fontformat(this.form,this.options[this.selectedIndex].value,this.options[this.selectedIndex].text,'size')"> <option value="0" selected> <option value="1"> <option value="3"> <option value="4"> </select> <select id="fontselect" onchange="fontformat(this.form,this.options[this.selectedIndex].value,this.options[this.selectedIndex].text,'font')" onMouseOver="stat('font')"> <option value="0" selected> <option value="arial">Arial <option value="times new roman">Times <option value="courier new">Courier <option value="century gothic">Century </select> <select id="colorselect" onmouseover="stat('color')" onchange="fontformat(this.form,this.options[this.selectedIndex].value,this.options[this.selectedIndex].text,'color')"> <option value="0" selected> <option style="COLOR: skyblue" value="skyblue"> <option style="COLOR: royalblue" value="royalblue"> <option style="COLOR: blue" value="blue"> <option style="COLOR: darkblue" value="darkblue"> <option style="COLOR: orange" value="orange"> <option style="COLOR: orangered" value="orangered"> <option style="COLOR: crimson" value="crimson"> <option style="COLOR: red" value="red"> <option style="COLOR: firebrick" value="firebrick"> <option style="COLOR: darkred" value="darkred"> <option style="COLOR: green" value="green"> <option style="COLOR: limegreen" value="limegreen"> <option style="COLOR: seagreen" value="seagreen"> <option style="COLOR: deeppink" value="deeppink"> <option style="COLOR: tomato" value="tomato"> <option style="COLOR: coral" value="coral"> <option style="COLOR: purple" value="purple"> <option style="COLOR: indigo" value="indigo"> <option style="COLOR: burlywood" value="burlywood"> <option style="COLOR: sandybrown" value="sandybrown"> <option style="COLOR: sienna" value="sienna"> <option style="COLOR: chocolate" value="chocolate"> <option style="COLOR: teal" value="teal"> <option style="COLOR: silver" value="silver"> </select> <br/> <input class="liteoption" onmouseover="stat('url')" title=""> <input class="liteoption" onmouseover="stat('email')" title=""> <input class="liteoption" onmouseover="stat('img')" title="">   <input class="liteoption" onmouseover="stat('code')" title=""> <input class="liteoption" onmouseover="stat('list')" title=""> <input class="liteoption" onmouseover="stat('quote')" title=""> <br> <input type="text" name="status" value=" </td> <td>  <td class="messageText"> <input class="liteoption" onmouseover="stat('closecurrent')" title=" onclick=closetag(this.form) type=button value=" x ">
<input class="liteoption" onmouseover="stat('closeall')" title=" onclick=closeall(this.form) type=button value=" x "> </td> </tr> </table> </td> </tr> <tr class="trow1"> <td valign="top" nowrap> <fmt:message key="mvnforum.common.message.body"/> * <% if (MVNForumConfig.getEnableEmoticon()) { %> <table border="0" cellspacing="1" cellpadding="3" align="center" class="smilieTable"> <tr> <td colspan="3" align="center" bgcolor="#F5F5F5" style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"> <span class="messageTextBold"> </td> </tr> <tr align="middle"> <td>smile  <td>sad  <td>big grin  </tr> <tr align="middle"> <td>laughing  <td>crying  <td>wink  </tr> <tr align="middle"> <td>blushing  <td>tongue  <td>cool  </tr> <tr align="middle"> <td>love struck  <td>confused  <td>devilish  </tr> <tr> <td colspan="3" align="center" bgcolor="#F5F5F5" style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"> <span class="messageText"> <table> <tr id="showlink"> <td align="center"> </tr> <tr id="hidelink" style="display: none;"> <td align="center"> </tr> </table> </td> </tr> </table> <% }//enable emoticon %> </td> <td valign="top"> </tr> <% if (MVNForumConfig.getEnableEmoticon()) { %> <tr class="trow2" id="MoreEmotion" style="display: none;"> <td colspan="2"> <table width="100%"> <tr> <td width="60%"> <table border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#FFFFFF" class="smilieTable"> <tr> <td colspan="9" align="center" bgcolor="#F5F5F5" style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"> <span class="messageTextBold"> </td> </tr> <tr align="middle"> <td>smile  <td>sad  <td>wink  <td>big grin  <td>batting eyelashes  <td>confused  <td>love struck  <td>blushing  <td>tongue  </tr> <tr align="middle"> <td>kiss  <td>shock  <td>angry  <td>smug  <td>cool  <td>worried  <td>devilish  <td>crying  <td>laughing  </tr> <tr align="middle"> <td>straight face  <td>raised eyebrow  <td>angel  <td>nerd  <td>talk to the hand  <td>sleep  <td>rolling eyes  <td>sick  <td>shhh  </tr> <tr align="middle"> <td>not talking  <td>clown  <td>silly  <td>tired  <td>drooling  <td>thinking  <td>d oh  <td>applause  <td>hugs  </tr> </table> </td> <td> <table border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#FFFFFF" class="smilieTable"> <tr> <td colspan="6" align="center" bgcolor="#F5F5F5" style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset; BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"> <span class="messageTextBold"> </td> </tr> <tr align="middle"> <td>pig  <td>cow  <td>monkey  <td>chicken  <td>rose  <td>good luck  </tr> <tr align="middle"> <td>flag  <td>pumpkin  <td>coffee  <td>idea  <td>skull  <td>alien 1  </tr> <tr align="middle"> <td>alien 2  <td>frustrated  <td>cowboy  <td>praying  <td>hypnotized  <td>money eyes  </tr> <tr align="middle"> <td>whistling  <td>liar  <td>beat up  <td>peace  <td>shame on you  <td>dancing  </tr> </table> </td> </tr> </table> </td> </tr> <% }//enable emoticon %> <% if (MVNForumConfig.getEnableEmoticon()) { %> <tr class="trow1"> <td valign="top" nowrap> <td> <input type="radio" name="MessageIcon" id="MessageIcon[:)]" value="[:)]" class="noborder"> smile    <input type="radio" name="MessageIcon" id="MessageIcon[:(]" value="[:(]" class="noborder"> sad    <input type="radio" name="MessageIcon" id="MessageIcon[:D]" value="[:D]" class="noborder"> big grin    <input type="radio" name="MessageIcon" id="MessageIcon[=D>]" value="[=D>]" class="noborder"> applause    <input type="radio" name="MessageIcon" id="MessageIcon[B-)]" value="[B-)]" class="noborder"> cool    <input type="radio" name="MessageIcon" id="MessageIcon[@};-]" value="[@};-]" class="noborder"> rose    <br/> <input type="radio" name="MessageIcon" id="MessageIcon[:-/]" value="[:-/]" class="noborder"> confused    <input type="radio" name="MessageIcon" id="MessageIcon[:x]" value="[:x]" class="noborder"> love struck    <input type="radio" name="MessageIcon" id="MessageIcon[:p]" value="[:p]" class="noborder"> tongue    <input type="radio" name="MessageIcon" id="MessageIcon[:O]" value="[:O]" class="noborder"> shock    <input type="radio" name="MessageIcon" id="MessageIcon[X-(]" value="[X-(]" class="noborder"> angry    <input type="radio" name="MessageIcon" id="MessageIcon[>:)]" value="[>:)]" class="noborder"> devilish   
<input type="radio" name="MessageIcon" value="" checked class="noborder"> [ ] <script language="JavaScript"> checkMessageIcon(); </script> </td> </tr> <% }//enable emoticon %> <tr class="trow2"> <td valign="top"> <td valign="top"> <%if (permission.canAddMessageAttachment()) {%> <input type="checkbox" name="AttachMore" value="yes" class="noborder" <%if(attachMore){%>checked<%}%> >
<%}%> <!-- >
--> <input type="checkbox" name="AddToSentFolder" value="yes" class="noborder" <%if(addToSentFolder){%>checked<%}%> >
</td> </tr> <%Collection attachBeans = (Collection) request.getAttribute("AttachBeans");%> <%if (isForward && (parentMessageID != 0) && (attachBeans != null)) {%> <input type="hidden" name="parent" value="<%=parentMessageID%>"> <input type="hidden" name="forward" value="yes"> <%if (attachBeans.size() > 0) {%> <tr class="trow1"> <td valign="top"> <td valign="top"> <% for (Iterator attachIter = attachBeans.iterator(); attachIter.hasNext(); ) { PmAttachmentBean pmAttachBean = (PmAttachmentBean)attachIter.next(); %> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/attach.gif" border="0" alt=""> <a class="command" href="getpmattachment?message=<%=parentMessageID%>&attach=<%=pmAttachBean.getPmAttachID()%>"><%=pmAttachBean.getPmAttachFilename()%> <%if (pmAttachBean.getPmAttachDesc().length() > 0) {%>(<%=MyUtil.filter(pmAttachBean.getPmAttachDesc(), false/*html*/, true/*emotion*/, true/*mvnCode*/, false/*newLine*/, true/*URL*/)%>)<%}%>
<%}%> </td> </tr> <%}// if there are at least one attachments }//if forward %> <%if (currentLocale.equals("vi")) {/*vietnamese here*/%> <tr class="trow2"> <td valign="top" nowrap>Kiểu gõ tiếng Việt: <td> <input type="radio" name="vnselector" id="TELEX" value="TELEX" onClick="setTypingMode(1);" class="noborder"> Telex     <input type="radio" name="vnselector" id="VNI" value="VNI" onClick="setTypingMode(2);" class="noborder"> VNI     <input type="radio" name="vnselector" id="VIQR" value="VIQR" onClick="setTypingMode(3);" class="noborder"> VIQR
<input type="radio" name="vnselector" id="NOVN" value="NOVN" onClick="setTypingMode(0);" class="noborder"> Không sử dụng
<script language="JavaScript">initVNTyperMode(); </td> </tr> <%}// end if vietnamese%> <tr class="trowfinal"> <td colspan="2" align="center"> <input type="hidden" name="preview" value=""> <input type="hidden" name="draft" value=""> <input type="button" name="previewbutton" value=" onclick="javascript:PreviewForm()" class="liteoption"> <input type="button" name="submitbutton" value=" onclick="javascript:SubmitForm()" class="mainoption"> <input type="button" name="draftbutton" value=" onclick="javascript:DraftForm()" class="liteoption"> <input type="reset" value=" class="liteoption"> </td> </tr> </table> </form> <br/> </fmt:bundle> <%@ include file="footer.jsp"%> </body> </html>

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/addmessage.jsp,v 1.48 2005/01/31 19:22:50 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.48 $
 - $Date: 2005/01/31 19:22:50 $
 -
 - ====================================================================
 -
 - 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 contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="java.util.*" %>
<%@ page import="net.myvietnam.mvncore.exception.BadInputException" %>
<%@ page import="net.myvietnam.mvncore.util.ParamUtil" %>
<%@ page import="net.myvietnam.mvncore.filter.EnableEmotionFilter" %>
<%@ page import="net.myvietnam.mvncore.filter.DisableHtmlTagFilter" %>
<%@ page import="net.myvietnam.mvncore.filter.EnableHtmlTagFilter" %>
<%@ page import="net.myvietnam.mvncore.filter.EnableMVNCodeFilter" %>
<%@ page import="com.mvnforum.MVNForumGlobal" %>   
<%@ page import="com.mvnforum.MyUtil" %> 
<%@ page import="com.mvnforum.db.*" %>
<%@ page import="com.mvnforum.MVNForumConfig" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<%
int parentMessageID = 0; // Get ParentMessage ID for reply mode
try {
    parentMessageID = ParamUtil.getParameterInt(request, "parent");
} catch (BadInputException e) {
    // do nothing
}

boolean isPreviewing = ParamUtil.getParameterBoolean(request, "preview");
boolean attachMore = ParamUtil.getParameterBoolean(request, "AttachMore");
boolean isQuote = ParamUtil.getParameterBoolean(request, "quote");
boolean isForward = ParamUtil.getParameterBoolean(request, "forward");
boolean sendAll = false;
boolean enablePublicMessage = MVNForumConfig.getEnablePublicMessage();
if (enablePublicMessage && permission.canAdminSystem()) {
  sendAll = ParamUtil.getParameterBoolean(request, "sendall");
}
String  replymode = ParamUtil.getParameter(request, "reply");// possible value are "all" and "sender"

boolean addToSentFolder = ParamUtil.getParameterBoolean(request, "AddToSentFolder");
boolean trackMessage = ParamUtil.getParameterBoolean(request, "TrackMessage");

boolean buttonDisable = false; // it's use for Netmama

String messageToList = "";
String messageCcList = "";
String messageBccList = "";
String messageTopic = "";
String messageBody = "";
String messageIcon = "";

messageCcList = ParamUtil.getParameterSafe(request, "MessageCcList", false);
messageCcList = DisableHtmlTagFilter.filter(messageCcList);// always disable HTML

messageBccList = ParamUtil.getParameterSafe(request, "MessageBccList", false);
messageBccList = DisableHtmlTagFilter.filter(messageBccList);// always disable HTML

messageIcon = ParamUtil.getParameter(request, "MessageIcon");
messageIcon = DisableHtmlTagFilter.filter(messageIcon);// always disable HTML

messageTopic = ParamUtil.getParameter(request, "Topic");
messageTopic = DisableHtmlTagFilter.filter(messageTopic);// always disable HTML

if (isPreviewing) { // Preview mode
    messageToList = ParamUtil.getParameterSafe(request, "MessageToList", !(sendAll));
    messageToList = DisableHtmlTagFilter.filter(messageToList);// always disable HTML

    messageTopic = ParamUtil.getParameter(request, "MessageTopic", true);
    messageTopic = DisableHtmlTagFilter.filter(messageTopic);// always disable HTML

    messageBody  = ParamUtil.getParameter(request, "message", true);// use message instead of MessageBody
    messageBody = DisableHtmlTagFilter.filter(messageBody);// always disable HTML
} else {
    messageToList = ParamUtil.getParameterSafe(request, "MessageToList", false);
    messageToList = DisableHtmlTagFilter.filter(messageToList);// always disable HTML
}

if (parentMessageID != 0) { // forward
    MessageBean messageBean = (MessageBean) request.getAttribute("ParentMessageBean");
    String REPLY_PREFIX = "Re: ";
    String parentMessageTopic = messageBean.getMessageTopic();
    if (parentMessageTopic.startsWith(REPLY_PREFIX)) {
        messageTopic = parentMessageTopic;
    } else {
        messageTopic = REPLY_PREFIX + parentMessageTopic;
    }
    if (replymode.equals("all")) {
        // Review the ';' below
        messageToList += ";" + (messageBean.getMessageToList().length()>0 ? messageBean.getMessageToList() : "");
        messageCcList = messageBean.getMessageCcList();
    } else if (replymode.equals("sender")) {
        messageToList = messageBean.getMessageSenderName();
    }

    if (isQuote) {
        messageBody = "[quote]" + messageBean.getMessageBody() + "[/quote]";
    }
    
    if (isForward) {
        String FORWARD_PREFIX = "Fwd: ";
        if (parentMessageTopic.startsWith(FORWARD_PREFIX)) {
            messageTopic = parentMessageTopic;
        } else {
            messageTopic = FORWARD_PREFIX + parentMessageTopic;
        }
    }
}
%>
<html 
<head>
  <title> - 
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript" src="<%=contextPath%>/mvnplugin/mvnforum/js/mvncode.js">
<script language="JavaScript1.2" src="<%=contextPath%>/mvnplugin/mvnforum/js/vietuni.js" type="text/javascript">

<script type="text/javascript">
function SubmitForm() {
  if (ValidateForm() == true) {
    document.mvnform.submitbutton.disabled=true;
    document.mvnform.previewbutton.disabled=true;
    document.mvnform.draftbutton.disabled=true;
    document.mvnform.preview.value='';
    document.mvnform.draft.value='';
    document.mvnform.submit();
  }
}

function PreviewForm() {
  if (ValidateForm() == true) {
    document.mvnform.draft.value=''; // draft == false
    document.mvnform.preview.value='true';
    document.mvnform.action='addmessage';
    document.mvnform.submitbutton.disabled=true;
    document.mvnform.previewbutton.disabled=true;
    document.mvnform.draftbutton.disabled=true;
    document.mvnform.submit();
  }
}

function DraftForm() {
  if (ValidateForm() == true) {
    document.mvnform.draft.value='true';
    document.mvnform.preview.value=''; // preview == false
    document.mvnform.submitbutton.disabled=true;
    document.mvnform.previewbutton.disabled=true;
    document.mvnform.draftbutton.disabled=true;
    document.mvnform.submit();
  }
}

function ValidateForm() {
  if ((document.mvnform.sendall == null) || (document.mvnform.sendall.checked == false)) {
    if (isBlank(document.mvnform.MessageToList, "<fmt:message key="mvnforum.common.message.to"/>")) return false;
  }
  if (isBlank(document.mvnform.MessageTopic, "<fmt:message key="mvnforum.common.message.subject"/>")) return false;
  if (isBlank(document.mvnform.message, "<fmt:message key="mvnforum.common.message.body"/>")) return false;
  return true;
}
</script>
<!-- Language specific string constants used in mvncode.js -->
<script language="JavaScript">
// DO NOT ADD LINE-BREAKS BETWEEN THE "...." QUOTES!

// MINI-HELP MESSAGES
b_text = "<fmt:message key="mvnforum.user.addpost.js.message.boldtext"/>";
i_text = "<fmt:message key="mvnforum.user.addpost.js.message.italictext"/>";
u_text = "<fmt:message key="mvnforum.user.addpost.js.message.ulinetext"/>";
s_text = "<fmt:message key="mvnforum.user.addpost.js.message.stricetext"/>";

size_text = "<fmt:message key="mvnforum.user.addpost.js.message.sizetext"/>";
font_text = "<fmt:message key="mvnforum.user.addpost.js.message.fonttext"/>";
color_text = "<fmt:message key="mvnforum.user.addpost.js.message.colortext"/>";

url_text = "<fmt:message key="mvnforum.user.addpost.js.message.urltext"/>";
email_text = "<fmt:message key="mvnforum.user.addpost.js.message.emailtext"/>";
img_text = "<fmt:message key="mvnforum.user.addpost.js.message.imgtext"/>";

code_text = "<fmt:message key="mvnforum.user.addpost.js.message.codetext"/>";
php_text = "<fmt:message key="mvnforum.user.addpost.js.message.phptext"/>";
list_text = "<fmt:message key="mvnforum.user.addpost.js.message.listtext"/>";
quote_text = "<fmt:message key="mvnforum.user.addpost.js.message.quotetext"/>";

norm_text = "<fmt:message key="mvnforum.user.addpost.js.message.normaltext"/>";
enha_text = "<fmt:message key="mvnforum.user.addpost.js.message.enhancedtext"/>";

closecurrent_text = "<fmt:message key="mvnforum.user.addpost.js.message.tagclose"/>";
closeall_text = "<fmt:message key="mvnforum.user.addpost.js.message.tagcloseall"/>";

// ERROR MESSAGES
enhanced_only_text = "<fmt:message key="mvnforum.user.addpost.js.message.enhanconlytext"/>";
no_tags_text = "<fmt:message key="mvnforum.user.addpost.js.message.notagstext"/>";
already_open_text = "<fmt:message key="mvnforum.user.addpost.js.message.alreadyopentext"/>";

// TEXT FOR POP-UP PROMPTS
tag_prompt = "<fmt:message key="mvnforum.user.addpost.js.prompt.taginput"/>";
font_formatter_prompt = "<fmt:message key="mvnforum.user.addpost.js.prompt.fontformat"/>";

link_text_prompt = "<fmt:message key="mvnforum.user.addpost.js.prompt.linktext"/>";
link_url_prompt = "<fmt:message key="mvnforum.user.addpost.js.prompt.linkurl"/>";
link_email_prompt = "<fmt:message key="mvnforum.user.addpost.js.prompt.email"/>";

list_type_prompt = "<fmt:message key="mvnforum.user.addpost.js.prompt.listtype"/>";
list_item_prompt = "<fmt:message key="mvnforum.user.addpost.js.prompt.listitem"/>";
</script>

<script language="JavaScript">
function showMoreEmotion() {
    document.getElementById("MoreEmotion").style.display = '';
    document.getElementById("showlink").style.display = 'none';
    document.getElementById("hidelink").style.display = '';
}
function hideMoreEmotion() {
    document.getElementById("MoreEmotion").style.display = 'none';
    document.getElementById("showlink").style.display = '';
    document.getElementById("hidelink").style.display = 'none';
}
function checkMessageIcon() {
    var messageIcon = "<%=EnableHtmlTagFilter.filter(messageIcon)%>";//we must enable html in javascript string
    var icon = document.getElementById("MessageIcon" + messageIcon);
    if ( icon != null ) icon.checked = true;
}
function updateReceiverOption() {
    // if send all is on, we hide the following fields: To, Cc, Bcc
    var disp = document.getElementById("sendall").checked ? 'none' : '';
    document.getElementById("To").style.display = disp;
    document.getElementById("Cc").style.display = disp;
    document.getElementById("Bcc").style.display = disp;
}
</script>

<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>

<table width="95%" align="center">
  <tr class="nav">
    <td>


my book on functional programming

 

new blog posts

 

Copyright 1998-2019 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.