prueba esto:
Código PHP:
Ver original
<html>
<head><title>Página privada alumnos y profesores.</title></head>
<body class="fondo">
<div id="menu">
<asp:Repeater ID="MenuItems" runat="server">
<ItemTemplate>
<?php
if ((isset($_SESSION['k_username'])) && ($_SESSION['k_username'] != "")) {
$usuario = "email";
$sql = "SELECT * FROM persona WHERE email = ".$usuario."";
// lo que tengas que repetir en forma de bucle
}
echo "<table border='1' text-align='center'>";
echo "<tr>";
echo "<td>Bienvenido, ".$_SESSION['ncompleto']."</td>";
echo "<td><a href='logout.php'>(Salir)</a></td>";
echo "</tr>";
echo "<tr><td colspan='2' align='center'>Examenes</td></tr>";
echo "<tr>";
echo "<td><input type='button' value='Ver examenes.' onclick='window.location.href='examenes/verexamenes.php''/></td>";
echo "<td><input type='button' value='Agregar examenes.' onclick='window.location.href='examenes/altas/formAltasDeExamenes.php''/></td>";
echo "</tr>";
echo "<tr><td colspan='2' align='center'>Personas</td></tr>";
echo "<tr>";
echo "<td><input type='button' value='Ver personas.' disabled /></td>";
echo "<td><input type='button' value='Agregar personas.' onclick='window.location.href='persona/altaspersona/altapersona.htm''/></td>";
echo "</tr>";
echo "<tr><td colspan='2' align='center'>Profesores</td></tr>";
echo "<tr>";
echo "<td><input type='button' value='Ver profesores.' disabled /></td>";
echo "<td><input type='button' value='Agregar profesores.' disabled /></td>";
echo "</tr>";
echo "<tr><td colspan='2' align='center'>Alumnos</td></tr>";
echo "<tr>";
echo "<td><input type='button' value='Ver alumnos.' disabled /></td>";
echo "<td><input type='button' value='Agregar alumnos.' disabled /></td>";
echo "</tr>";
echo "<tr><td colspan='2' align='center'>Grupo</td></tr>";
echo "<tr>";
echo "<td><input type='button' value='Ver grupos.' disabled /></td>";
echo "<td><input type='button' value='Agregar grupos.' disabled /></td>";
echo "</tr>";
echo "<tr><td colspan='2' align='center'>Instituto.</td></tr>";
echo "<tr>";
echo "<td><input type='button' value='Ver instituto.' disabled /></td>";
echo "<td><input type='button' value='Agregar instituto.' disabled /></td>";
echo "</tr>";
echo "</table>";
echo "<div class='fecha'>";
echo "Hoy es ";
echo "de ";
echo "de ";
echo "</div>";
} else {
$updateGoTo = "login.php";
if (isset($_SESSION['k_username'])) { $updateGoTo .= (strpos($updateGoTo, '?')) ?
"&" : "?"; $updateGoTo .= $_SESSION['k_username'];
}
}
?>
</ItemTemplate>
</asp:Repeater>
</div>
</body>
</html>