Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/02/2016, 08:04
Skorge
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Sistema multiusuario y multimenu

Por le momento tengo el codigo de mostrar el menu deseado en una pagina php:
Ver.Php
<div align="center">
<table border="0" width="600" style="font-family: Verdana; font-size: 8pt" id="table1">
<tr>
</tr>
<form method="POST" action="php/Mostrar.php">
<tr>
<td width="50%">&nbsp;</td>
<td width="50%">&nbsp;</td>
</tr>
<tr>
<td width="50%">
<p align="center"><b>Digite el menu que desea ver: </b></td>
<td width="50%">
<p align="center"><input type="text" name="Descripcion" size="20"></td>
</tr>
<tr>
<td width="50%">&nbsp;</td>
<td width="50%">&nbsp;</td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="center">
<input type="submit" value="Ver" name="B1"></td>

Mostrar (El que deja ver los datos):
<table border = '4' align= 'center' width='40' BGCOLOR='#ffffff'>
<td width='150' style='font-weight: bold'>Id</td>
<td width='150' style='font-weight: bold'>Descripcion</td>
<td width='150' style='font-weight: bold'>Estado</td>
<td width='150' style='font-weight: bold'>Tipo</td>
<td width='150' style='font-weight: bold'>Menu_padre</td>
<td width='150' style='font-weight: bold'>URL</td>
<td width='150' style='font-weight: bold'>Usuario_creacion</td>
<td width='150' style='font-weight: bold'>Usuario modificacion</td>
<td width='150' style='font-weight: bold'>Fecha creacion</td>
<td width='150' style='font-weight: bold'>Fecha modificacion</td>
</body>
<?php
$conexion=mysql_connect("localhost","root","") or die ("la conexion al servidor no se ejecuto");
mysql_select_db("pagina") or die ("no se puede selecionar la base de datos");
$consulta="select* from menu"; // Esta linea hace la consulta
$result = mysql_query($consulta);
while ($registro = mysql_fetch_array($result)){
echo "
<tr>
<td width='100'>".$registro["Id"]."</td>
<td width='100'>".$registro["Descripcion"]."</td>
<td width='100'>".$registro["Estado"]."</td>
<td width='100'>".$registro["Tipo"]."</td>
<td width='100'>".$registro["Menu_padre"]."</td>
<td width='100'>".$registro["URL"]."</td>
<td width='100'>".$registro["Usuario_creacion"]."</td>
<td width='100'>".$registro["Usuario_modificacion"]."</td>
<td width='100'>".$registro["Fecha_creacion"]."</td>
<td width='100'>".$registro["Fecha_modificacion"]."</td>
</tr>
";
} Seria de muchisima ayuda gracias, Aunque si se requiere tambien puedo iniciar de 0 y de nuevo gracias por responder