<%@include file="/jsp/common/taglibs.jsp"%>

<!-- Modal -->
<div class="modal fade bs-example-modal-lg" id="modalTitulo">
	<div class="modal-dialog  modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-hidden="true">×</button>
				<h3 class="modal-title">Titulos</h3>
			</div>
			<div class="modal-body">

				<s:form id="idFormTitulo" class="form-horizontal col-md-10"
					action="#">
					<fieldset>
					<input type="hidden" name="idTituloCnt"  >
					<input type="hidden" name="idLista"  >
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Titulo</label>
							<div class="col-md-4">
								<input type="text" class="form-control required" name="descTitulo" id="descTitulo" >
							</div>
						</div>
						
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">NombreUnico</label>
								<div class="col-md-4">
									<input type="text" class="form-control required" name="nombreUnico" id="nombreUnicoForm" >
								</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Ventana</label>
							<div  class="col-md-8" >
								<div class="col-md-6">
									<v:datePicker name="fechaInicio" id="fechaInicio" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>
								<div class="col-md-6">
									<v:datePicker name="fechaFin" id="fechaFin" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>
							</div>
						</div>

						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Categoria DDA</label>
							<div class="col-md-4">
								<select name="pagoCateg" id="pagoCategForm" class="form-control "></select>
							</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Categoria</label>
							<div class="col-md-4">
								<v:select items="${categoriaContrato}"  id="categoriaForm"  name="categoriaTit" value="" clazz="form-control required" 
								 />
							</div>
						</div>
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Episodio</label>
								<div class="col-md-4">
									<input type="text" class="form-control" name="episodio" id="episodioForm" >
								</div>
						</div>
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Temporada</label>
								<div class="col-md-4">
									<input type="text" class="form-control" name="temporada" id="episodioForm" >
								</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Precio</label>
							<div class="col-md-4">
								<input type="text" class="form-control number" name="precioAnual" id="precioAnual" >
							</div>
						</div>

						<div class="checkbox">
							<label for="inputEmail3" class="col-md-2  control-label">Caracteristicas</label>
							<div class="checkbox">
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="briefcase"> Briefcase
								</label>
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="dto" > DTO
								</label>
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="dtr" > DTR
								</label>
								
							</div>
						</div>
						<div class="checkbox">
							<label for="inputEmail3" class="col-md-2  control-label">Formatos</label>
							<div class="checkbox">
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="sd"> SD
								</label>
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="hd" > HD
								</label>
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="threed" > 3D
								</label>
							</div>
						</div>


					</fieldset>
				</s:form>

			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal" >Cerrar</button>
				<button type="button" class="btn btn-primary" onclick="titulosController.saveRow();" >Guardar</button>
			</div>
		</div>
	</div>
</div>

<div class="modal fade bs-example-modal-lg" id="modalResultadosCarga">
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-hidden="true">×</button>
				<h3 class="modal-title">Resultados</h3>
			</div>
			<div class="modal-body">
				<table>
					<tr>
						<td align="right" width="70%"  >Total de titulos:</td>
						<td align="right" width="30%" id="totalResultFile" ></td>
					</tr>
					<tr>
						<td align="right" width="70%">Total de titulos cargados:</td>
						<td align="right" width="30%" id="cargadoResultFile"></td>
					</tr>
					<tr>
						<td align="right" width="70%">Total de titulos rechazados:</td>
						<td align="right" width="30%" id="rechazatoResultFile"></td>
					</tr>
					<tr>
						<td align="right" width="70%">Monto  carga[$]:</td>
						<td align="right" width="30%" id="montoResultFile" ></td>
					</tr>
				</table>
				<div id="errorFile" align="center" >
					<a href="#" onclick="titulosController.descargarArchivoErrores()"  >REVISAR ERRORES DE CARGA</a>
				</div>
			</div>
		</div>
	</div>
</div>
