From 6405b2826e95878292a93f1bba01f455098e2182 Mon Sep 17 00:00:00 2001 From: Edgar Date: Mon, 12 Sep 2022 10:19:25 -0500 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n=20en=20preevaluaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/application/controllers/main.php | 4 ++-- ci/application/views/main/preevaluacion.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/application/controllers/main.php b/ci/application/controllers/main.php index 41670771..aeca4613 100644 --- a/ci/application/controllers/main.php +++ b/ci/application/controllers/main.php @@ -503,10 +503,10 @@ public function createPlantilla(){ ); if(filter_var($_POST['completo'], FILTER_VALIDATE_BOOLEAN)){ - //$result = $this->setDocumentsDrive("CartaDePostulacion_".$_POST['issn'].".docx", 'Preevaluacion_'.$_POST['issn'].'.xlsx'); + $result = $this->setDocumentsDrive("CartaDePostulacion_".$_POST['issn'].".docx", 'Preevaluacion_'.$_POST['issn'].'.xlsx'); unlink("CartaDePostulacion_".$_POST['issn'].".docx"); unlink('Preevaluacion_'.$_POST['issn'].'.xlsx'); - //echo('{"docx":"'.$result[0].'", "xlsx":"'.$result[1].'"}'); + echo('{"docx":"'.$result[0].'", "xlsx":"'.$result[1].'"}'); } else unlink('Preevaluacion_'.$_POST['correo'].'.xlsx'); diff --git a/ci/application/views/main/preevaluacion.js b/ci/application/views/main/preevaluacion.js index 7b2ab59d..69c67cdf 100644 --- a/ci/application/views/main/preevaluacion.js +++ b/ci/application/views/main/preevaluacion.js @@ -684,8 +684,8 @@ class_pre = { mes = "0".repeat(2-mes.length)+mes; var anio = String(new Date(Date.now()).getFullYear()); var array = [form.nombre_revista, form.issn, form.pais, form.ciudad, form.nombre, form.correo, form.periodicidad, form.organizacion, form.autorizo, - //dia + "/" + mes + "/" + anio, "https://docs.google.com/spreadsheets/d/"+result.xlsx+"/edit", "https://docs.google.com/document/d/"+result.docx+"/edit", form.url - dia + "/" + mes + "/" + anio, "", "", form.url + dia + "/" + mes + "/" + anio, "https://docs.google.com/spreadsheets/d/"+result.xlsx+"/edit", "https://docs.google.com/document/d/"+result.docx+"/edit", form.url + //dia + "/" + mes + "/" + anio, "", "", form.url //"https://docs.google.com/document/d//edit", //"https://docs.google.com/spreadsheets/d//edit" ];