<%@ include file="/project/include.jsp" %>

<%@page import="java.util.Iterator"%>
<%@page import="it.cedaf.icare.interventi.view.dto.TabellaAccessiConfDto"%>

<div class="div_decorator_intero_1"
	style="background: #FFFFFF none repeat scroll 0% 0%;
		font-size: 1px;
		line-height: 1px;
		height: 1px;
		display: block;
		position: relative;
		top: 0pt;
		left: 0pt;
		overflow: hidden;
		margin-right: 2px;
		margin-left: 2px;"></div>
<div class="div_decorator_intero_2"
	style="background: #FFFFFF none repeat scroll 0% 0%;
		font-size: 1px;
		line-height: 1px;
		height: 1px;
		display: block;
		position: relative;
		top: 0pt;
		left: 0pt;
		overflow: hidden;
		margin-right: 1px;
		margin-left: 1px;"></div>
<div class="div_prestazione_intero"
	style="background: #FFFFFF none repeat scroll 0% 0%;
		width: 100%;
		top: 0pt;
		left: 0pt;
		position: relative;
		overflow : hidden;">
	<form id="frmPrestazione" name="frmPrestazione" >
	<table cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" width="100%">
		<tr>
			<td style="width:100%">
				<table cellspacing="3" cellpadding="0" border="0" width="100%">
					<tbody>
						<tr>
							<td class="form-label" style="width:80px;"><span>Gruppo</span><span class="form-label-required"> *</span></td>
							<td class="form-values" colspan="2">
								<select id="gruppoPrestazione" class="form-input" name="gruppoPrestazione" style="max-width: 99%; _width: auto !important; width: 99%">
								</select>
							</td>
						</tr>
						<tr>
							<td class="form-label" style="width:80px;" id="td-prest-tipo-lbl"><span>Tipo</span></td>
							<td class="form-values" colspan="2">
								<select id="tipoPrestazione" class="form-input" name="tipoPrestazione" size="5" multiple="multiple" style="max-width: 99%; _width: auto !important; width: 99%;">
								</select>
							</td>
						</tr>
						<tr>
							<td class="form-label" style="width:80px;"><span>Quantit�</span><span class="form-label-required"> *</span></td>
							<td class="form-values" colspan="2">
								<input id="quantita" class="form-short-text" type="text" value="" name="quantita"/>
							</td>
						</tr>
						<tr>
							<td class="form-label" style="width:80px;" id="td-prest-orario-lbl"><span>Ora inizio/fine</span></td>
							<td class="form-values">
								<input id="oraInizio" class="form-short-text" type="text" value="" name="oraInizio"/>
							</td>
							<td class="form-values">
								<input id="oraFine" class="form-short-text" type="text" value="" name="oraFine"/>
							</td>
						</tr>
						<tr id="trPrestOp" style="display:none">
							<td class="form-label" style="width:80px;" id="td-prest-op-lbl"><span id="slblOp">Operatori</span><span id="sOpReq" style="display:none" class="form-label-required"> *</span></td>
							<td class="form-values" colspan="2">
								<select id="operatori" class="form-input" name="operatori" size="5" multiple="multiple" style="max-width: 99%; _width: auto !important; width: 99%;">
								</select>
							</td>
						</tr>
						<tr id ="trPrestErog">
							<td class="form-label" style="width:80px;"><span>Erogata</span></td>
							<td class="form-values" colspan="2">
								<input id="erogata" type="checkbox" name="erogata" checked="checked"/>
							</td>
						</tr>
						<tr id ="trPrestNonFatt">
							<td class="form-label" style="width:80px;"><span>Non fatturabile</span></td>
							<td class="form-values" colspan="2">
								<input id="nonFatturabile" type="checkbox" name="nonFatturabile" />
							</td>
						</tr>						
					</tbody>	
				</table>
			</td>
		</tr>
		<tr>
			<td style="width:100%" >
				<div id="prestazione_detail_ext" style="display:none;margin:0px;padding:0px;width:100%">
					<% TabellaAccessiConfDto[] confDtos = (TabellaAccessiConfDto[])request.getAttribute("dto_config");  %>
					<% if (confDtos != null) { %>
						<% for (int c = 0; c<confDtos.length; c++) {
							  TabellaAccessiConfDto confDto = confDtos[c];
							  if (confDto.getPrestCustomTile() != null && confDto.getPrestCustomTile().length() > 0) { %>						
							<div id="customDetailDiv_<%=confDto.getIdentifier()%>" style="display:none;"><%request.setAttribute("confDto", confDto); %><j:tile name="<%=confDto.getPrestCustomTile()%>" /></div>
							<% } %>
						<% } %>
					<% } %>
				</div>
			</td>
		</tr>		
		<tr>
			<td style="width:100%" >
				<div id="div_prest_buttons" class="prest_buttons">
					<input type="button" id="add_button" class="add_button" name="add_button" height="10px" width="20px" value="Aggiungi" />
					<input type="button" id="edit_button" class="edit_button" name="edit_button" height="10px" width="20px" value="Aggiorna" />
				</div>
			</td>
		</tr>	
	</table>
	</form>
</div>

<div class="div_decorator_intero_2"
	style="background: #FFFFFF none repeat scroll 0% 0%;
		font-size: 1px;
		line-height: 1px;
		height: 1px;
		display: block;
		position: relative;
		top: 0pt;
		left: 0pt;
		overflow: hidden;
		margin-right: 1px;
		margin-left: 1px;"></div>
<div class="div_decorator_intero_1"
	style="background: #FFFFFF none repeat scroll 0% 0%;
		font-size: 1px;
		line-height: 1px;
		height: 1px;
		display: block;
		position: relative;
		top: 0pt;
		left: 0pt;
		overflow: hidden;
		margin-right: 2px;
		margin-left: 2px;"></div>