portal33 0 Denunciar post Postado Abril 11, 2015 Olá amigos , estou com problemas em minha área administrativa e não sei como resolver Agradeceria muita a ajuda de voces Compartilhar este post Link para o post Compartilhar em outros sites
ESerra 744 Denunciar post Postado Abril 11, 2015 Seu problema com certeza está no HTML gerado, posta ele para que possamos analisar. Compartilhar este post Link para o post Compartilhar em outros sites
portal33 0 Denunciar post Postado Abril 11, 2015 <? $requiredUserLevel = array(1,2); $cfgProgDir = 'phpSecurePages/'; include($cfgProgDir . "secure.php"); setcookie("login", $_POST[entered_login]); setcookie("pass", $_POST[entered_password]); //include("path.php"); include("config.php"); //$cidade = $_GET[cidade]; ?><body bgcolor="#F3F3F3"> <table background="phpSecurePages/images/fundo-topo.png" width="100%" height="40" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE"> <tr> <td align="center"><strong><img src="phpSecurePages/images/linha-invisivel-topo-cima.png" width="10" height="20" align="absmiddle" /></strong></td> </tr> <tr> <td><table width="824" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"><font color="#666666" size="4" face="Geneva, Arial, Helvetica, sans-serif"><font color="#990000" size="2"><a href="index.php"><img title="Ir para a página inicial da administração" src="phpSecurePages/images/logo-admin.png" width="200" height="40" border="0"></a></font></font></td> <td align="right"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"> <? $sql = mysql_query("SELECT * FROM phpsp_users where user='$login'"); $dados = mysql_fetch_array($sql); $usernivel = "$dados[userlevel]"; $idfranquia = "$dados[id_franquia]"; //echo $idfranquia; ?> Seja bem vindo <strong><? echo $dados[nome];?></strong></font> <a href="../" target="_blank"><img src="phpSecurePages/images/home.png" width="25" height="25" border="0" align="absbottom" title="Visitar a página inicial do site" /></a> </td> </tr> </table></td> </tr> <tr> <td align="center"><strong><img src="phpSecurePages/images/linha-invisivel-topo-cima.png" width="10" height="20" align="absmiddle" /></strong></td> </tr> </table> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0"> </table> <table width="824" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="16"></td> </tr> </table> <table width="824" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFFF"> <td width="177" align="right" valign="top" bgcolor="#FFFFFF"><? include("menu.php");?></td> <td width="646" height="300" align="center" valign="top" background="phpSecurePages/images/fundo-not.png" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right"> </td> </tr> <tr> <td align="right"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif">Site desenvolvido por<strong> Programador </strong>todos os direitos reservados </font></td> </tr> <tr> <td align="right"> </td> </tr> </table> <? include("query_string.php");?> </td> </tr> </table> Compartilhar este post Link para o post Compartilhar em outros sites
ESerra 744 Denunciar post Postado Abril 11, 2015 Se você olhar, no código que você postou não tem nenhum _top... imagino que isto esteja dentro do include menu.php. Compartilhar este post Link para o post Compartilhar em outros sites
portal33 0 Denunciar post Postado Abril 11, 2015 <? $sql = mysql_query("SELECT * FROM menu where nivel='$usernivel' order by id"); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <? while ($dados=mysql_fetch_array($sql)){?> <TR> <TD height="17" valign="middle" background="phpSecurePages/images/fundo-menu.png"> <strong> <img src="phpSecurePages/images/linha-invisivel-topo-cima.png" width="20" height="35" align="absmiddle" /> <? if($dados != ""){ echo "<a href='$dados'><font color='#666666'>$dados[nome]</font></a>"; } else{ echo "<font color='#666666'>$dados[nome]</font>";} ?> </strong></TD> </TR> <? if($dados[subcat] == "sim"){ $sql2 = mysql_query("SELECT * FROM menu_sub where nivel='$usernivel' AND id_menu='$dados[id]' order by id"); while ($dados2=mysql_fetch_array($sql2)){?> <TR> <TD class="menu" valign="middle" ><a href="<? echo "$dados2";?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"><font color="<? echo $cortexto?>"> </font><font color="#FFFFFF"><strong><img src="phpSecurePages/images/linha-invisivel-topo-cima.png" width="20" height="10" border="0" align="absmiddle" /></strong></font><font color="<? echo $cortexto?>"><? echo $dados2[nome]?></font></a></TD> </TR> <? }?> <? }?> <? }?> </table> Compartilhar este post Link para o post Compartilhar em outros sites
ESerra 744 Denunciar post Postado Abril 11, 2015 O problema está ai: <a href="<? echo "$dados2[url]";?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"?>" target="<? echo $dados2[target]?>"><font color="<? echo $cortexto?>"> Você está repetindo várias vezes o mesmo trecho de código: target="<? echo $dados2[target]?>"?>" Troque por: <a href="<?php echo $dados2['url']; ?>" target="<?php echo $dados2['target']; ?>"><font color="<?php echo $cortexto; ?>"> Compartilhar este post Link para o post Compartilhar em outros sites
portal33 0 Denunciar post Postado Abril 11, 2015 Resolvido , muito obrigado Compartilhar este post Link para o post Compartilhar em outros sites