Example #1
0
function Main()
{
    $u = unserialize($_SESSION['usu']);
    $tpl = file_get_contents("tpl/frm-montagem.html");
    $botoes = "";
    //$botoes = Botao::BotaoSalvar("fntSalvaMontagem();", "Salvar a montagem atual");
    $botoes .= Botao::BotaoAdd("fntAddFolha();", "@lng[Adicionar o item selecionado a montagem]");
    $botoes .= Botao::BotaoExcluir("fntRemoverItemMontagem()", "@lng[Remover o item selecionado da montagem]");
    $botoes .= Botao::BotaoConfigs("fntMostraConfigs();", "@lng[Permite modificar as configurações do item selecionado]");
    //$botoes .= Botao::BotaoSalvar("fntSalvaConfigs();", "Salvar as configurações do item selecionado");
    $botoes .= Botao::BotaoCancelar("fntVoltaTelaOpcoes();", "@lng[Voltar para a tela inicial do caso]");
    $mon = new Montagem();
    $mon->setCodCaso($_SESSION['caso']);
    $rais = $mon->ExisteArvore();
    if (is_null($rais)) {
        $rais = $mon->AddRais();
    }
    $arvore = $mon->RetornaArvoreLista();
    $anexos = $mon->RetornaComboConteudosExtras();
    if ($arvore != false) {
        //echo($arvore);
        //return;
        $tpl = str_replace("<!--arvore-->", $arvore, $tpl);
    } else {
        $tpl = str_replace("<!--arvore-->", $mon->getErro(), $tpl);
    }
    $tpl = str_replace("<!--selConteudos-->", $anexos, $tpl);
    $tpl = str_replace("<!--telatopo-->", Comuns::GeraTopoPagina($u), $tpl);
    $tpl = str_replace("<!--itens-toolbar-->", $botoes, $tpl);
    echo Comuns::Idioma($tpl);
}
Example #2
0
 public static function MenusConteudos()
 {
     $menus .= Botao::BotaoAdd("fntExibeCadastroEtapa();", "@lng[Adicionar novo conteúdo]", "@lng[Novo hipertexto]");
     $menus .= Botao::BotaoUploadImagem("fntTelaUploadImg('cont', 0);", "@lng[Adicionar imagem]");
     $menus .= Botao::BotaoUploadSom("fntTelaUploadAudio('cont');", "@lng[Adicionar áudio]");
     $menus .= Botao::BotaoUploadVideo("fntTelaUploadVideo('cont');", "@lng[Adicionar vídeo]");
     $menus .= Botao::BotaoUploadDocumento("fntTelaUploadDocumento('cont');", "@lng[Adicionar documento]");
     $menus .= Botao::BotaoCancelar("fntTelaInicial();");
     return $menus;
 }