Ref #37. Filtra las cadenas de entrada en Mantenimiento

Añadido logo QR
This commit is contained in:
rmontanana
2014-05-07 11:43:22 +02:00
parent 604c01e306
commit d1a593ff53
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ define('CREDITOS', '<div class="modal fade" tabindex="-1" id="creditos" role="di
</div>
<div class="modal-body">
<div class="jumbotron">
<img src="img/logo.png" class="img-responsive img-rounded" style="float:left">
<img src="img/qrlogo.png" class="img-responsive img-rounded" style="float:left">
<h1>Inventario2</h1>
<p> Aplicación para controlar el inventario de un centro educativo.</p>
<p>En la aplicación se hace uso de los siguientes módulos y/o bibliotecas</p>
@@ -236,7 +236,7 @@ class AportaContenido {
$creditos = "$('#creditos').modal({keyboard: false});";
$centro = '<div class="well well-sm">' . CENTRO . '</div>';
return $mensaje . '<br><br><center><img src="img/logo.png" alt="' . PROGRAMA . '" onClick="' . $creditos . '" >' .
return $mensaje . '<br><br><center><img src="img/qrlogo.png" alt="' . PROGRAMA . '" onClick="' . $creditos . '" >' .
'<br><br><label onClick="' . $creditos . '">' . $centro . '</label></center><br><br>' . CREDITOS;
case 'articulos':
case 'ubicaciones':

View File

@@ -423,7 +423,7 @@ class Mantenimiento {
$valor = "null";
}
} else {
$valor = $_POST[$campo] == "" ? "null" : '"' . $_POST[$campo] . '"';
$valor = $_POST[$campo] == "" ? "null" : '"' . $this->bdd->filtra($_POST[$campo]) . '"';
}
}
$comando.="$coma " . $valor;
@@ -504,7 +504,7 @@ class Mantenimiento {
if (strlen(trim($_POST[$campo])) == 0) {
$comando.="$coma $campo=null";
} else {
$comando.=$coma . ' ' . $campo . '="' . $_POST[$campo] . '"';
$comando.=$coma . ' ' . $campo . '="' . $this->bdd->filtra($_POST[$campo]) . '"';
}
}
}

BIN
img/qrlogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB