From 8a96dbdae6e091e8fe6dcc6b03860f27a399cb72 Mon Sep 17 00:00:00 2001 From: Nicolas Soreian Date: Thu, 10 Jun 2021 13:50:24 -0300 Subject: [PATCH] Fixes menores --- js/main.js | 4 +++- users/index.php | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/js/main.js b/js/main.js index 183751e..d7f0cfa 100755 --- a/js/main.js +++ b/js/main.js @@ -76,7 +76,7 @@ function crear_detalles_pedido(nro,ido){ detallesList+=''; detallesList += ''; - ido.parent().after(detallesList); + ido.parent().parent().after(detallesList); $( ".alta" ).click(function() { //var suc = document.getElementById("sucursal").value; @@ -150,6 +150,8 @@ function llenar_lista_pedido() $('#pedido').text("#"+ped); $('#cliente').text("Cliente: "+n_cli); $('#total').text("Total: $"+total); + console.log(ped); + console.log(v_nomcli); // "PVE_" + "Suc" + <"+suc+"> + "_" + + + "_" + + ".pdf" //var _href = $('#descarga').attr("href"); $('#descarga').attr("href",'../pdf/PVE_Suc'+suc+'_PE40_'+ped+'.pdf'); diff --git a/users/index.php b/users/index.php index e88cc15..cc38995 100755 --- a/users/index.php +++ b/users/index.php @@ -33,15 +33,15 @@ require_once '../prgdmug/login.php'; //$_SESSION['loggedin'] = true; //$_SESSION['username'] = 'Test'; if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") { - $_SESSION['loggedin'] = true; - $_SESSION['username'] = $username; - $_SESSION['start'] = time(); - $_SESSION['expire'] = $_SESSION['start'] + (5 * 60); - } else { - session_destroy(); - header("Location: ../index.html"); - die(); - } + $_SESSION['loggedin'] = true; + $_SESSION['username'] = $username; + $_SESSION['start'] = time(); + $_SESSION['expire'] = $_SESSION['start'] + (5 * 60); +} else { + session_destroy(); + header("Location: ../index.html"); + die(); +} ?> @@ -64,7 +64,7 @@ if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") {
@@ -77,7 +77,7 @@ if ($ConDMUG->xmlrequest->{'STATUS'}=="OK") {