  <div class="modal inmodal" id="myModal_<?php echo $provee3; ?>_<?php echo $pedido3; ?>" tabindex="-1" role="dialog" aria-hidden="true">
                                
                                <form class="form-horizontal" action="reg_pagos.php" method="POST" name="formulario">
                                    <div class="modal-dialog">
                                    <div class="modal-content animated bounceInRight">
                                            <div class="modal-header" style="text-align: left">
                                               <a href="pagos.php"><button type="button" class="close" ><span aria-hidden="true">×</span><span class="sr-only">Close</span></button></a>
                                                
                                                <h4 class="modal-title"><img alt="Logo" src="img/logo.png" height="10%" width="10%"> Pagos <?php // echo "   ". $provee3."idprove   ". $pedido3." idpedido";  ?></h4>
                                                <!-- <small class="font-bold">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</small> -->
                                            </div>
                                            <div class="modal-body">

                                                 <div class="form-group">
                                                            <div class="row">
                                                              <div class="col-md-4">
                                                            <label>Orden #</label>
                                                             <input readonly type="text" 
                                                             class="form-control" value="<?php echo strtoupper($pedido3);?>"
                                                             name="orden_pago" id="orden_pago"
                                                              >
                                                             <!-- <select class="form-control" name="orden_pago" id="orden_pago" onchange="buscar_quien_paga(this.value)">
                                        <option value="">Seleccione</option>
                                        <?php if (isset($_GET['orden'])) {
                                  $ordenget= $_GET['orden'];
                                } ?>
                                                            <?php

                                                               $query_orden="SELECT pedidos.orden `orden` FROM `pedidos` where orden='$pedido3'";
    $resultado_orden=$conexion->query($query_orden);
                                                                  while ($row_orden=$resultado_orden->fetch_assoc()) {
                                                                    
                                          if ($ordenget==$row_orden['orden']) {
                                     echo "<option selected value='".$row_orden['orden']."'>".$row_orden['orden'] ."</option>";
                                                                    
                                                                    }
                                                                    else
                                                                    {

                                                                  echo "<option  selected value='".$row_orden['orden']."'>".$row_orden['orden'] ."</option>";

                                                                    }
                                                                         
                                                                       
                                                                         
                                                                      }

                                                            ?>
                                                          </select>-->
                                                             </div>
                                                              <div class="col-md-4">
                                                            <label>Proveedor</label>
                                                            <input readonly type="text" 
                                                             class="form-control" value="<?php echo strtoupper($provee3);?>"
                                                            name="quien_paga" id="quien_paga"
                                                              >
                                                             <!--<select class="form-control" name="quien_paga" id="quien_paga">
                                                       

                                        <option value="">Seleccione</option>
                                        <?php
                                           $query="SELECT distinct(`supplier`) supplier, orden, nombre FROM `pedidos_items`inner join pedidos on orden_pedido= pedidos.id_pedido inner join clientes on id=supplier where orden='$ordenget' ";
    $resultado=$conexion-> query ($query);

    while ($row=$resultado->fetch_assoc()) {

                                        echo "<option value='".$row["nombre"]."'>".$row["nombre"]."</option>";

} 



                                        ?>

                                                        
                                                          </select>-->
                                                             </div>
                                                                <div class="col-md-4">
                                                            <label>Tipo de Pago</label>
                                                            <input readonly type="text" 
                                                            class="form-control" value="<?php echo strtoupper('anticipo');?>" name="tipo_pago" >
                                                            <!--<select class="form-control" name="tipo_pago" required onchange="ver(this.value)">
                                                              <option value="">Seleccione</option>
                                                              <option selected value="ANTICIPO">ANTICIPO</option>
                                                              <option value="BALANCE">BALANCE</option>
                                                              <option value="CENTAVOS">CENTAVOS DE MAS</option>
                                                              <option value="COMISION">COMISION COLIMPTEX</option>
                                                              <option value="BONIFICACION">BONIFICACION DE LA FABRICA</option>
                                                            </select>-->
                                                            
                                   
                                  </div>
                                   <div class="col-md-4">
                                                                <label>Usuario</label>
                                                                <input readonly type="text" name="usuario" class="form-control" value="<?php echo strtoupper($_SESSION["nombre"]);?>">
                                                                
                                                              </div>
                                                                 <div class="col-md-4">
                                                                <label>Fecha de Registro</label>
                                                              <input type="date" name="fecha_pago" id="fecha_pago" placeholder="" required class="form-control col-md-4" value="<?php echo date("Y-m-d"); ?>" >
                                                              </div>

                                                               <div class="col-md-4">
                                                            <label>Valor</label>
                                                           <input type="text" name="valor_pago" id="valor_pago" placeholder="" required class="form-control col-md-4" >
                                                              </div>
                                 <div class="col-md-2" id="trm" style="display: none">

                                  <label>TRM</label>
                                  <input class="form-control" type="text" name="trm">
                                 </div>

                                 <div class="col-md-2" id="fact" style="display: none">
                                  <label># Fact.</label>
                                  <input class="form-control" type="text" name="fact">

                                 </div>

                                   </div>
                                 </div>
                                 <div class="form-group">
                                                            <div class="row">
                                                           
                                        <div class="col-md-12">
                                                       <label>Comentarios</label>
                                 <textarea class="form-control" name="comentarios"></textarea>
                                                                </div>
                                                             
                                 
                                                        
                                                    
                                                    </div>
                                                  </div>


                                                       
                                                     
                                            <div class="modal-footer">
                                               <a href="pagos.php"> <button type="button" class="btn btn-white">Cerrar</button></a>
                                                <button type="submit" class="btn btn-primary">Guardar cambios</button>
                                            
                                            </div>
                                        
                                    </div>
                                  </div>
                                </form>
                            </div>