<%@ include file="/project/include.jsp" %>
<%@page import="it.cedaf.icare.business.managers.quadririassuntivi.CustomInfo"%>
<%@page import="it.cedaf.icare.quadririassuntivi.view.dto.CustomItem"%>
<%@page import="it.cedaf.commons.DateLib"%>
<%@page import="it.cedaf.commons.StringLib"%>

<script type="text/javascript">
	function openAttivitaDataManagement(idSoggetto) {
		buiOpenNewDataManagementAsHiddenChild('attivita.attivita', '&init=it.cedaf.icare.attivita.etc.AttivitaDataManagementInitializer&parentKey=' 
				+ '&parentKey=' + bui_datamanagement.getKey()
				+ '&idSoggetto=' + idSoggetto);
	}
</script>

<%
	CustomItem item = (CustomItem) request.getAttribute("currentItem");
	CustomInfo info = item.getCustomInfo();
	
	String responsabile = info.getOperatoreResponsabile();
	String emailAddress = info.getMailOperatoreResponsabile();
	if (!StringLib.isNullOrEmptyString(emailAddress)) {
		responsabile = "<a href='mailto:" + emailAddress + "'>" + responsabile + "</a>";
	}
%>


<td width="50%">
	<table>
		<tr>
			<td class="gantt-detail-label"><shell:label prop="data" /></td>
			<td class="gantt-detail-value"><%=DateLib.format(item.getFrom())%></td>	
		</tr>
		<tr>
			<td class="gantt-detail-label"><shell:label prop="oraInizio" /></td>
			<td class="gantt-detail-value"><%=info.getProperty("oraInizio")%></td>	
		</tr>
		<tr>
			<td class="gantt-detail-label"><shell:label prop="oraFine" /></td>
			<td class="gantt-detail-value"><%=info.getProperty("oraFine")%></td>	
		</tr>
		<tr>
			<td class="gantt-detail-label"><shell:label prop="operatoreResponsabile" /></td>
			<td class="gantt-detail-value"><%=responsabile%></td>	
		</tr>
	</table>
</td>
<td width="50%">
	<table>
		<tr>
			<td class="gantt-detail-label"><shell:label prop="tipoAttivita" /></td>
			<td class="gantt-detail-value"><%=info.getProperty("tipoAttivita")%></td>	
		</tr>
		<tr>
			<td class="gantt-detail-label"><shell:label prop="descrizione" /></td>
			<td class="gantt-detail-value"><%=info.getProperty("descrizione")%></td>	
		</tr>
		<tr>
			<td class="gantt-detail-label"><shell:label prop="erogata" /></td>
			<td class="gantt-detail-value"><%=info.getProperty("erogata")%></td>
		</tr>
	</table>
</td>