mirror of
https://github.com/rmontanana/inventario2.git
synced 2025-08-17 16:35:58 +00:00
Corregidos algunos problemas de visualización del menú y de la pantalla principal
This commit is contained in:
@@ -195,7 +195,7 @@ class AportaContenido {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case 'bienvenido': // El usuario quiere iniciar sesión
|
case 'bienvenido': // El usuario quiere iniciar sesión
|
||||||
return 'Bienvenido ' . $this->usuario . '<br><br><center><img src="img/codigoBarras.png" alt="' . PROGRAMA . '">' .
|
return 'Bienvenid@ ' . $this->usuario . '<br><br><center><img src="img/codigoBarras.png" alt="' . PROGRAMA . '">' .
|
||||||
'<br><label>' . PROGRAMA . '</label></center><br><br>' . PIE;
|
'<br><label>' . PROGRAMA . '</label></center><br><br>' . PIE;
|
||||||
case 'configuracion':
|
case 'configuracion':
|
||||||
if ($this->perfil['Config']) {
|
if ($this->perfil['Config']) {
|
||||||
@@ -236,7 +236,7 @@ class AportaContenido {
|
|||||||
case 'registro': // Si está registrado mostrar bienvenida
|
case 'registro': // Si está registrado mostrar bienvenida
|
||||||
// si no, un enlace
|
// si no, un enlace
|
||||||
if ($this->bEstaRegistrado) {
|
if ($this->bEstaRegistrado) {
|
||||||
return "Bienvenido <b>$this->sUsuario</b><hr />" .
|
return "Bienvenid@ <b>$this->sUsuario</b><hr />" .
|
||||||
'<a href="index.php?cerrarSesion">Cerrar sesión</a>';
|
'<a href="index.php?cerrarSesion">Cerrar sesión</a>';
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
2
Menu.php
2
Menu.php
@@ -42,7 +42,7 @@ class Menu {
|
|||||||
foreach($this->opciones as $opcion) {
|
foreach($this->opciones as $opcion) {
|
||||||
list($tipo,$opcion,$enlace,$destino,$titulo)=explode(",",$opcion);
|
list($tipo,$opcion,$enlace,$destino,$titulo)=explode(",",$opcion);
|
||||||
if ($tipo==2)
|
if ($tipo==2)
|
||||||
$salida.='<a href="'.$enlace.'" target="'.$destino.'" title="'.$titulo.'">'.$opcion.'</a><br />';
|
$salida.='<li class="active"><a href="'.$enlace.'" target="'.$destino.'" title="'.$titulo.'">'.$opcion.'</a><br /></li>';
|
||||||
else
|
else
|
||||||
$salida.='<label class="key">'.$opcion.'</label><br/>';
|
$salida.='<label class="key">'.$opcion.'</label><br/>';
|
||||||
}
|
}
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
/* Move down content because we have a fixed navbar that is 50px tall */
|
/* Move down content because we have a fixed navbar that is 50px tall */
|
||||||
body {
|
body {
|
||||||
padding-top: 50px;
|
padding-top: 50px;
|
||||||
|
background-color: #F3FEC8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ body {
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px;
|
padding: 5px;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
||||||
background-color: #C4FAEC;/*#f5f5f5;*/
|
background-color: #C4FAEC;/*#f5f5f5;*/
|
||||||
@@ -44,13 +45,13 @@ body {
|
|||||||
|
|
||||||
/* Sidebar navigation */
|
/* Sidebar navigation */
|
||||||
.nav-sidebar {
|
.nav-sidebar {
|
||||||
margin-right: -11px; /* 20px padding + 1px border */
|
margin-right: -6px; /* 20px padding + 1px border */
|
||||||
margin-bottom: 10px;
|
margin-bottom: 1px;
|
||||||
margin-left: -10px;
|
margin-left: -1px;
|
||||||
}
|
}
|
||||||
.nav-sidebar > li > a {
|
.nav-sidebar > li > a {
|
||||||
padding-right: 10px;
|
padding-right: 5px;
|
||||||
padding-left: 10px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
.nav-sidebar > .active > a {
|
.nav-sidebar > .active > a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -85,14 +86,14 @@ body {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.placeholders {
|
.placeholders {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.placeholders h4 {
|
.placeholders h4 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.placeholder {
|
.placeholder {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
.placeholder img {
|
.placeholder img {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@@ -25,7 +25,7 @@ define('SERVIDOR','localhost'); //Ubicación del servidor MySQL
|
|||||||
define('BASEDATOS','Inventario2'); //Nombre de la base de datos.
|
define('BASEDATOS','Inventario2'); //Nombre de la base de datos.
|
||||||
define('USUARIO','test'); //Usuario con permisos de lectura/escritura en la base de datos
|
define('USUARIO','test'); //Usuario con permisos de lectura/escritura en la base de datos
|
||||||
define('CLAVE','tset'); //contraseña del usuario.
|
define('CLAVE','tset'); //contraseña del usuario.
|
||||||
define('VERSION','0.97 Beta');
|
define('VERSION','1.00 Beta');
|
||||||
define('PROGRAMA','Gestión de Inventario.');
|
define('PROGRAMA','Gestión de Inventario.');
|
||||||
define('CENTRO','I.E.S.O. Pascual Serrano');
|
define('CENTRO','I.E.S.O. Pascual Serrano');
|
||||||
define('APLICACION',CENTRO.' '.PROGRAMA.VERSION);
|
define('APLICACION',CENTRO.' '.PROGRAMA.VERSION);
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="./css/jquery.min.js"></script>
|
<script type="text/javascript" src="./css/jquery.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body style="">
|
<body bgcolor="#C4FAEC">
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
@@ -51,8 +51,10 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-2 col-md-1 sidebar">
|
<div class="col-sm-2 col-md-1 sidebar">
|
||||||
|
<!--<ul class="nav nav-sidebar">-->
|
||||||
<ul class="nav nav-sidebar">
|
<ul class="nav nav-sidebar">
|
||||||
<li class="active">{menu}</li>
|
<!--<li class="active">{menu}</li>-->
|
||||||
|
{menu}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-10 col-sm-offset-1 col-md-11 col-md-offset-1 main">
|
<div class="col-sm-10 col-sm-offset-1 col-md-11 col-md-offset-1 main">
|
||||||
|
Reference in New Issue
Block a user