<?php
include_once("../src/conexion.php");

$link=ConectarseServidor();
ConectarseBaseDatos($link);
$deudor=cliente(); //consultamos los clientes

?>
<!DOCTYPE html>
<html>
    <head>
        <title>Presta Ya ! - Amortizacion</title>      
        <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css" />
        
        <script type="text/JavaScript" src="../js/jQuery.js"></script>
        <script src="../js/bootstrap.min.js"></script>
  		<script src="../js/bootstrapValidator.js"></script>
        <script type="text/JavaScript" src="../js/chosen.jquery.js"></script>
        <script type="text/JavaScript" src="../js/forms.js"></script> 
		<script type="text/JavaScript" src="../js/Reporte.js"></script> 
        <script>
      $(function() {
        $('.chosen-select').chosen();
        $('.chosen-select-deselect').chosen({ allow_single_deselect: true });
      });
    </script>
    </head>
    <body data-twttr-rendered="true">
		<div class="container">

			<div class="row">
			    <div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
					<form role="form">
						<input type="hidden" id="hidden" name="new"  value="new">
						<h2>Recaudo</h2>                                
                                                
                        <div class="row">
							<div class="col-xs-12 col-sm-6 col-md-6">
								<div class="form-group">
                                    <label><h4>Deudor</h4></label>
                                    <select name="txtPagoDeudor" id="txtPagoDeudor" data-placeholder="Seleccione el Deudor" class="chosen-select">
                                      <option value=""></option>
                                      <?php
                                          while ($row = mysql_fetch_array($deudor)){
                                              ?>
                                              <option value="<?php echo  $row['cedula']; ?>"><?php echo  $row['cedula']."-".$row['cliente']; ?></option>
                                              <?php
                                          }
                                      ?>
                                    </select>
								</div>
							</div>
						</div>

						<hr class="colorgraph">
						<div class="row">
							<div class="col-xs-12 col-md-6"><div class="btn btn-primary btn-block btn-lg" tabindex="7" id="btnBuscarCredito">Buscar Creditos</div></div>
						</div>
					</form>
				</div>
			</div>
		</div>
    </body>
    <div class="container">
              <div class="row">
                  <table class="table">
                      <thead>
                          <tr>
                              <th>
                                  No. Credito
                              </th>
                              <th>
                                  Valor Cuota
                              </th>
                              <th>
                                  Saldo Capital
                              </th>
                              <th>
                                  Cuotas pendientes
                              </th>
                          </tr>	
                      </thead>
                      <tbody id="BodyTable">
          
                      </tbody>
                  </table>
              </div>
	</div>
</html>