����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.185 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/thread-self/root/var/www/html/muebles/application/debtcollector/ |
Upload File : |
<?php require_once("../model/dbconn.php"); require_once("../model/pos.php"); $pos = new pos(); $rutas1 = $pos->getRoutes(); $data = $rutas1[1]; // Verificar si se ha enviado el formulario if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['ruta'])) { $ruta_id = $_POST['ruta']; // Obtener la ID de la ruta seleccionada // Obtener el nombre de la ruta seleccionada (suponiendo que cada ruta tiene un campo 'name') $ruta_name = ''; foreach ($data as $ruta) { if ($ruta['id'] == $ruta_id) { $ruta_name = $ruta['name']; break; } } // Redirigir al menu.php con los parámetros 'id' y 'name' header("Location: generic.php?id=$ruta_id&name=$ruta_name"); exit(); } ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Seleccionar Ruta</title> <!-- Agregar Bootstrap para el modal --> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <!-- Modal --> <div class="modal fade" id="modalSelectRoute" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="modalLabel">Selecciona una Ruta</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Cerrar"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form action="" method="POST"> <select name="ruta" class="form-control" id="ruta"> <?php foreach ($data as $ruta): ?> <option value="<?php echo $ruta['id']; ?>"><?php echo $ruta['name']; ?></option> <?php endforeach; ?> </select> <button type="submit" class="btn btn-primary mt-3">Guardar Ruta</button> </form> </div> </div> </div> </div> <script> // Mostrar el modal al cargar la página $(document).ready(function() { $('#modalSelectRoute').modal('show'); }); </script> </body> </html>