mirror of
https://github.com/rmontanana/inventario2.git
synced 2025-08-16 07:56:00 +00:00
Merge branch 'release/1.10'
* release/1.10: Cambiado número de versión a 1.10 Cambiado CHANGELOG y mensaje de usuario/clave incorrecto para que tenga fondo rojo Añadidos los botones de acción en Mantenimiento tipo bootstrap y en Configuración se puede seleccionar este estilo.
This commit is contained in:
@@ -27,7 +27,7 @@ define('FORMULARIO_ACCESO', '<form name="formulario_acceso" action="index.php?re
|
|||||||
'Usuario<br><input type="text" name="usuario" value="" size="8" /><br><br>Clave<br><input type="password" name="clave" value="" size="8" />' .
|
'Usuario<br><input type="text" name="usuario" value="" size="8" /><br><br>Clave<br><input type="password" name="clave" value="" size="8" />' .
|
||||||
'<br><br><button type="submit" name="iniciar" class="btn btn-primary">Iniciar <span class="glyphicon glyphicon-log-in"></span></button></form>');
|
'<br><br><button type="submit" name="iniciar" class="btn btn-primary">Iniciar <span class="glyphicon glyphicon-log-in"></span></button></form>');
|
||||||
define('MENSAJE_DEMO', 'Puede Iniciar sesión con<br>usuario <i><b>demo</b></i><br>contraseña <i>demo</i><br>');
|
define('MENSAJE_DEMO', 'Puede Iniciar sesión con<br>usuario <i><b>demo</b></i><br>contraseña <i>demo</i><br>');
|
||||||
define('USUARIO_INCORRECTO', '<label class="error">Usuario y clave incorrectos!</label><br><br>');
|
define('USUARIO_INCORRECTO', '<label class="bg-danger">Usuario y clave incorrectos!</label><br><br>');
|
||||||
define('CREDITOS', '<div class="modal fade" tabindex="-1" id="creditos" role="dialog" aria-labelledby="modalCreditos" aria-hidden="true">
|
define('CREDITOS', '<div class="modal fade" tabindex="-1" id="creditos" role="dialog" aria-labelledby="modalCreditos" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
Versión 1.10 21-04-2014
|
||||||
|
-Corregido error en el nombre del archivo de la clase ajax que estaba en minúsculas
|
||||||
|
-Añadidos botones de acción tipo bootstrap en Mantenimiento y añadido a configuración en estilo
|
||||||
|
-Informe de inventario de Artículo o Ubicación desde id y edición ajax de la descripción
|
||||||
|
-Cambiado mensaje de usuario/clave incorrectos para poner un fondo de color rojo
|
||||||
|
|
||||||
Versión 1.09 16-04-2014
|
Versión 1.09 16-04-2014
|
||||||
-Añadida la biblioteca X-Edit
|
-Añadida la biblioteca X-Edit
|
||||||
-Añadida actualización Ajax en Mantenimiento
|
-Añadida actualización Ajax en Mantenimiento
|
||||||
|
@@ -100,6 +100,7 @@ class Configuracion {
|
|||||||
$personal = $this->datosConf['ESTILO'] == "personal" ? 'selected' : ' ';
|
$personal = $this->datosConf['ESTILO'] == "personal" ? 'selected' : ' ';
|
||||||
$bluecurve = $this->datosConf['ESTILO'] == "bluecurve" ? 'selected' : ' ';
|
$bluecurve = $this->datosConf['ESTILO'] == "bluecurve" ? 'selected' : ' ';
|
||||||
$cristal = $this->datosConf['ESTILO'] == "cristal" ? 'selected' : ' ';
|
$cristal = $this->datosConf['ESTILO'] == "cristal" ? 'selected' : ' ';
|
||||||
|
$bootst = $this->datosConf['ESTILO'] == "bootstrap" ? 'selected' : ' ';
|
||||||
$normal = $this->datosConf['PLANTILLA'] == "normal" ? 'selected' : ' ';
|
$normal = $this->datosConf['PLANTILLA'] == "normal" ? 'selected' : ' ';
|
||||||
$bootstrap = $this->datosConf['PLANTILLA'] == "bootstrap" ? 'selected' : ' ';
|
$bootstrap = $this->datosConf['PLANTILLA'] == "bootstrap" ? 'selected' : ' ';
|
||||||
$salida = '<center><div class="col-sm-4 col-md-6"><form name="configura" method="post">';
|
$salida = '<center><div class="col-sm-4 col-md-6"><form name="configura" method="post">';
|
||||||
@@ -114,6 +115,7 @@ class Configuracion {
|
|||||||
$salida.='<tr><td style="vertical-align:middle">Estilo</td><td><select name="ESTILO" class="form-control">';
|
$salida.='<tr><td style="vertical-align:middle">Estilo</td><td><select name="ESTILO" class="form-control">';
|
||||||
$salida.='<option value="personal" ' . $personal . '>personal</option>';
|
$salida.='<option value="personal" ' . $personal . '>personal</option>';
|
||||||
$salida.='<option ' . $bluecurve . '>bluecurve</option>';
|
$salida.='<option ' . $bluecurve . '>bluecurve</option>';
|
||||||
|
$salida.='<option ' . $bootst . '>bootstrap</option>';
|
||||||
$salida.='<option ' . $cristal . '>cristal</option></select></td></tr>';
|
$salida.='<option ' . $cristal . '>cristal</option></select></td></tr>';
|
||||||
$salida.='<tr><td style="vertical-align:middle">Color Lateral (bootstrap)</td><td style="vertical-align:middle"><select name="COLORLAT" id="COLORLAT" class="form-control">';
|
$salida.='<tr><td style="vertical-align:middle">Color Lateral (bootstrap)</td><td style="vertical-align:middle"><select name="COLORLAT" id="COLORLAT" class="form-control">';
|
||||||
foreach ($coloresLateral as $color => $codigo) {
|
foreach ($coloresLateral as $color => $codigo) {
|
||||||
|
@@ -233,21 +233,31 @@ class Mantenimiento {
|
|||||||
$salida.="<td>$valor</td>\n";
|
$salida.="<td>$valor</td>\n";
|
||||||
}
|
}
|
||||||
//Añade el icono de editar
|
//Añade el icono de editar
|
||||||
|
$salida .= "<td>";
|
||||||
if ($this->perfil['Modificacion']) {
|
if ($this->perfil['Modificacion']) {
|
||||||
//$salida.='<td><a href="index.php?' . $tabla . '&opc=editar&id=' . $id . "&pag=" . $pagina . $sufijoOrden . $sufijoEnlace .
|
//$salida.='<a href="index.php?' . $tabla . '&opc=editar&id=' . $id . "&pag=" . $pagina . $sufijoOrden . $sufijoEnlace .
|
||||||
$this->backupURL(); $this->datosURL['opc'] = "editar"; $this->datosURL['id'] = $id;
|
$this->backupURL(); $this->datosURL['opc'] = "editar"; $this->datosURL['id'] = $id;
|
||||||
$salida.='<td><a href="' . $this->montaURL() .
|
if (ESTILO == 'bootstrap') {
|
||||||
'"><img title="Editar" src="img/' . ESTILO . '/editar.png" alt="editar"></a>';
|
$salida.='<a href="'.$this->montaURL() . '" title="Editar"><span class="glyphicon glyphicon-pencil"></span></a>';
|
||||||
|
} else {
|
||||||
|
$salida.='<a href="' . $this->montaURL() .
|
||||||
|
'"><img title="Editar" src="img/' . ESTILO . '/editar.png" alt="editar"></a>';
|
||||||
|
}
|
||||||
$this->restoreURL();
|
$this->restoreURL();
|
||||||
}
|
}
|
||||||
//Añade el icono de eliminar
|
//Añade el icono de eliminar
|
||||||
if ($this->perfil['Borrado']) {
|
if ($this->perfil['Borrado']) {
|
||||||
//$salida.=' <a href="index.php?' . $tabla . '&opc=eliminar&id=' . $id . $sufijoEnlace .
|
//$salida.=' <a href="index.php?' . $tabla . '&opc=eliminar&id=' . $id . $sufijoEnlace .
|
||||||
$this->backupURL(); $this->datosURL['opc'] = "eliminar"; $this->datosURL['id'] = $id;
|
$this->backupURL(); $this->datosURL['opc'] = "eliminar"; $this->datosURL['id'] = $id;
|
||||||
$salida.=' <a href="' . $this->montaURL() .
|
if (ESTILO == 'bootstrap') {
|
||||||
'"><img title="Eliminar" src="img/' . ESTILO . '/eliminar.png" alt="eliminar"></a></td></tr>' . "\n";
|
$salida.=' <a href="'. $this->montaURL() . '" title="Eliminar"><span class="glyphicon glyphicon-remove"></span></a>';
|
||||||
|
} else {
|
||||||
|
$salida.=' <a href="' . $this->montaURL() .
|
||||||
|
'"><img title="Eliminar" src="img/' . ESTILO . '/eliminar.png" alt="eliminar"></a>' . "\n";
|
||||||
|
}
|
||||||
$this->restoreURL();
|
$this->restoreURL();
|
||||||
}
|
}
|
||||||
|
$salida .= "</td></tr>";
|
||||||
}
|
}
|
||||||
$salida.="</tbody></table></center></p>";
|
$salida.="</tbody></table></center></p>";
|
||||||
//Añade botones de comandos
|
//Añade botones de comandos
|
||||||
@@ -262,22 +272,42 @@ class Mantenimiento {
|
|||||||
$fwd = $this->montaURL();
|
$fwd = $this->montaURL();
|
||||||
$this->datosURL['pag'] = $pagRew;
|
$this->datosURL['pag'] = $pagRew;
|
||||||
$rew = $this->montaURL();
|
$rew = $this->montaURL();
|
||||||
$anterior = '<a href="' . $anterior . "\"><img title=\"Pag. Anterior\" alt=\"anterior\" src=\"img/" . ESTILO . "/anterior.png\"></a>\n";
|
|
||||||
$siguiente = '<a href="' . $siguiente . "\"><img title=\"Pag. Siguiente\" alt=\"siguiente\" src=\"img/" . ESTILO . "/siguiente.png\"></a>\n";
|
|
||||||
$fwd = '<a href="' . $fwd . "\"><img title=\"+4 Pags.\" alt=\"mas4pags\" src=\"img/" . ESTILO . "/fwd.png\"></a>\n";
|
|
||||||
$rew = '<a href="' . $rew . "\"><img title=\"-4 Pags.\" alt=\"menos4pags\" src=\"img/" . ESTILO . "/rew.png\"></a>\n";
|
|
||||||
$this->restoreURL();
|
$this->restoreURL();
|
||||||
$this->datosURL['sentido'] = "asc";
|
$this->datosURL['sentido'] = "asc";
|
||||||
$az = $this->montaURL();
|
$az = $this->montaURL();
|
||||||
$az = '<a href="' . $az . '"><img alt="asc" title="Orden ascendente" src="img/' . ESTILO . '/ascendente.png"></a>';
|
//
|
||||||
|
//$az = '<a href="' . $az . '" title="Orden ascendente"><h1><span class="glyphicon glyphicon-sort-by-alphabet"></span></h1></a>';
|
||||||
$this->datosURL['sentido'] = "desc";
|
$this->datosURL['sentido'] = "desc";
|
||||||
$za = $this->montaURL();
|
$za = $this->montaURL();
|
||||||
$za = '<a href="' . $za . '"><img alt="desc" title="Orden descendente" src="img/' . ESTILO . '/descendente.png"></a>';
|
//
|
||||||
|
//$za = '<a href="' . $za . '" title="Orden descendente"><h1><span class="glyphicon glyphicon-sort-by-alphabet-alt"></span></h1></a>';
|
||||||
|
if (ESTILO == 'bootstrap') {
|
||||||
|
$anterior = '<button type="button" class="btn btn-default btn-lg" title="Pag. anterior" onClick="location.href='."'$anterior'".'"><span class="glyphicon glyphicon-chevron-left"></span></button>';
|
||||||
|
$siguiente = '<button type="button" class="btn btn-default btn-lg" title="Pag. siguiente" onClick="location.href='."'$siguiente'".'"><span class="glyphicon glyphicon-chevron-right"></span></button>';
|
||||||
|
$fwd = '<button type="button" class="btn btn-default btn-lg" title="+4 páginas" onClick="location.href='."'$fwd'".'"><span class="glyphicon glyphicon-forward"></span></button>';
|
||||||
|
$rew = '<button type="button" class="btn btn-default btn-lg" title="-4 páginas" onClick="location.href='."'$rew'".'"><span class="glyphicon glyphicon-backward"></span></button>';
|
||||||
|
$az = '<button type="button" class="btn btn-default btn-lg" title="Orden ascendente" onClick="location.href='."'$az'".'"><span class="glyphicon glyphicon-sort-by-alphabet"></span></button>';
|
||||||
|
$za = '<button type="button" class="btn btn-default btn-lg" title="Orden descendente" onClick="location.href='."'$za'".'"><span class="glyphicon glyphicon-sort-by-alphabet-alt"></span></button>';
|
||||||
|
} else {
|
||||||
|
$anterior = '<a href="' . $anterior . "\"><img title=\"Pag. Anterior\" alt=\"anterior\" src=\"img/" . ESTILO . "/anterior.png\"></a>\n";
|
||||||
|
$siguiente = '<a href="' . $siguiente . "\"><img title=\"Pag. Siguiente\" alt=\"siguiente\" src=\"img/" . ESTILO . "/siguiente.png\"></a>\n";
|
||||||
|
$fwd = '<a href="' . $fwd . "\"><img title=\"+4 Pags.\" alt=\"mas4pags\" src=\"img/" . ESTILO . "/fwd.png\"></a>\n";
|
||||||
|
$rew = '<a href="' . $rew . "\"><img title=\"-4 Pags.\" alt=\"menos4pags\" src=\"img/" . ESTILO . "/rew.png\"></a>\n";
|
||||||
|
$az = '<a href="' . $az . '"><img alt="asc" title="Orden ascendente" src="img/' . ESTILO . '/ascendente.png"></a>';
|
||||||
|
$za = '<a href="' . $za . '"><img alt="desc" title="Orden descendente" src="img/' . ESTILO . '/descendente.png"></a>';
|
||||||
|
}
|
||||||
$this->restoreURL();
|
$this->restoreURL();
|
||||||
if ($this->perfil['Informe']) {
|
if ($this->perfil['Informe']) {
|
||||||
$this->datosURL['opc'] = "informe";
|
$this->datosURL['opc'] = "informe";
|
||||||
$inf = $this->montaURL();
|
$inf = $this->montaURL();
|
||||||
$informe = '<a href="' . $inf . '"><img src="img/' . ESTILO . '/informe.png" alt="informe" title="Informe pdf"></a>';
|
if (ESTILO == 'bootstrap') {
|
||||||
|
$informe = '<button type="button" class="btn btn-default btn-lg" title="Informe de '.$this->tabla.'" onClick="location.href='."'$inf.'".'"><span class="glyphicon glyphicon-list-alt"></span></button>';
|
||||||
|
} else {
|
||||||
|
$informe = '<a href="' . $inf . '"><img src="img/' . ESTILO . '/informe.png" alt="informe" title="Informe pdf"></a>';
|
||||||
|
}
|
||||||
|
//
|
||||||
|
|
||||||
|
//$informe = '<a href="'.$inf.'" title="Informe de '.$this->tabla.'"><h1><span class="glyphicon glyphicon-list-alt"></span></h1></a>';
|
||||||
} else {
|
} else {
|
||||||
$informe = "";
|
$informe = "";
|
||||||
}
|
}
|
||||||
@@ -285,8 +315,13 @@ class Mantenimiento {
|
|||||||
}
|
}
|
||||||
if ($this->perfil['Alta']) {
|
if ($this->perfil['Alta']) {
|
||||||
$this->datosURL['opc'] = 'nuevo';
|
$this->datosURL['opc'] = 'nuevo';
|
||||||
$anadir = '<a href="' . $this->montaURL() . '">' .
|
if (ESTILO == 'bootstrap') {
|
||||||
|
$anadir = '<button type="button" class="btn btn-default btn-lg" title="Añade '.$this->tabla.'" onClick="location.href='."'".$this->montaURL()."'".'"><span class="glyphicon glyphicon-plus-sign"></span></button>';
|
||||||
|
} else {
|
||||||
|
$anadir = '<a href="' . $this->montaURL() . '">' .
|
||||||
'<img title="Añadir registro" alt="nuevo" src="img/' . ESTILO . '/nuevo.png"></a>';
|
'<img title="Añadir registro" alt="nuevo" src="img/' . ESTILO . '/nuevo.png"></a>';
|
||||||
|
}
|
||||||
|
//$anadir = '<a href="'.$this->montaURL() . '"title="Añade '.$this->tabla.'"><h1><span class="glyphicon glyphicon-plus-sign"></span></h1></a>';
|
||||||
} else {
|
} else {
|
||||||
$anadir = "";
|
$anadir = "";
|
||||||
}
|
}
|
||||||
@@ -763,14 +798,15 @@ class Mantenimiento {
|
|||||||
return $mensaje;
|
return $mensaje;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function errorBD($comando, $texto = "", $tipo = "danger", $cabecera = "¡Atención!")
|
protected function errorBD($comando, $texto = "")
|
||||||
{
|
{
|
||||||
if (!$texto) {
|
if (!$texto) {
|
||||||
$texto = "No pudo ejecutar correctamente el comando $comando error=" . $this->bdd->mensajeError();
|
$texto = "No pudo ejecutar correctamente el comando $comando error=" . $this->bdd->mensajeError();
|
||||||
} else {
|
} else {
|
||||||
$texto = "$texto error=" . $this->bdd->mensajeError();
|
$texto = "$texto error=" . $this->bdd->mensajeError();
|
||||||
}
|
}
|
||||||
return $this->panelMensaje($texto, "danger", $cabecera="¡Error!");
|
$cabecera="¡Error!";
|
||||||
|
return $this->panelMensaje($texto, "danger", $cabecera);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function panelMensaje($info, $tipo = "danger", $cabecera = "¡Atención!") {
|
private function panelMensaje($info, $tipo = "danger", $cabecera = "¡Atención!") {
|
||||||
@@ -807,7 +843,6 @@ class Mantenimiento {
|
|||||||
$valorSelect = 'data-value="'.$valorDato.'" ';
|
$valorSelect = 'data-value="'.$valorDato.'" ';
|
||||||
$remoto = $valorSelect . ' data-sourceCache="true" data-sourceError="Error cargando datos" data-source="Ajax.php?opc=get&tabla='.$tabla2.'"';
|
$remoto = $valorSelect . ' data-sourceCache="true" data-sourceError="Error cargando datos" data-source="Ajax.php?opc=get&tabla='.$tabla2.'"';
|
||||||
}
|
}
|
||||||
|
|
||||||
$mensaje = '<a href="#" title="Modifica '.$titulo.'" id="'.$clave.'" name="'.$clave.$num.'" data-type="'.$tipo.'" data-min="1" data-placement="right" '.$formato.' data-pk="'.$id.'" '.$remoto.' >' . $valor . '</a>
|
$mensaje = '<a href="#" title="Modifica '.$titulo.'" id="'.$clave.'" name="'.$clave.$num.'" data-type="'.$tipo.'" data-min="1" data-placement="right" '.$formato.' data-pk="'.$id.'" '.$remoto.' >' . $valor . '</a>
|
||||||
<script>
|
<script>
|
||||||
$(function(){' . "
|
$(function(){' . "
|
||||||
@@ -830,7 +865,6 @@ class Mantenimiento {
|
|||||||
</script>";
|
</script>";
|
||||||
return $mensaje;
|
return $mensaje;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -23,5 +23,5 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
define('AUTOR', 'Ricardo Montañana Gómez');
|
define('AUTOR', 'Ricardo Montañana Gómez');
|
||||||
define('VERSION', '1.091');
|
define('VERSION', '1.10');
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user