• 0-Inicio
  • prepare(" select codigo,menu_descr_tab,menu_menu_grupo,menu_endereco from menu where menu_codigo_tab='".$var_app."' and ativo='S' order by menu_ordem "); $stmt->execute(); // Executa a query preparada. $stmt->store_result(); $stmt->bind_result($CODIGO_MENU,$DESCRICAO_MENU,$GRUPO_MENU,$ENDERECO_MENU); while ($stmt->fetch()){ $DESCRICAO_MENU_UTF8 = mb_convert_encoding($DESCRICAO_MENU, 'UTF-8', 'ISO-8859-1'); //$DESCRICAO_MENU_UTF8=utf8_encode($DESCRICAO_MENU); if ($GRUPO_MENU=='N') {ECHO"
  • $DESCRICAO_MENU_UTF8
  • ";} if ($GRUPO_MENU=='S') {echo"
  • $DESCRICAO_MENU_UTF8
      "; $stmt1 = $mysqli->prepare("select codigo,menu_grupo_descr_tab,menu_grupo_menu_sub_grupo,menu_grupo_endereco from menu_grupo where menu_grupo_menu='$CODIGO_MENU' and ativo='S' order by menu_grupo_ordem"); $stmt1->execute(); // Executa a query preparada. $stmt1->store_result(); $stmt1->bind_result($CODIGO_MENU_GRUPO,$DESCRICAO_GRUPO,$MENU_SUB_GRUPO,$ENDERECO_GRUPO); while ($stmt1->fetch()) { //$DESCRICAO_GRUPO_UTF8=utf8_encode($DESCRICAO_GRUPO); $DESCRICAO_GRUPO_UTF8 = mb_convert_encoding($DESCRICAO_GRUPO, 'UTF-8', 'ISO-8859-1'); if ($MENU_SUB_GRUPO=='N') {echo"
    • $DESCRICAO_GRUPO_UTF8
    • ";} if ($MENU_SUB_GRUPO=='S') {echo"
    • $DESCRICAO_GRUPO_UTF8
        "; $stmt2 = $mysqli->prepare("select menu_sub_grupo_descr_tab,menu_sub_grupo_endereco from menu_sub_grupo where menu_sub_grupo_menu_grupo='$CODIGO_MENU_GRUPO' and ativo='S' order by menu_sub_grupo_ordem "); $stmt2->execute(); // Executa a query preparada. $stmt2->store_result(); $stmt2->bind_result($DESCRICAO_MENU_SUB_GRUPO,$ENDERECO_MENU_SUB_GRUPO); while ($stmt2->fetch()){ //$DESCRICAO_MENU_SUB_GRUPO_UTF8=utf8_encode($DESCRICAO_MENU_SUB_GRUPO); $DESCRICAO_MENU_SUB_GRUPO_UTF8 = mb_convert_encoding($DESCRICAO_MENU_SUB_GRUPO, 'UTF-8', 'ISO-8859-1'); echo"
      • $DESCRICAO_MENU_SUB_GRUPO_UTF8
      • ";} echo"
      "; } } ECHO"
    "; } } ?>