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

<!-- Modal -->
<div class="modal fade bs-example-modal-lg" id="modalCategoriaForm">
	<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">Ajustar Categor&iacute;a</h3>
			</div>
			<div class="modal-body">

				<s:form id="idCategoriaForm" class="form-horizontal col-md-10"
					action="#">
					<fieldset>
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Categor&iacute;a DDA</label>
							<div class="col-md-4">
								<select name="pagoCateg" class="form-control "></select>
							</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="tituloController.cambioMultiple('CATEGORIA','CategoriaForm');" >Guardar</button>
			</div>
		</div>
	</div>
</div>

<!-- Modal -->
<div class="modal fade bs-example-modal-lg" id="modalVentanaForm">
	<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">Ajustar Ventana</h3>
			</div>
			<div class="modal-body">

				<s:form id="idVentanaForm" class="form-horizontal col-md-10"
					action="#">
					<fieldset>
						<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" clazz="form-control required datepicker"  >
									</v:datePicker>
								</div>
								<div class="col-md-6">
									<v:datePicker name="fechaFin" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>
							</div>
						</div>
						<label id="errVentana" style="display:none; color:red;">La fecha Fin debe ser mayor o igual al d&iacute;a de hoy.</label>
					</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="tituloController.validarVentanaCambio();">Guardar</button>
			</div>
		</div>
	</div>
</div>

<div class="modal fade bs-example-modal-lg" id="modalCambioForm">
	<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">Trasladar T&iacute;tulo</h3>
			</div>
			<div class="modal-body">
				<s:form id="idCambioForm" class="form-horizontal col-md-10" action="#">
					<fieldset>
					<input type="hidden" name="idTituloCnt"  >
					<input type="hidden" name="idLista"  >
					<input type="hidden" id="idTitAntTras" name="idTituloCntant"  >					
						
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">T&iacute;tulo a Trasladar</label>
								<div class="col-md-4">
									<input type="text" class="form-control " id="tTrasladar" name="" readOnly>
								</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Fecha Contabilizaci&oacute;n</label>
							<div  class="col-md-8" >
								<div class="col-md-6">
									<v:datePicker name="fechaContabilizacion" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>								
							</div>
						</div>
						
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Id BroadView</label>
								<div class="col-md-4">
									<input type="text" class="form-control " name="idBv"  >
								</div>
						</div>
						
						<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Nombre &uacute;nico</label>
								<div class="col-md-4">
									<input type="text" class="form-control required" name="nombreUnico"  >
								</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">T&iacute;tulo</label>
							<div class="col-md-4">
								<input type="text" class="form-control required" name="descTitulo" >
							</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"  >
								</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"  >
								</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" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>
								<div class="col-md-6">
									<v:datePicker name="fechaFin" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>
							</div>
						</div>

						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Aņo Contrato</label>
							<div class="col-md-4">
								<input type="text" class="form-control" name="anioContrato"  >
							</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Categor&iacute;a Estudio</label>
							<div class="col-md-4">
								<select name="pagoCateg" class="form-control "></select>
							</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label ">Categor&iacute;a</label>
							<div class="col-md-4">
								<select name="categoriaTit" class="form-control required"></select>
							</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 class="col-md-4">
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="flgcalculoPrecio"> Precio Anual
								</label>
							</div>
						</div>

						<c:if test="${'EXCLUSIVIDAD' eq tipoAmortizacion }">
							<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Porcentaje Exclusivo</label>
								<div class="col-md-4">
									<input type="text" class="form-control number" name="pjeExclusivo" id="pjeExclusivo" >
								</div>
							</div>
							<div class="form-group">
								<label for="inputEmail3" class="col-md-2  control-label">Meses Exclusivo</label>
								<div class="col-md-4">
									<input type="text" class="form-control number" name="mesesExclusivo" id="mesesExclusivo" >
								</div>
							</div>
						</c:if>
						
	
						<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>																																
							</div>
							
						</div>
						
						<br>
						<label id="errTraslado" style="display:none; color:red;">El t&iacute;tulo no debe tener Precio y Categoria</label>
					</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="tituloController.validarTrasladarCambio();" >Guardar</button>
			</div>
		</div>
	</div>
</div>


<div class="modal fade bs-example-modal-lg" id="modalCostoForm">
	<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">Ajustar Costo</h3>
			</div>
			<div class="modal-body">
				<s:form id="idCostoForm" class="form-horizontal col-md-10" action="#">
					<fieldset>
																																																		
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Fecha Contabilizaci&oacute;n</label>
							<div  class="col-md-8" >
								<div class="col-md-6">
									<v:datePicker name="fechaContabilizacion" clazz="form-control required datepicker" >
									</v:datePicker>
								</div>								
							</div>
						</div>

						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Aņo Contrato</label>
							<div class="col-md-4">
								<input type="text" class="form-control" name="anioContrato"  >
							</div>
						</div>
						
						<div class="form-group">
							<label for="inputEmail3" class="col-md-2  control-label">Categor&iacute;a Estudio</label>
							<div class="col-md-4">
								<select name="pagoCateg" class="form-control "></select>
							</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 class="col-md-4">
								<label for="inputEmail3" class="control-label"> 
									<input type="checkbox" name="flgcalculoPrecio"> Precio Anual
								</label>
							</div>
						</div>
																							
						<br>
						<label id="errCosto" style="display:none; color:red;">El t&iacute;tulo no debe tener Precio y Categor&iacute;a</label>
					</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="tituloController.validarCostoCambio();" >Guardar</button>
			</div>
		</div>
	</div>
</div>