%PDF- %PDF-
Direktori : /home1/dimen328/libertysa.com.br/admin/modules/paginas/ |
Current File : //home1/dimen328/libertysa.com.br/admin/modules/paginas/CTRL.php |
<?php include_once("DAO.php"); $oper = $_POST['oper']; switch ($oper){ case 1: $objDAO = new DAO(); echo json_encode($objDAO->inserir(utf8_decode($_POST['arquivo']),utf8_decode($_POST['titulo']),utf8_decode($_POST['resumo']),$_POST['menu'],$_POST['status'],$_POST['visualizacao']) , true); break; case 2: $objDAO = new DAO(); echo json_encode($objDAO->listar($_POST['filtro']) , true); break; case 3: $objDAO = new DAO(); echo json_encode($objDAO->preencher($_POST['id']) , true); break; case 4: $objDAO = new DAO(); echo json_encode($objDAO->atualizar($_POST['id'],utf8_decode($_POST['titulo']),utf8_decode($_POST['resumo']),$_POST['menu'],$_POST['status'],$_POST['visualizacao']) , true); break; case 5: $objDAO = new DAO(); echo json_encode($objDAO->excluir($_POST['id']) , true); break; case 6: $objDAO = new DAO(); echo json_encode($objDAO->rel_banner() , true); break; case 7: $objDAO = new DAO(); echo json_encode($objDAO->atualizarTipoMenu($_POST['id'],$_POST['checkAtivos']) , true); break; case 8: $objDAO = new DAO(); echo json_encode($objDAO->tratarCheckbox($_POST['id']) , true); break; case 9: $objDAO = new DAO(); echo json_encode($objDAO->tratarCheckboxGalerias($_POST['idpagina']) , true); break; case 10: $objDAO = new DAO(); echo json_encode($objDAO->atualizarGalerias($_POST['idpagina'],$_POST['checkAtivos'],$_POST['checkDesativos']) , true); break; case 11: $objDAO = new DAO(); echo json_encode($objDAO->gravarArquivoPHP(utf8_decode($_POST['arquivo']),utf8_decode($_POST['conteudo'])) , true); break; case 12: $objDAO = new DAO(); echo json_encode($objDAO->preencheConteudo(utf8_decode($_POST['tipoModelo'])) , true); break; case 13: $objDAO = new DAO(); echo ($objDAO->lerArquivoPHP(utf8_decode($_POST['arquivo']))); break; case 14 : $objDAO = new DAO(); echo json_encode($objDAO->verificaExistenciaPagina($_POST['idmenu'],$_POST['status']) , true); break; default: break; } ?>