<%@ page language="java" buffer="64kb" %>

<%@ taglib uri="struts-html"     prefix="html"  %>
<%@ taglib uri="struts-bean"     prefix="bean"  %>
<%@ taglib uri="struts-logic"    prefix="logic" %>
<%@ taglib uri="vkc-taglib"      prefix="vkc"   %>

<vkc:init/>

<table cellpadding="0" cellspacing="0" border="0" width="100%">

  <bean:define id="form" name="form" scope="request" type="vkc.procoba.project.ProjectViewForm"/>

  <html:hidden property="viewMode" name="form"/>
  <vkc:hidden property="showTinyMCEToolbar"/>

  <logic:notEmpty name="form" property="project">

	<logic:equal name="form" property="tinyMCECompatible" value="true">
	<logic:equal name="form" property="showTinyMCEToolbar" value="false">
	<style type="text/css">
	.mceToolbar {
	    display:none;
	}
	</style>
	</logic:equal>
	</logic:equal>

    <tr>
      <td align="left" width="100%" class="color_toolbar" colspan="1">
        <table cellpadding="0" cellspacing="5" width="100%">
          <tr><td align="left"><b><vkc:message key="project.label.new.message"/></b></td></tr>
        </table>
      </td>
    </tr>

    <tr><td background="<vkc:rewrite page='/templates/${template.name}/gfx/dotted-line-h.gif'/>"><vkc:img page="/templates/${template.name}/procoba/images/void.gif" alt="" width="1" height="1"/></td></tr>

    <tr>
      <td align="left" width="100%" colspan="1">
        <table cellpadding="0" cellspacing="5" width="100%">
          <tr>
            <td width="100%">
	    	  <logic:equal name="form" property="tinyMCECompatible" value="true">
	    	  <logic:equal name="form" property="showTinyMCEToolbar" value="true">
			  <vkc:link href="javascript:toggleTinyMCEToolbar();"><vkc:img page="/templates/${template.name}/gfx/minus-big.gif" border="0" titleKey="vkc.string.htmleditor"/></vkc:link>
	    	  </logic:equal>
	    	  <logic:equal name="form" property="showTinyMCEToolbar" value="false">
			  <vkc:link href="javascript:toggleTinyMCEToolbar();"><vkc:img page="/templates/${template.name}/gfx/plus-big.gif" border="0" titleKey="vkc.string.htmleditor"/></vkc:link>
	    	  </logic:equal>
	    	  </logic:equal>
              <vkc:textarea property="newMessage" style="width:100%;" rows="10" />
            </td>
          </tr>

        </table>
      </td>
    </tr>

    <tr>
      <td align="center" width="100%">
        <vkc:button property="action.save.new.message" onclick="javascript:disableAllButtonsAndSubmit(this);"><vkc:message key="project.label.send" /></vkc:button>
        <vkc:button property="action.cancel.new.message" onclick="javascript:disableAllButtonsAndSubmit(this);"><vkc:message key="project.label.cancel" /></vkc:button>
      </td>
    </tr>    

  </logic:notEmpty>

</table>
