%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home1/dimen328/libertysa.com.br/admin/modules/subcategoria_noticias/
Upload File :
Create Path :
Current File : //home1/dimen328/libertysa.com.br/admin/modules/subcategoria_noticias/CTRL.php

<?php
include_once("DAO.php");
error_reporting(0);
$oper = $_POST['oper'];

switch ($oper){

	case 1:
		$objDAO = new DAO();
		echo json_encode($objDAO->inserir(utf8_decode($_POST['descricao']),utf8_decode($_POST['visualizacao']),$_POST['status'],$_POST['id_tipo_noticia']) , 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['descricao']),utf8_decode($_POST['visualizacao']),$_POST['status'],$_POST['id_tipo_noticia']) , 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->listarAtivos($_POST['id_tipo_noticia']) , true);
	break;
	
	case 7:
		$objDAO = new DAO();
		echo json_encode($objDAO->atualizaOrdenazacao($_POST['ordem']),true);
	break;
	
	default:
	break;
}

?>

Zerion Mini Shell 1.0