$codTemplate = "relatorio"; include "tupi.template.inicializar.php"; $codAcesso = 10; include "tupi.seguranca.php"; //configura o grupo na pagina $oParticipante = new Participante(); $oCidade = new Cidade(); $oGrupo = new Grupo(); $oQuarto = new Quarto(); $oD = new Distribuicao(); $idGrupo = $oGrupo->md5_decrypt($_REQUEST['idGrupo']); $oGrupo->getById($idGrupo); $tpl->ID_GRUPO_HASH = $_REQUEST['idGrupo']; $tpl->ID_PARTICIPANTE_HASH = $_REQUEST['idParticipante']; $tpl->PACOTE = $oGrupo->nomePacote; $tpl->VALOR = $oGrupo->money($oGrupo->valorPacote + $oGrupo->valorTaxaEmbarque + $oGrupo->valorAdesao, "atb"); if ($oGrupo->possuiPacoteOpcional == 1) { $tpl->OPCIONAL = $oGrupo->nomePacoteOpcional; $tpl->VALOR_OPCIONAL = $oGrupo->money($oGrupo->valorPacoteOpcional + $oGrupo->valorTaxaEmbarqueOpcional + $oGrupo->valorAdesaoOpcional, "atb"); $tpl->block("BLOCK_OPCIONAL"); } if (isset($_REQUEST['idParticipante'])) { $oParticipante->getById($oGrupo->md5_decrypt($_REQUEST['idParticipante'])); $cliente = $oParticipante->cliente; $tpl->NOME = $cliente->nomeCompleto; $tpl->DATA_NASC = $oGrupo->convdata($cliente->dataNascimento, "mtn"); $tpl->ESTADO_CIVIL = $cliente->estadoCivil->descricao; $tpl->CIDADE_NASC = $cliente->cidadeNascimento; $tpl->UF_NASC = $cliente->estadoNascimento; $tpl->PAIS_NASC = $cliente->paisNascimento; $tpl->ENDERECO = $cliente->endereco;
include "tupi.inicializar.php"; $codTemplate = "relatorio"; include "tupi.template.inicializar.php"; $codAcesso = 16; include "tupi.seguranca.php"; //titulo do relatorio $tpl->TITULO = "Relatório de Pagamentos de Participantes"; $tpl->DATA_RELATORIO = "Data/Hora:" . date("d/m/Y h:i:s"); $ogrupo = new Grupo(); $om = new Moeda(); $oAbat = new Abatimento(); $ogrupo->getById($ogrupo->md5_decrypt($_REQUEST['idGrupo'])); $tpl->COD_GRUPO = str_pad($ogrupo->id, 7, "0", STR_PAD_LEFT); $tpl->NOME_GRUPO = $ogrupo->nomePacote; $tpl->VALOR_GRUPO = $ogrupo->money($ogrupo->getValorTotal(0), "atb"); $tpl->CIFRAO_GRUPO = $ogrupo->moeda->cifrao; $tpl->MOEDA_GRUPO_PLURAL = $ogrupo->moeda->plural; //$tpl->DATA_ATUAL = date("d/m/Y"); //pacote opcional if ($ogrupo->possuiPacoteOpcional == 1) { $tpl->NOME_GRUPO_OPCIONAL = $ogrupo->nomePacoteOpcional; $tpl->VALOR_GRUPO_OPCIONAL = $ogrupo->money($ogrupo->getValorTotalOpcional(), "atb"); $tpl->block("BLOCK_OPCIONAL"); } if ($ogrupo->moeda->id == $om->DOLLAR()) { $tpl->block("BLOCK_GRUPO_DOLLAR_HEAD"); } //recupera participantes aprovados $opartic = new Participante(); $rs = $opartic->getRows(0, 999, array("id" => "asc"), array("grupo" => "=" . $ogrupo->id, "status" => "in(" . $opartic->STATUS_PENDENTE() . "," . $opartic->STATUS_APROVADO() . ")"));
<li class="active">Editar Grupo</li> </ul>'; //recuperacao do grupo $oGrupo = new Grupo(); $oMoeda = new Moeda(); $oStatusGrupo = new StatusGrupo(); $tpl->ACAO = "Incluir"; $idMoedaAtual = 0; $idEstatusAtual = 0; if (isset($_REQUEST['idGrupo'])) { $oGrupo->getById($oGrupo->md5_Decrypt($_REQUEST['idGrupo'])); $tpl->nomePacote = $oGrupo->nomePacote; $tpl->dataEmbarque = $oGrupo->convdata($oGrupo->dataEmbarque, 'mtn'); $tpl->dataChegada = $oGrupo->convdata($oGrupo->dataChegada, 'mtn'); $tpl->valorPacote = $oGrupo->money($oGrupo->valorPacote, 'atb'); $tpl->valorTaxaEmbarque = $oGrupo->money($oGrupo->valorTaxaEmbarque, 'atb'); $tpl->valorAdesao = $oGrupo->money($oGrupo->valorAdesao, 'atb'); $tpl->valorCusto = $oGrupo->money($oGrupo->valorCusto, 'atb'); $tpl->cotacaoCusto = $oGrupo->money($oGrupo->cotacaoCusto, 'atb'); $tpl->ano = $oGrupo->ano; $idMoedaAtual = $oGrupo->moeda->id; $idEstatusAtual = $oGrupo->status->id; //$tpl->possuiPacoteOpcional = $oGrupo->possuiPacoteOpcional; $tpl->nomePacoteOpcional = $oGrupo->nomePacoteOpcional; $tpl->valorPacoteOpcional = $oGrupo->money($oGrupo->valorPacoteOpcional, 'atb'); $tpl->valorTaxaEmbarqueOpcional = $oGrupo->money($oGrupo->valorTaxaEmbarqueOpcional, 'atb'); $tpl->valorAdesaoOpcional = $oGrupo->money($oGrupo->valorAdesaoOpcional, 'atb'); $tpl->valorCustoOpcional = $oGrupo->money($oGrupo->valorCustoOpcional, 'atb'); $tpl->roteiroAnexo = $oGrupo->roteiroAnexo; $tpl->pautaAnexo = $oGrupo->pautaAnexo;