gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta…
- User
- Assistant
Para mejorar el código proporcionado, vamos a estructurar el menú de acuerdo con tus requisitos, separando las opciones en las categorías "Ingresos" y "Consultas". Aquí tienes un ejemplo de cómo podría verse el nuevo HTML:
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGs03+4hxV8T/(5Paxtkktu6ug5T0eNV6gBiFeMPGFN9Muh0f2309Ifjh"
crossorigin="anonymous">
<!-- Hoja de estilo -->
<link rel="stylesheet" href="css/style.css">
<!-- Librerias jQuery y funciones -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="js/funciones.js"></script>
<title>Formulario de Contacto</title>
</head>
<body>
<div class="container">
<!-- Menu de Ingresos -->
<table class="table table-bordered">
<thead class="thead-light">
<tr>
<th colspan="3">Ingresos</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="#" onclick="cargarurl('cargos.php', 'detalle');">Cargos</a>
</td>
<td>
<a href="#" onclick="cargarurl('profesiones.php', 'detalle');">Profesiones</a>
</td>
<td>
<a href="#" onclick="cargarurl('empleados.php', 'detalle');">Empleados</a>
</td>
</tr>
</tbody>
</table>
<!-- Menu de Consultas -->
<table class="table table-bordered">
<thead class="thead-light">
<tr>
<th colspan="2">Consultas</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="#" onclick="cargarurl('consulta01.php', 'detalle');">Consulta 01</a>
</td>
<td>
<a href="#" onclick="cargarurl('consulta02.php', 'detalle');">Consulta 02</a>
</td>
</tr>
<tr>
<td>
<a href="#" onclick="cargarurl('consulta03.php', 'detalle');">Consulta 03</a>
</td>
<td>
<a href="#" onclick="cargarurl('consulta04.php', 'detalle');">Consulta 04</a>
</td>
</tr>
<tr>
<td>
<a href="#" onclick="cargarurl('consulta05.php', 'detalle');">Consulta 05</a>
</td>
<td>
<a href="#" onclick="cargarurl('consulta06.php', 'detalle');">Consulta 06</a>
</td>
</tr>
<tr>
<td>
<a href="#" onclick="cargarurl('consulta07.php', 'detalle');">Consulta 07</a>
</td>
<td>
<a href="#" onclick="cargarurl('consulta08.php', 'detalle');">Consulta 08</a>
</td>
</tr>
<tr>
<td>
<a href="#" onclick="cargarurl('consulta09.php', 'detalle');">Consulta 09</a>
</td>
<td>
<a href="#" onclick="cargarurl('consulta10.php', 'detalle');">Consulta 10</a>
</td>
</tr>
</tbody>
</table>
<!-- Contenedor donde se mostrarán las opciones del menú -->
<div id="detalle"></div>
</div>
</body>
</html>
vidth en el atributo viewport que se cambió a width.thead-light de Bootstrap para distinguir los encabezados de las tablas.Ahora, las opciones están claramente organizadas dentro de sus respectivas categorías, lo cual hace más fácil la navegación para los usuarios.
Not yet included in a published release.