Exemplo n.º 1
0
     $anuncio->setTelefones($setTelefones);
     $anuncio->setDetalhe($setDetalhe);
     $anuncio->setEmail($setEmail);
     $anuncio->setSite($setSite);
     $anuncio->setLogo($setLogo);
     $anuncio->setLogoDestaque($setLogoDestaque);
     $anuncio->setImagem1($setImagem1);
     $anuncio->setImagem2($setImagem2);
     $anuncio->setImagem3($setImagem3);
     $anuncio->setImagem4($setImagem4);
     $anuncio->setTexto($setTexto);
     $anuncio->setKeywords($setKeywords);
     $anuncio->setDe($setDe);
     $anuncio->setAte($setAte);
     $anuncio->setDestaque($setDestaque);
     $anuncio->setPesquisa($setPesquisa);
     $anuncioDAO->InsereAnuncio($anuncio);
     header("location: ../principal.php?menu=7&act=mostra&msg=1");
     break;
 case "alt":
     if ($_POST["remover"]) {
         $idanuncio = $_POST["idanuncio"];
         $anuncio = $anuncioDAO->getAnuncioPorId($idanuncio);
         $anuncioDAO->Deleta($anuncio->getIdanuncio());
         header("location: ../principal.php?menu=7&act=mostra&msg=3");
     } else {
         if ($_FILES["logo"]["name"] == "") {
             $setLogo = $_POST["logo"];
         } else {
             $logo = $_FILES["logo"]["name"];
             $logo_type = $_FILES["logo"]["type"];