Skip to content

Commit

Permalink
Actualización en preevaluación
Browse files Browse the repository at this point in the history
  • Loading branch information
eduranm committed Sep 12, 2022
1 parent 99428ad commit 6405b28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ci/application/controllers/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions ci/application/views/main/preevaluacion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
];
Expand Down

0 comments on commit 6405b28

Please sign in to comment.