$tpl->NOME_GRUPO = $nomeGrupo; $tpl->MOEDA_GRUPO = $oPagamento->participante->grupo->moeda->descricao; $tpl->VALOR_TOTAL_PAG = $oPagamento->moeda->cifrao . " " . $oPagamento->money($valorPagamento, "atb"); $tpl->MOEDA_PAG = $oPagamento->moeda->descricao; //$tpl->CIFRAO_PAG = $oPagamento->moeda->cifrao; $tpl->ID_PAGAMENTO_HASH = $_REQUEST['idPagamento']; $tpl->ACAO = 'IncluirAbatimento'; //carrega dados do pagamento if (isset($_REQUEST['idAbatimento'])) { $oAbat = new Abatimento(); $oAbat->getById($oAbat->md5_decrypt($_REQUEST['idAbatimento'])); $tpl->ACAO = 'AlterarAbatimento'; $idPartic = $oAbat->participante->id; $idGrupo = $oAbat->participante->grupo->id; $ano = $oAbat->participante->grupo->ano; $tpl->VALOR_ABATIMENTO = $oAbat->money($oAbat->valor, "atb"); $tpl->ID = $oAbat->id; $rsPartic = $oParticipante->getRows(0, 999, array("id" => "asc"), array("grupo" => " = " . $idGrupo)); foreach ($rsPartic as $key => $partic) { $tpl->ID_PARTICIPANTE = $partic->id; $tpl->LABEL_PARTICIPANTE = $partic->cliente->nomeCompleto; if ($idPartic == $partic->id) { $tpl->SELECTED_PARTICIPANTE = "selected"; } $tpl->block("BLOCK_PARTICIPANTE"); $tpl->clear("SELECTED_PARTICIPANTE"); } $rsGrupos = $oGrupo->getRows(0, 999, array(), array("status" => "=" . $oGrupo->STATUS_ANDAMENTO())); foreach ($rsGrupos as $key => $grupo) { $tpl->ID_GRUPO = $oAbat->md5_encrypt($grupo->id); $tpl->LABEL_GRUPO = $grupo->nomePacote;