<%@ 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"/>

  <tr>
    <td align="left" width="100%" class="color_toolbar" colspan="1">
      <table cellpadding="0" cellspacing="5" width="100%">
        <tr><td align="left" class="color_toolbar"><b><vkc:message key="project.label.contacts"/></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 nowrap="nowrap">
      <table cellpadding="0" cellspacing="5" border="0">

        <tr><td nowrap="nowrap"><b><vkc:message key="project.label.leader"/>:</b></td></tr>
        <a href="#" id="projectLeaders" name="projectLeaders"></a>
        <tr><td colspan="1"><vkc:img page="/templates/${template.name}/gfx/trans.gif" alt="" height="5" border="0"/></td></tr>
        <tr>
          <td nowrap="nowrap" width="100%" align="left">
          <logic:iterate name="form" property="leaders" id="userInfo" type="vkc.view.bean.UserInfo">
          <vkc:link href='<%="javascript:openUserInfoWindow(" + userInfo.getUserId() + ");"%>' style="font-weight:normal;"><vkc:write name="userInfo" property="lastnameLabel"/></vkc:link><br>
          </logic:iterate>
          </td>
        </tr>

        <tr><td><vkc:img page="/templates/${template.name}/gfx/trans.gif" alt="" height="20"/></td></tr>

        <tr><td nowrap="nowrap"><b><vkc:message key="project.label.internal.contacts"/>:</b></td></tr>
        <a href="#" id="internalContacts" name="internalContacts"></a>
        <tr><td colspan="1"><vkc:img page="/templates/${template.name}/gfx/trans.gif" alt="" height="5" border="0"/></td></tr>
        <tr>
	      <td nowrap="nowrap" width="100%" align="left" valign="top">
	      <logic:iterate name="form" property="members" id="userInfo" type="vkc.view.bean.UserInfo">
	      <vkc:link href='<%="javascript:openUserInfoWindow(" + userInfo.getUserId() + ");"%>' style="font-weight:normal;"><vkc:write name="userInfo" property="lastnameLabel"/></vkc:link><br>
	      </logic:iterate>
	      </td>
        </tr>

        <tr><td><vkc:img page="/templates/${template.name}/gfx/trans.gif" alt="" height="20"/></td></tr>

        <tr><td nowrap="nowrap"><b><vkc:message key="project.label.external.contacts"/>:</b></td></tr>
        <a href="#" id="externalContacts" name="externalContacts"></a>
        <tr><td colspan="1"><vkc:img page="/templates/${template.name}/gfx/trans.gif" alt="" height="5" border="0"/></td></tr>
        <tr>
          <td nowrap="nowrap" width="100%" align="left" valign="top">
          <logic:notEmpty name="form" property="externalContacts">
          <logic:equal name="form" property="tinyMCECompatible" value="true">
          <vkc:write name="form" property="project.externalContacts" displayAsHTML="true" renderNewLine="true"/>
          </logic:equal>
          <logic:equal name="form" property="tinyMCECompatible" value="false">
          <vkc:write name="form" property="project.externalContacts" stripHTML="true" renderNewLine="true"/>
          </logic:equal>
          </logic:notEmpty>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <vkc:hline lineHeight="1" lineClass="hline" colspan="1" topSpace="0" bottomSpace="5"/>
  <tr>
    <td nowrap="nowrap" width="100%" align="center">
      <vkc:button property="action.back.to.subfolder" onclick="javascript:disableAllButtonsAndSubmit(this);"><vkc:message key="button.back"/></vkc:button>
    </td>
  </tr>
</table>