Ver Mensaje Individual
  #10 (permalink)  
Antiguo 27/09/2010, 11:57
tremendu
 
Fecha de Ingreso: agosto-2005
Mensajes: 24
Antigüedad: 18 años, 8 meses
Puntos: 0
Respuesta: Duda PHP y Etiqueta Div

ZydRick...
lo siento pero no entiendo que estoy haciendo mal :(

if($GrupoVisible == 'A') {
// muestras el div para el admin
echo("<div id=PanelAdmin>
<table width=90% border=0 align=center>
<tr>
<td width=4%>&nbsp;</td>
<td width=69%>Panel Cliente Goods </td>
<td width=27%><table width=35% border=0 align=center>
<tr>
<td width=32%>Usuario:</td>
<td width=68%><? echo session_name(); ?></td>
</tr>
<tr>
<td>Cliente:</td>
<td></td>
</tr>
<tr>
<td>Grupo:</td>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div>" );
}elseif($GrupoVisible == 'V') {
// muestras el div para los VIP
echo("<div id=PanelVip>
<table width=90% border=0 align=center>
<tr>
<td width=4%>&nbsp;</td>
<td width=69%>Panel VIP Goods </td>
<td width=27%><table width=35% border=0 align=center>
<tr>
<td width=32%>Usuario:</td>
<td width=68%><? echo session_name(); ?></td>
</tr>
<tr>
<td>Cliente:</td>
<td></td>
</tr>
<tr>
<td>Grupo:</td>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div>" );
}else {
// muestras el div para los usuarios normales
echo( "<div id=PanelUser> </div>");


}
?>

la variable me la pasa bien y el if identifica perfectamente... pero el div no me lo muestra :(