<!DOCTYPE html>
<%-- <%@ page contentType="text/html; charset=UTF-8"%> --%>
<%-- <%@ taglib prefix="s" uri="/struts-tags"%> --%>
<%@include file="/jsp/common/defaultTopLogin.jsp"%>
<script src="${contextPath}/js/dda/reporte/pagoSuscriptores/reportePagoSuscriptores.js?v=${versionJS}"></script>

<form name="myform" id="formaId" method="POST"
	enctype="multipart/form-data" >


	<div class="form-group">	
		<label class="col-xs-1 control-label">Estudio:</label> 
	       <div class="col-xs-3">
              <select name="idEstudio" id="estudioEleccion" class="form-control" >
	          <option value=""> - Todos - </option>
	             <c:forEach var="m" items="${estudios}">
		            <option value="${m.idEstudio}" <c:if test="${idEstudio == m.idEstudio}"> selected="selected"  </c:if> > ${m.descripcionEstudio} </option>
	             </c:forEach>
              </select>
    	   </div>


        <label  class="col-xs-1 control-label">Fecha:</label> 		   	
           <div class="col-xs-3">
              <input  id="fecha" value="${mes}" name="mes"  class="form-control"  onkeypress="return inputNegado(event);"  required> 
           </div> 
    	   
    	   
        <label class="col-xs-1 control-label">Tipo de Pago:</label> 
	       <div class="col-xs-3">
              <select name="tipoPago" id="tipoPagoEleccion" class="form-control" >
	          <option value=""> - Todos - </option>
	             <c:forEach var="m" items="${tiposPago}">
		            <option value="${m.value}" <c:if test="${tipoPago == m.value}"> selected="selected"  </c:if> > ${m.desc} </option>
	             </c:forEach>
              </select>
    	   </div>
    </div>
<%-- 

    <div class="form-group">	
    
	       <label  class="col-xs-2 control-label" for="numeroFactura">Numero de factura:</label> 		   	
           <div class="col-xs-4">
              <input type="text" id="numeroFactura"  value="${factura.numeroFactura}" name="factura.numeroFactura" class="form-control" required> 
           </div> 
           
            <label  class="col-xs-2 control-label" for="fechaFactura">Fecha de factura:</label> 		   	
           <div class="col-xs-4">
              <input  id="fechaFactura"  value="<fmt:formatDate pattern='dd/MM/yyyy' value='${factura.fechaFactura}'/>" name="factura.fechaFactura" class="form-control" required> 
           </div> 
    
    </div>
    	
    <div class="form-group">	

          <div class="form-group col-xs-1"></div> 
          <div class="form-group col-xs-6">
          <div class="form-group"></div>
          <div class="form-group"></div>
          <div class="form-group"></div>
          <div  class="form-group col-xs-6"> 
          <label  class="col-xs-6 control-label" for="sharepoint">Sharepoint:</label>
          <div class="col-xs-6">
              <c:forEach var="m" items="${siNoOpcion}">
	            <input type="radio" value="${m.value}" name="factura.sharepoint" id="sharepoint"  
		           <c:if test="${factura.sharepoint == m.value}"> checked  </c:if> 
		           required />
		             ${m.desc}
              </c:forEach>
          </div>
	      </div> 
	 	  <input type="hidden" id="approvedRadioButtonValor" value="${factura.approved}">
          <div  class="form-group col-xs-6"> 
          <label   class="col-xs-6 control-label" for="approved">Approved:</label>
          <div class="col-xs-6">
              <c:forEach var="m" items="${siNoOpcion}">
	            <input type="radio" value="${m.value}" name="factura.approved"  id="approved" 
		           <c:if test="${factura.approved == m.value}"> checked  </c:if> 
		           required />
		             ${m.desc}
              </c:forEach>
          </div>
	      </div>
    
          <div id="pagadoRadioButton" class="form-group col-xs-6"> 
          <label  class="col-xs-6 control-label" for="sharepoint">Paid:</label>
          <div class="col-xs-6">
              <c:forEach var="m" items="${siNoOpcion}">
	            <input type="radio" value="${m.value}" name="factura.pagado" id="paid"  
		           <c:if test="${factura.pagado == m.value}"> checked  </c:if> 
		           readonly />
		             ${m.desc}
              </c:forEach>
          </div>
	      </div> 
	      
         <div  id="sapRadioButton" class="form-group col-xs-6"> 
          <label   class="col-xs-6 control-label" for="approved">SAP:</label>
          <div class="col-xs-6">
              <c:forEach var="m" items="${siNoOpcion}">
	            <input type="radio" value="${m.value}" name="factura.sap"  id="sap" 
		           <c:if test="${factura.sap == m.value}"> checked  </c:if> 
		           readonly />
		             ${m.desc}
              </c:forEach>
          </div>
	      </div>
	      </div>  

          <div class="form-group col-xs-5">            
	        <label class="col-xs-2 control-label" for="comentario">Comentarios:</label>
            <textarea  id="comentario" name="factura.comentario" 
                         rows="5" maxlength="490" class="col-xs-10 form-control">${factura.comentario}</textarea>
	      </div> 
          <div class="form-group col-xs-1"></div> 
	
	</div>
	--%>
	
	<div class="form-group"></div> 
    <div class="form-group"></div> 
      
    <div class="form-group">
    	
    	<div class="col-xs-1"></div>       
    	
    	
    	<div class="col-xs-6">
	 	     <div class="col-xs-6">       
                 <button class="btn btn-success" id="botonConsultar" type="button">Consulta Reporte</button>
	         </div>
	         <div class="col-xs-6">
	         
	             <button class="btn btn-info" id="botonExporta" type="button">Exporta Reporte</button>
	         
	 	       <!--   <div id='botonConsultarFactura'> </div> -->
	 	     </div> 
	    </div>
	    
	    <div class="col-xs-5"></div>       
	    
    </div>
	
	<div class="form-group"></div>
	<div class="form-group"></div>
	<div class="form-group"></div>
	
	<div id='tablaPagoSuscriptores'> </div>

</form>


<jsp:include page="/jsp/dda/contrato/common/uploadDocument.jsp" />
<%@include file="/jsp/common/defaultBottomLogin.jsp"%>
