
<div class="modal fade" id="largeModal" tabindex="-1" role="dialog" aria-labelledby="largeModalLabel" aria-hidden="true">
                    <div class="modal-dialog modal-lg" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <h5 class="modal-title" id="largeModalLabel">Crear Nuevo Seguro Vehicular</h5>
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                    <span aria-hidden="true">&times;</span>
                                </button>
                            </div>
                            <div class="modal-body">
                            <form  method="POST" action="../controller/CrearSeguro.php" enctype="multipart/form-data">
                            <div class="row">
                               
                                <div class="col">
                                <small>Nro. Placa:</small>
                                <select name="nro_placa" class="form-control"  placeholder="Password..." >
                                <option value="">Seleccione Placa Vehículo:</option>
                                <?php
                                $database = new Connection();
                                $db = $database->open();
                                $sql = 'SELECT distinct placa FROM `flota`';
                                        foreach ($db->query($sql) as $row) {
                                echo '<option value="'.$row['placa'].'">'.$row['placa'].'</option>';
                                }
                                $database->close();
                                ?>
                                </select>
                                </div>
                                <div class="col">
                                <small>Compañia de Seguros:</small>
                                <input type="text" name="aseguradora" class="form-control" placeholder="Compañia de Seguros" onkeyup="this.value = this.value.toUpperCase();" required>
                                </div>
                            </div>
                            <br>
                            <div class="row">
                                <div class="col">
                                <small>Nro. de Poliza:</small>
                                <input type="text" name ="nro_poliza_seguro" class="form-control" placeholder="Nro. de Poliza" required>
                                </div>
                                <div class="col">
                                <small>Fecha de Inicio:</small>
                                <input type="date" name="fecha_inicio" class="form-control" placeholder="Last name" required>
                                </div>

                            </div>
                            <br>
                            <div class="row">
                                <div class="col">
                                <small>fecha de Vencimiento:</small>
                                <input type="date" name ="fecha_vto" class="form-control" placeholder="Direccion Domicilio:" required>
                                </div>
                            

                            </div>
                         


                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
                                <button type="submit" name="agregar" class="btn btn-primary">Confirm</button>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>