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

<style>
	table.ui-jqgrid-btable tr.jqgfirstrow td { border: none; }
	table.ui-jqgrid-btable { height: 1px; }
</style>

<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/license/titulo/titulosUpload.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/license/titulo/formManager.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/license/titulo/tituloService.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/license/titulo/tituloGrid.js?v=${versionJS}"></script>
<script type="text/javascript" language="javascript" src="${contextPath}/js/dda/contrato/license/titulo/tituloController.js?v=${versionJS}"></script>

<script src="${contextPath}/js/common/perfil/perfilController.js?v=${versionJS}"></script>
<script src="${contextPath}/js/common/perfil/perfilService.js?v=${versionJS}"></script>


<jsp:include page="/jsp/dda/contrato/license/titulo/busquedaForm.jsp" />

<script LANGUAGE="JAVASCRIPT">
    var edoCto = ${estatusContrato};
    var pmn    = ${request.pmn};
</script>
    
<s:form  class="form-horizontal" action="#">
    
	<input type="hidden" id="idLAvalable" name="idLAvalable" value="${clista.idLista}">
	<input type="hidden" id="tipoAmortizacion" name="tipoAmortizacion" value="${tipoAmortizacion}">
	<input type="hidden" id="idMDLAvalable" name="idMDLAvalable" value="<fmt:formatDate pattern='MM/dd/yyyy' value='${clista.fechaInicioPlusOneDay}' />" >
	<input type="hidden" name="fechaAmortizacion" id="fechaAmortizacion" value="${fechaAmortizacion}"> 
	<fieldset>
	<div class="form-group" id="divBotonesTitulo">
		<div class="col-md-12 " align="right" >
			<a href="${contextPath}/contrato/listado/irListado?pmn=${sessionScope.pmnReturn}&tipoContrato=${tipoContrato}" class="btn btn-default" roll="button" >Regresar</a>
			<c:if test="${estatusContrato == 1}">
			<button id="bAgregar"          class="btn btn-primary" type="button" onclick="tituloController.open('EditForm');">Agregar T&iacute;tulo</button>
			<button id="bEditar"           class="btn btn-primary" type="button" onclick="tituloController.openCambio();">Editar T&iacute;tulo</button>
			<button id="bEliminar"         class="btn btn-primary" type="button" onclick="tituloController.openBaja();">Eliminar T&iacute;tulo</button>
			<button id="bAjustarVentana"   class="btn btn-primary" type="button" onclick="tituloController.openCambioMultiple('VentanaForm');">Ajustar Ventana</button>			
			<button id="bSubir"            class="btn btn-primary" type="button" onclick="tituloController.openCargarDocumento();">Subir Archivo</button>
			<button id="bGuardar"          class="btn btn-success" type="button" onclick="tituloController.guardarCambios();">Guardar Cambios</button>
			</c:if>
		</div>
	</div>
	</fieldset>
</s:form>

<div class="form-group" id="dynTitulosGrid">
	<table id="tituloGird"></table>
	<div id="tituloGirdPager"></div>
</div>


<jsp:include page="/jsp/dda/contrato/license/titulo/titulosForm.jsp" />
<jsp:include page="/jsp/dda/contrato/license/titulo/cambioMultipleForm.jsp" />
<jsp:include page="/jsp/dda/contrato/license/titulo/eliminarForm.jsp" />
<jsp:include page="/jsp/dda/contrato/license/titulo/cargaForm.jsp" />


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