public function listar($ordem = "ASC", $campo = self::ID)
 {
     $info = parent::listar($ordem, $campo);
     if (!empty($info)) {
         $temp = new Banner($info[self::ID]);
         parent::resgatarObjetos($info);
         $temp->titulo = $info[self::TITULO];
         $temp->clicks = $info[self::CLICKS];
         $temp->enderecoURL = $info[self::ENDERECOURL];
         $temp->ativo = $info[self::ATIVO] == self::VALOR_ATIVO_TRUE ? true : false;
         $temp->tipo = $info[self::TIPO];
         if (!empty($info[self::IMAGEM])) {
             $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataBanners . $info[self::IMAGEM])));
         }
         $temp->setFlash($info[self::FLASH]);
         $temp->setDataInicio(new DataHora($info[self::DATAINICIO]));
         $temp->setDataFim(new DataHora($info[self::DATAFIM]));
         $temp->setLargura($info[self::LARGURA]);
         $temp->setAltura($info[self::ALTURA]);
         return $temp;
     }
 }
$tituloPagina = 'Utilidades > Publicidades > Banners > Cadastrar';
$iTCB = new IFAdmin(new Arquivos(Sistema::$adminLayoutCaminhoDiretorio . "/SistemaUtilidades/banner.html"));
$lI = new ListaIdiomas();
if (!empty($_POST)) {
    $erro = '';
    if (empty($_POST['titulo'])) {
        $erro = "<b>Titulo</b> não preenchido!<br><br>";
    }
    if (empty($erro)) {
        try {
            $b = new Banner();
            $b->titulo = $_POST['titulo'];
            $b->enderecoURL = $_POST['enderecoURL'];
            $b->tipo = $_POST['tipo'];
            $b->setDataInicio(new DataHora($_POST['dataInicio']));
            $b->setDataFim(new DataHora($_POST['dataFim']));
            $b->ativo = $_POST['ativo'] == ListaBanners::VALOR_ATIVO_TRUE ? true : false;
            if (!empty($_FILES['flash']['name'])) {
                $arq = Arquivos::__OpenArquivoByTEMP($_FILES['flash']);
                $arq->saveArquivo(Sistema::$caminhoDiretorio . Sistema::$caminhoDataBanners);
                $b->setFlash($_FILES['flash']['name']);
                $b->setLargura($_POST['largura']);
                $b->setAltura($_POST['altura']);
            }
            if (!empty($_FILES['imagem']['name'])) {
                $b->setImagem(new Image(Arquivos::__OpenArquivoByTEMP($_FILES['imagem'])));
            }
            $lB = new ListaBanners();
            $lB->inserir($b);
            while ($i = $lI->listar()) {
                $t = new Traducao();