示例#1
0
 /*
  Valor: EXCLUIRPRANCHA
 
 Exclui uma prancha
 
 Parametros:
 
 id
 
 Retorno:
 
 {JSON}
 */
 case "EXCLUIRPRANCHA":
     $tabela = "i3geoadmin_atlasp";
     $f = verificaFilhos();
     if (!$f) {
         retornaJSON(excluirPrancha());
     } else {
         retornaJSON("erro");
     }
     exit;
     break;
     /*
      Valor: EXCLUIRTEMA
     
     Exclui um tema de uma prancha
     
     Parametros:
     
     id
示例#2
0
             exit;
         }
     }
     if ($tabela == "temas") {
         $tabela = "i3geoadmin_temas";
         $coluna = "id_tema";
         $filhos = verificaFilhos();
         if ($filhos) {
             retornaJSON("erro");
             exit;
         }
     }
     if ($tabela == "menus") {
         $tabela = "i3geoadmin_menus";
         $coluna = "id_menu";
         $filhos = verificaFilhos();
         if ($filhos) {
             retornaJSON("erro");
             exit;
         }
     }
     retornaJSON(exclui($esquemaadmin . $tabela, $coluna, $id));
     exit;
     break;
 case "LISTAMAPSTEMAS":
     retornaJSON(listaMapsTemas());
     exit;
     break;
     /*
     Valor: VERIFICAORFAOS