} elseif ($_POST['delete-background'] == 1) { ImagemHelper::delete("img/" . $_POST['dir'] . "/" . $_POST['background']); $_POST['background'] = ""; } // preparaBotao(); $res = ConfiguracaoController::updateTopo($_POST); if ($res) { header("Location: site-topo-home?lang=" . $_POST['lang']); exit; } else { die("ERRO"); } } } elseif ($_POST['action'] == "del") { if (ConfiguracaoController::delete($_POST)) { die("OK"); } else { die("ERRO"); } } // prepara atributos do botão function preparaBotao() { if ($_POST['botao'] == "link") { $_POST['botao'] = $_POST['botao-texto']; $_POST['link'] = trim($_POST['link']); $_POST['botao-acao'] = strpos($_POST['link'], "http://") !== false ? $_POST['link'] : "http://" . $_POST['link']; $_POST['tipoAcao'] = $_POST['botao-link']; } elseif ($_POST['botao'] == "scroll") { $_POST['botao'] = $_POST['botao-texto'];
?> " class="btn btn-primary"><i class="icon-plus icon-white"></i> Novo parágrafo</a> </div> <div class="col-sm-12"> <table class="table table-hover"> <thead> <tr> <th style="width: 70%;">Texto</th> <th class='align-center' style="width: 50px;">Ordem</th> <th class='align-center' style="width: 50px;">Ativo</th> <th></th> </tr> </thead> <tbody> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("quem", false, $lang) as $quemSomos) { echo "\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>" . $quemSomos["quem-somos-p"]->Valor . "</td>\n\t\t\t\t <td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $quemSomos["quem-somos-p"]->Ordem . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($quemSomos["quem-somos-p"]->Ativo == '1' ? "<span class='fa fa-fw fa-check' style='color: green'></span>" : "<span class='fa fa-fw fa-remove' style='color: red'></span>") . "\n\t\t\t\t\t\t\t\t <td class='align-right'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='site-quem-somos-form?lang=" . $quemSomos["quem-somos-p"]->Idioma . "&item=" . $quemSomos["quem-somos-p"]->Item . "' class='btn btn-default'>Editar</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type='button' class='btn btn-danger del' value='" . $quemSomos["quem-somos-p"]->Item . "'>Excluir</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>"; } ?> </tbody> </table> </div> </div> </div> </div> <script src="js/config-quem-somos.js"></script> <?php
session_start(); // carrega opções de idiomas ativos $idiomas = IdiomaController::getAtivos(); // identifica e carrega idioma selecionado if (isset($_SESSION['mh_language_id']) && isset($_SESSION['mh_language_sigla'])) { if (file_exists("./lib/" . $_SESSION['mh_language_sigla'] . ".xml")) { $xml = simplexml_load_file("./lib/" . $_SESSION['mh_language_sigla'] . ".xml"); } } else { $_SESSION['mh_language_id'] = 1; $_SESSION['mh_language'] = "Português"; $_SESSION['mh_language_sigla'] = "pt_BR"; $xml = simplexml_load_file("./lib/pt_BR.xml"); } // configurações gerais $config = new ConfiguracaoController(); $configGeralModel = $config->getConfiguracoesUnicas("geral"); ?> <!DOCTYPE html> <html> <head> <meta name="robots" content="noindex, nofollow"> <!-- TODO: retirar essa tag antes de mandar o site pra produção --> <meta http-equiv="X-UA-Compatible" content="IE=9" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!--base href="<? echo $global_url; ?>"-->
</form> </div> </div> <script> $("#div-background .remove").click(function(){ $("#delete-background").val("1"); }); $("#botao").change(function(){ if ($(this).val() == 0) { $("#botao-texto").hide(); } else { $("#botao-texto").show(); } $(".div-botao").hide(); $("#div-botao-" + $(this).val()).show(); }); </script> <?php if (isset($_GET['item'])) { $topoHome = ConfiguracaoController::getConfiguracaoMultipla("topo-home", $_GET['item']); echo "\t<script>\n\t\t\t\t\t\$('#item').val('" . $topoHome["topo-home-titulo"]->Item . "');\n\t\t\t\t\t" . ($topoHome["topo-home-background"]->Valor != "" ? "\t\$('#background').val('" . $topoHome["topo-home-background"]->Valor . "');\n\t\t\t\t\t\t\t\$('#div-background .fileinput-preview').html('<img src=\"img/topo-home/" . $topoHome["topo-home-background"]->Valor . "\">');\n\t\t\t\t\t\t\t\$('#div-background .fileinput-new').hide();\n\t\t\t\t\t\t\t\$('#div-background .fileinput-exists').show();" : "") . "\t\t \n\t\t\t\t\t\$('#titulo').val('" . addslashes($topoHome["topo-home-titulo"]->Valor) . "');\t\t\t\t\t\n\t\t\t\t\t\$('#texto').val('" . addslashes($topoHome["topo-home-texto"]->Valor) . "');\n \$('#acao-botao').val('" . addslashes($topoHome["topo-home-acao-botao"]->Valor) . "');\n\t\t\t\t \$('#ordem').val('" . $topoHome["topo-home-titulo"]->Ordem . "');\n\t\t\t\t " . ($topoHome["topo-home-titulo"]->Ativo == '1' ? "\$('#ativo').attr('checked', true);" : "") . "\n\t\t\t\t\t// texto botão\n\t\t\t\t\t" . (!empty($topoHome["topo-home-botao"]->Valor) ? "\t\$('#botao-texto').show();\n\t\t\t\t\t\t\t\$('#botao-texto').val('" . addslashes($topoHome["topo-home-botao"]->Valor) . "');" : "") . "\n\t\t\t\t\t// ação botão\n\t\t\t\t\t" . ($topoHome["topo-home-botao-acao"]->Aux == "scroll" ? "\t\$('#div-botao-scroll').show();\n\t\t\t\t\t\t\t\$('#botao').val('scroll');\n\t\t\t\t\t\t\t\$('#botao-scroll').val('" . addslashes($topoHome["topo-home-botao-acao"]->Valor) . "');" : "") . "\n\t\t\t\t\t" . ($topoHome["topo-home-botao-acao"]->Aux == "same" || $topoHome["topo-home-botao-acao"]->Aux == "blank" ? "\t\$('#div-botao-link').show();\n\t\t\t\t\t\t\t\$('#botao').val('link');\n\t\t\t\t\t\t\t\$('#botao-link').val('" . addslashes($topoHome["topo-home-botao-acao"]->Aux) . "');\n\t\t\t\t\t\t\t\$('#link').val('" . addslashes($topoHome["topo-home-botao-acao"]->Valor) . "');" : "") . "\n\t\t\t\t\t//\n\t\t\t\t\t\$('#subtitle').text('/ Editar topo');\n\t\t\t\t</script>"; } else { echo "\t<script>\n\t\t\t\t\t\$('#next-item').val('" . ConfiguracaoController::getNextItem("topo-home") . "');\n\t\t\t\t</script>"; } include "helper/rodape.php";
" class="btn btn-primary"><i class="icon-plus icon-white"></i> Novo parceiro</a> </div> <div class="col-sm-12"> <table class="table table-hover"> <thead> <tr> <th style="width: 200px;">Foto</th> <th>Título</th> <th class='align-center' style="width: 50px;">Ordem</th> <th class='align-center' style="width: 50px;">Ativo</th> <th style="width: 20%;"></th> </tr> </thead> <tbody> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("parceiro", false, $lang) as $parceiro) { echo "\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($parceiro["parceiro-logo"]->Valor != "" ? "<img src='img/parceiros/" . $parceiro["parceiro-logo"]->Valor . "' width='120px' />" : "") . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $parceiro["parceiro-titulo"]->Valor . "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $parceiro["parceiro-titulo"]->Ordem . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($parceiro["parceiro-titulo"]->Ativo == '1' ? "<span class='fa fa-fw fa-check' style='color: green'></span>" : "<span class='fa fa-fw fa-remove' style='color: red'></span>") . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-right'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='site-parceiros-form?lang=" . $parceiro["parceiro-titulo"]->Idioma . "&item=" . $parceiro["parceiro-titulo"]->Item . "' class='btn btn-default'>Editar</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type='button' class='btn btn-danger del' value='" . $parceiro["parceiro-titulo"]->Item . "'>Excluir</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>"; } ?> </tbody> </table> </div> </div> </div> </div> <script src="js/config-parceiros.js"></script> <?php
" class="btn btn-primary"><i class="icon-plus icon-white"></i> Novo serviço</a> </div> <div class="col-sm-12"> <table class="table table-hover"> <thead> <tr> <th style="width: 50px;">Imagem</th> <th>Título</th> <th class='align-center' style="width: 50px;">Ordem</th> <th class='align-center' style="width: 50px;">Ativo</th> <th style="width: 20%;"></th> </tr> </thead> <tbody> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("servico", false, $lang) as $servico) { echo "\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($servico["servico-icone"]->Valor != "" ? "<img src='img/servicos/" . $servico["servico-icone"]->Valor . "' width='50px' />" : "") . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $servico["servico-titulo"]->Valor . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $servico["servico-titulo"]->Ordem . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($servico["servico-titulo"]->Ativo == '1' ? "<span class='fa fa-fw fa-check' style='color: green'></span>" : "<span class='fa fa-fw fa-remove' style='color: red'></span>") . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-right'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='site-servicos-form?lang=" . $servico["servico-titulo"]->Idioma . "&item=" . $servico["servico-titulo"]->Item . "' class='btn btn-default'>Editar</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type='button' class='btn btn-danger del' value='" . $servico["servico-titulo"]->Item . "'>Excluir</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>"; } ?> </tbody> </table> </div> </div> </div> </div> <script src="js/config-servicos.js"></script> <?php
Serviços de Comunicação e Marketing tornarão sua marca ainda mais atrativa, consolidando seus valores e objetivos com os consumidores. Profissionais de todas as áreas de comunicação trarão o suporte para sua marca ter a melhor relação com o público alvo. </p> </div> </div> */ ?> </div> </div> <div id="bloco-parceiros" class="div-verde-clara"> <div class="container"> <h1 class="titulo-bloco">PARCEIROS</h1> <div class="row row-parceiros"> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("parceiro") as $parceiro) { echo "\t<div class='col-xs-6 col-sm-3 col-md-2 logo-parceiro' style='background-image: url(admin/img/parceiros/" . $parceiro["parceiro-logo"]->Valor . ")'>\n\t\t\t\t\t\t\t\t</div>"; } /* <div class="col-xs-6 col-sm-3 col-md-2 logo-parceiro" style="background-image: url(admin/img/parceiros/logo-parceiro-Telenor.png)"> </div> <div class="col-xs-6 col-sm-3 col-md-2 logo-parceiro" style="background-image: url(admin/img/parceiros/logo-parceiro-Nice.png)"> </div> <div class="col-xs-6 col-sm-3 col-md-2 logo-parceiro" style="background-image: url(admin/img/parceiros/logo-parceiro-Plate.png)"> </div> <div class="col-xs-6 col-sm-3 col-md-2 logo-parceiro" style="background-image: url(admin/img/parceiros/logo-parceiro-Brilliant.png)"> </div> <div class="col-xs-6 col-sm-3 col-md-2 logo-parceiro" style="background-image: url(admin/img/parceiros/logo-parceiro-Microsoft.png)"> </div> <div class="col-xs-6 col-sm-3 col-md-2 logo-parceiro" style="background-image: url(admin/img/parceiros/logo-parceiro-Color-Media.png)"> </div>
} echo "</div>"; ?> </div> </div> <div id="bloco-parceiros" class="div-verde-clara"> <div class="container"> <h1 class="titulo-bloco"><?php echo utf8_decode($xml->corpo->parceiros); ?> </h1> <div class="row row-parceiros"> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("parceiro", true, $_SESSION['mh_language_id']) as $parceiro) { echo "\t<div class='col-xs-6 col-sm-3 col-md-2 col-centered logo-parceiro' style='background-image: url(admin/img/parceiros/" . $parceiro["parceiro-logo"]->Valor . ")'>\n\t\t\t\t\t\t\t\t</div>"; } ?> </div> </div> </div> <div id="bloco-contato" class="div-verde-escura"> <div class="container"> <h1 class="titulo-bloco"><?php echo utf8_decode($xml->corpo->contato); ?> </h1> <div class="row">
</div> <div class="form-group"> <label for="ordem" class="col-sm-2 control-label">Ordem</label> <div class="col-sm-2"> <input class="form-control" name="ordem" id="ordem" type="number"> </div> </div> <div class="form-group"> <label for="ativo" class="col-sm-2 control-label">Ativo</label> <div class="col-sm-4"> <input id="ativo" name="ativo" type="checkbox" /> </div> </div> </fieldset> </form> </div> </div> <?php if (isset($_GET['item'])) { $quemSomos = ConfiguracaoController::getConfiguracaoMultipla("quem-somos", $_GET['item']); echo "\t<script>\n\t\t\t\t\t\$('#item').val('" . $quemSomos["quem-somos-p"]->Item . "');\n\t\t\t\t\t\$('#texto').val('" . addslashes($quemSomos["quem-somos-p"]->Valor) . "');\n\t\t\t\t\t\$('#ordem').val('" . $quemSomos["quem-somos-p"]->Ordem . "');\n \$('#" . $quemSomos["quem-somos-p"]->Aux . "').attr('checked', true);\n \$('#" . $quemSomos["quem-somos-p"]->Aux . "').parent().addClass('active');\n \$('#ordem').val('" . $quemSomos["quem-somos-p"]->Ordem . "');\n \t\t\t\t " . ($quemSomos["quem-somos-p"]->Ativo == '1' ? "\$('#ativo').attr('checked', true);" : "") . "\n\t\t\t\t\t\$('#subtitle').text('/ Editar parágrafo');\n\t\t\t\t</script>"; } else { echo "\t<script>\n\t\t\t\t\t\$('#next-item').val('" . ConfiguracaoController::getNextItem("quem-somos") . "');\n\t\t\t\t\t// default align: justify\n\t\t\t\t\t\$('#justify').attr('checked', true);\n\t\t\t\t\t\$('#justify').parent().addClass('active');\n\t\t\t\t</script>"; } include "helper/rodape.php";
/** * Show the application welcome screen to the user. * * @return Response */ public function index() { //recuperando alguma informacao da tabela de configurações $title = ConfiguracaoController::get('title'); return view('welcome')->with('name', $title); }
<label for="ativo" class="col-sm-2 control-label">Ativo</label> <div class="col-sm-4"> <input id="ativo" name="ativo" type="checkbox" /> </div> </div> </fieldset> </form> </div> </div> <script> $("#div-foto .remove").click(function(){ $("#delete-foto").val("1"); }); $("#div-logo .remove").click(function(){ $("#delete-logo").val("1"); }); </script> <?php if (isset($_GET['item'])) { $depoimento = ConfiguracaoController::getConfiguracaoMultipla("depoimento", $_GET['item']); echo "\t<script>\n\t\t\t\t\t\$('#item').val('" . $depoimento["depoimento-titulo"]->Item . "');\n\t\t\t\t\t" . ($depoimento["depoimento-foto"]->Valor != "" ? "\t\$('#foto').val('" . $depoimento["depoimento-foto"]->Valor . "');\n\t\t\t\t\t\t\t\$('#div-foto .fileinput-preview').html('<img src=\"img/depoimentos/" . $depoimento["depoimento-foto"]->Valor . "\">');\n\t\t\t\t\t\t\t\$('#div-foto .fileinput-new').hide();\n\t\t\t\t\t\t\t\$('#div-foto .fileinput-exists').show();" : "") . "\n\t\t\t\t\t\$('#titulo').val('" . addslashes($depoimento["depoimento-titulo"]->Valor) . "');\n\t\t\t\t\t\$('#subtitulo').val('" . addslashes($depoimento["depoimento-subtitulo"]->Valor) . "');\n\t\t\t\t\t\$('#texto').val('" . addslashes($depoimento["depoimento-texto"]->Valor) . "');\n\t\t\t\t\t" . ($depoimento["depoimento-logo"]->Valor != "" ? "\t\$('#logo').val('" . $depoimento["depoimento-logo"]->Valor . "');\n\t\t\t\t\t\t\t\$('#div-logo .fileinput-preview').html('<img src=\"img/depoimentos/" . $depoimento["depoimento-logo"]->Valor . "\">');\n\t\t\t\t\t\t\t\$('#div-logo .fileinput-new').hide();\n\t\t\t\t\t\t\t\$('#div-logo .fileinput-exists').show();" : "") . "\n\t\t\t\t \$('#ordem').val('" . $depoimento["depoimento-titulo"]->Ordem . "');\t\t\t \n\t\t\t\t " . ($depoimento["depoimento-titulo"]->Ativo == '1' ? "\$('#ativo').attr('checked', true);" : "") . "\n\t\t\t\t\t\$('#subtitle').text('/ Editar depoimento');\n\t\t\t\t</script>"; } else { echo "\t<script>\n\t\t\t\t\t\$('#next-item').val('" . ConfiguracaoController::getNextItem("depoimento") . "');\n\t\t\t\t</script>"; } include "helper/rodape.php";
?> " class="btn btn-primary"><i class="icon-plus icon-white"></i> Nova atuação</a> </div> <div class="col-sm-12"> <table class="table table-hover"> <thead> <tr> <th>Texto</th> <th class='align-center' style="width: 50px;">Ordem</th> <th class='align-center' style="width: 50px;">Ativo</th> <th style="width: 20%;"></th> </tr> </thead> <tbody> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("atuacao", false, $lang) as $atuacao) { echo "\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $atuacao["atuacao-p"]->Valor . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t <td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $atuacao["atuacao-p"]->Ordem . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($atuacao["atuacao-p"]->Ativo == '1' ? "<span class='fa fa-fw fa-check' style='color: green'></span>" : "<span class='fa fa-fw fa-remove' style='color: red'></span>") . "\n\t\t\t\t\t\t\t\t <td class='align-right'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='site-atuacao-form?lang=" . $atuacao["atuacao-p"]->Idioma . "&item=" . $atuacao["atuacao-p"]->Item . "' class='btn btn-default'>Editar</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type='button' class='btn btn-danger del' value='" . $atuacao["atuacao-p"]->Item . "'>Excluir</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>"; } ?> </tbody> </table> </div> </div> </div> </div> <script src="js/config-atuacao.js"></script> <?php
</div> <div class="col-sm-12"> <table class="table table-hover"> <thead> <tr> <th style="width: 50px;">Foto</th> <th style="width: 25%;">Título / subtítulo</th> <th>Texto</th> <th class='align-center' style="width: 50px;">Ordem</th> <th class='align-center' style="width: 50px;">Ativo</th> <th style="width: 20%;"></th> </tr> </thead> <tbody> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("depoimento", false, $lang) as $depoimento) { echo "\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($depoimento["depoimento-foto"]->Valor != "" ? "<img src='img/depoimentos/" . $depoimento["depoimento-foto"]->Valor . "' width='50px' />" : "") . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $depoimento["depoimento-titulo"]->Valor . "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<small>" . $depoimento["depoimento-subtitulo"]->Valor . "</small>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>" . $depoimento["depoimento-texto"]->Valor . "</td>\n\t\t\t\t <td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $depoimento["depoimento-titulo"]->Ordem . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($depoimento["depoimento-titulo"]->Ativo == '1' ? "<span class='fa fa-fw fa-check' style='color: green'></span>" : "<span class='fa fa-fw fa-remove' style='color: red'></span>") . "\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-right'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='site-depoimentos-form?lang=" . $depoimento["depoimento-titulo"]->Idioma . "&item=" . $depoimento["depoimento-titulo"]->Item . "' class='btn btn-default'>Editar</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type='button' class='btn btn-danger del' value='" . $depoimento["depoimento-titulo"]->Item . "'>Excluir</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>"; } ?> </tbody> </table> </div> </div> </div> </div> <script src="js/config-depoimentos.js"></script> <?php
" class="btn btn-primary"><i class="icon-plus icon-white"></i> Novo topo</a> </div> <div class="col-sm-12"> <table class="table table-hover"> <thead> <tr> <th style="width: 180px;">Background</th> <th>Título / Texto</th> <th class='align-center' style="width: 50px;">Ordem</th> <th class='align-center' style="width: 50px;">Ativo</th> <th style="width: 20%;"></th> </tr> </thead> <tbody> <?php foreach (ConfiguracaoController::getConfiguracoesMultiplas("topo-home", false, $lang) as $topo) { echo "\t<tr>\n\t <td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($topo["topo-home-background"]->Valor != "" ? "<img src='img/topo-home/" . $topo["topo-home-background"]->Valor . "' width='150px' />" : "") . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $topo["topo-home-titulo"]->Valor . "\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br/><br/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $topo["topo-home-texto"]->Valor . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\t\n\t\t\t\t \t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $topo["topo-home-titulo"]->Ordem . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td class='align-center'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . ($topo["topo-home-titulo"]->Ativo == '1' ? "<span class='fa fa-fw fa-check' style='color: green'></span>" : "<span class='fa fa-fw fa-remove' style='color: red'></span>") . "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\t\t\t\t\n\t\t\t\t\t\t\t\t <td class='align-right'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='site-topo-home-form?lang=" . $topo["topo-home-titulo"]->Idioma . "&item=" . $topo["topo-home-titulo"]->Item . "' class='btn btn-default'>Editar</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type='button' class='btn btn-danger del' value='" . $topo["topo-home-titulo"]->Item . "'>Excluir</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>"; } ?> </tbody> </table> </div> </div> </div> </div> <script src="js/config-topo-home.js"></script> <?php