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

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

<div id="sospensioni_main_container">
	<div id="sospensioni_table_container">
	<table id="lista-sospensioni" width="100%" cellspacing="1" cellpadding="0" border="0" bgcolor="#cccccc" style="margin-bottom:20px">
		<tr>
			<td class="grid-title" style="text-align:center">Dal</td>
			<td class="grid-title" style="text-align:center">Al</td>
			<td class="grid-title">Gruppo Prestazioni</td>
			<td class="grid-title">Tipo Prestazione</td>
			<td style="width:20px" class="grid-title">&nbsp;</td>
		</tr>
	</table>
	</div>
	<div id="sospensioni_form_container">
		<form id="frmSospensione" name="frmSospensione" >
		<table cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" width="100%">
			<tr>
				<td style="width:100%">
					<table cellspacing="3" cellpadding="0" border="0" bgcolor="#ffffff" width="100%">
						<tr>
							<td class="form-label" style="width:80px;"><span>Dal</span><span class="form-label-required"> *</span></td>
							<td class="form-values"><input id="sosp-id" type="hidden" value="" name="sosp-id"/>
								<select id="sospGiornoDa" class="form-input" name="sospGiornoDa"   />
							</td>
							<td class="form-label" style="width:80px;"><span>Al</span></td>			
							<td class="form-values">
								<select id="sospGiornoA" class="form-input" name="sospGiornoA"   />
							</td>
						</tr>			
						<tr>
							<td class="form-label" style="width:80px;"><span>Gruppo</span></td>
							<td class="form-values" colspan="3">
								<select id="sospGruppoPrestazione" class="form-input" name="sospGruppoPrestazione" style="max-width: 98%; _width: auto !important; width: 98%">
								</select>
							</td>
						</tr>
						<tr>
							<td class="form-label" style="width:80px;"><span>Tipo</span></td>
							<td class="form-values" colspan="3">
								<select id="sospTipoPrestazione" class="form-input" name="sospTipoPrestazione" style="max-width: 98%; _width: auto !important; width: 98%;">
								</select>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td style="width:100%">
					<div id="sospensione_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.getSospCustomTile() != null && confDto.getSospCustomTile().length() > 0) { %>						
							<div id="customSospDiv_<%=confDto.getIdentifier()%>" style="display:none;"><%request.setAttribute("confDto", confDto); %><j:tile name="<%=confDto.getSospCustomTile()%>" /></div>
							<% } %>
						<% } %>
					<% } %>		
					</div>
				</td>
			</tr>
			<tr>
				<td style="width:100%">
					<div id="sosp_buttons" >
						<input type="button" id="add_sosp_button" disabled="disabled" class="sosp_button" name="add_sosp_button" height="10px" width="20px" value="Aggiungi" />
						<input type="button" id="edit_sosp_button" disabled="disabled" class="sosp_button" name="edit_sosp_button" height="10px" width="20px" value="Aggiorna" />
					</div>
				</td>
			</tr>			
		</table>	
		</form>	
	</div>
</div>