コード例 #1
0
$tpl->PROXIMA_PAGINA = $configPaginacao['proximaPagina'];
$tpl->PAGINA = $pagina;
foreach ($rsPartic as $key => $participante) {
    //$tpl->ID = $participante->id;
    //calcula o status dos pagamentos;
    $tpl->STATUS_ABAT = 'status-ok';
    $rsPag = $oP->getRows(0, 999, array("id" => "asc"), array("participante" => " = " . $participante->id, "cancelado" => "=0"));
    foreach ($rsPag as $key => $pagamento) {
        $totalAbatMoedaGrupo = $oA->totalAbatimentos($pagamento->id);
        $totalAbatMoedaPagamento = $pagamento->CALCULA_MOEDA($totalAbatMoedaGrupo, $participante->grupo->moeda->id);
        if ($totalAbatMoedaPagamento < $pagamento->valorPagamento && $pagamento->devolucao == 0) {
            $tpl->STATUS_ABAT = 'status-alert';
        }
    }
    $tpl->CIFRAO = $oGrupo->moeda->cifrao;
    $tpl->PAGO = $oParticipante->money($participante->recuperaValorPago(), "atb") . "/" . $oParticipante->money($participante->valorTotal, "atb");
    $tpl->RESTA = "Pendêndia: " . $oGrupo->moeda->cifrao . " " . $oParticipante->money($participante->valorTotal - $participante->recuperaValorPago(), "atb");
    $tpl->DT_INSCR = $participante->convdata($participante->dataInscricao, "mtn");
    $tpl->NOME = $participante->cliente->nomeCompleto;
    $tpl->OPCIONAL = $participante->pacoteOpcional ? "Sim" : "Não";
    $tpl->ID_CLIENTE_HASH = $oParticipante->md5_encrypt($participante->cliente->id);
    $tpl->CPF = $oParticipante->formataCPFCNPJ($participante->cliente->cpf);
    $tpl->SITUACAO = $participante->status->descricao;
    $tpl->ID_HASH = $oParticipante->md5_encrypt($participante->id);
    if ($participante->status->id != $oParticipante->STATUS_DESISTENTE()) {
        $tpl->block("BLOCK_ACTIONS");
    } else {
        $tpl->block("BLOCK_REATIVAR");
    }
    $tpl->block("BLOCK_ITEM_LISTA");
}
コード例 #2
0
ファイル: contrato4.php プロジェクト: rodharley/obrademaria
    $tpl->CIFRAO = $oGrupo->moeda->cifrao;
    $tpl->nomeCompleto = $cliente->nomeCompleto;
    $tpl->nacionalidade = $cliente->nacionalidade;
    $tpl->estado_civil = $cliente->estadoCivil->descricao;
    $tpl->rg = $cliente->rg;
    $tpl->rgOrgaoExpedidor = $cliente->orgaoEmissorRg;
    $tpl->cpf = $cliente->cpf;
    $tpl->endereco = $cliente->endereco;
    $tpl->cidade = $cliente->cidadeEndereco;
    $tpl->uf = $cliente->estadoEndereco;
    //$tsinscricao = strtotime($oParticipante->dataInscricao);
    //$tpl->dia = date("d",$tsinscricao);
    //$tpl->mes = $oParticipante->mesExtenso(date("m",$tsinscricao));
    //$tpl->ano = date("Y",$tsinscricao);
    if ($oParticipante->pacoteOpcional == 1) {
        $tpl->taxaAdesao = $oParticipante->money($oGrupo->valorAdesao + $oGrupo->valorAdesaoOpcional, "atb");
        //$tpl->valorPacote = $oParticipante->money($oGrupo->valorPacote+$oGrupo->valorTaxaEmbarque+$oGrupo->valorPacoteOpcional+$oGrupo->valorTaxaEmbarqueOpcional,"atb");
        $tpl->total = $oParticipante->money($oGrupo->valorPacote + $oGrupo->valorTaxaEmbarque + $oGrupo->valorPacoteOpcional + $oGrupo->valorTaxaEmbarqueOpcional, "atb");
    } else {
        $tpl->taxaAdesao = $oParticipante->money($oGrupo->valorAdesao, "atb");
        //$tpl->valorPacote = $oParticipante->money($oGrupo->valorPacote+$oGrupo->valorTaxaEmbarque,"atb");
        $tpl->total = $oParticipante->money($oGrupo->valorPacote + $oGrupo->valorTaxaEmbarque, "atb");
    }
    $tpl->totalPassagem = $_REQUEST['valorPassagem'];
    $tpl->block("BLOCK_PADRAO");
} else {
    //para contratos personalizados editados
    $tpl->CONTRATO_EDITADO = $oParticipante->contrato;
    $tpl->block("BLOCK_EDITADO");
}
if (!isset($_REQUEST['tupiSendEmail'])) {
コード例 #3
0
                $tpl->VALOR_REAL = "R\$ " . $log->money(($log->grupo->valorAdesao + $log->grupo->valorAdesaoOpcional) * $pag->cotacaoReal, "atb");
                $total += $log->grupo->valorAdesao + $log->grupo->valorAdesaoOpcional;
                $totalReal += ($log->grupo->valorAdesao + $log->grupo->valorAdesaoOpcional) * $pag->cotacaoReal;
            } else {
                $tpl->VALOR_DOLLAR = $log->grupo->moeda->cifrao . " " . $log->money($log->grupo->valorAdesao, "atb");
                $tpl->VALOR_REAL = "R\$ " . $log->money($log->grupo->valorAdesao * $pag->cotacaoReal, "atb");
                $total += $log->grupo->valorAdesao;
                $totalReal += $log->grupo->valorAdesao * $pag->cotacaoReal;
            }
            $tpl->CAMBIO = $log->participante->grupo->moeda->cifrao . " " . $log->money($pag->cotacaoReal, "atb");
        } else {
            if ($log->pacoteOpcional == 1) {
                $tpl->VALOR_DOLLAR = "-";
                $tpl->VALOR_REAL = $log->grupo->moeda->cifrao . " " . $log->money($log->grupo->valorAdesao + $log->grupo->valorAdesaoOpcional, "atb");
                $totalReal += $log->grupo->valorAdesao + $log->grupo->valorAdesaoOpcional;
            } else {
                $tpl->VALOR_DOLLAR = "-";
                $tpl->VALOR_REAL = $log->grupo->moeda->cifrao . " " . $log->money($log->grupo->valorAdesao, "atb");
                $totalReal += $log->grupo->valorAdesao;
            }
            $tpl->CAMBIO = "-";
        }
        $tpl->block("BLOCK_ITEM_LISTA");
    }
}
//fim do loop de grupos
$tpl->TOTAL = $ol->money($total, "atb");
$tpl->TOTALREAL = $ol->money($totalReal, "atb");
$tpl->DATA_INICIO = $ol->convdata($dataRelatorio, "mtn");
$tpl->DATA_FIM = $ol->convdata($dataFimRelatorio, "mtn");
include "tupi.template.finalizar.php";
コード例 #4
0
    <li class="active">Editar Participante</li>
    </ul>';
$oCliente = new Cliente();
$oPartic = new Participante();
$oG = new Grupo();
$idGrupo = $oG->md5_decrypt($_REQUEST['idGrupo']);
$idParticipante = $oG->md5_decrypt($_REQUEST['idParticipante']);
$oG->getById($idGrupo);
$oPartic->getById($idParticipante);
$tpl->SELECTED_OPCIONAL_SIM = $oPartic->pacoteOpcional ? "selected" : "";
$tpl->SELECTED_OPCIONAL_NAO = $oPartic->pacoteOpcional ? "" : "selected";
$tpl->CIFRAO = $oG->moeda->cifrao;
$tpl->NOME_GRUPO = $oG->nomePacote;
$tpl->CPF = $oPartic->formataCPFCNPJ($oPartic->cliente->cpf);
$tpl->NOME = $oPartic->cliente->nomeCompleto;
$tpl->custoTotal = $oPartic->money($oPartic->custoTotal, "atb");
$tpl->valorTotal = $oPartic->money($oPartic->valorTotal, "atb");
$tpl->dt_inscr = $oPartic->convdata($oPartic->dataInscricao, "mtn");
$tpl->ID = $oPartic->id;
$tpl->ID_GRUPO_HASH = $_REQUEST['idGrupo'];
$tpl->ACAO = "Editar";
if (strpos($_SESSION['ag_itensMenu'], ",8") !== false) {
    $tpl->block("BLOCK_EDICAO");
} else {
    $tpl->block("BLOCK_NAOEDICAO");
}
//RECUPERA AS LOGS
$oLog = new LogParticipante();
$rslog = $oLog->getRows(0, 999, array(), array("participante" => "=" . $idParticipante));
foreach ($rslog as $key => $log) {
    $tpl->DATA = $oPartic->convdata(substr($log->dataHora, 0, 10), "mtn") . " - " . substr($log->dataHora, 10);
コード例 #5
0
$oParticipante = new Participante();
$idParticipante = $oParticipante->md5_decrypt($_REQUEST['idParticipante']);
$oParticipante->getById($idParticipante);
$nomeGrupo = $oParticipante->grupo->nomePacote;
$idGrupo = $oParticipante->md5_encrypt($oParticipante->grupo->id);
$nomePartic = $oParticipante->cliente->nomeCompleto;
$valorPagamento = $oParticipante->recuperaValorTodosPagamentos($oParticipante->grupo->moeda->id);
if (!isset($_REQUEST['ajax'])) {
    $tpl->BREADCRUMB = '    <ul class="breadcrumb">
    <li>
    <a href="home.php">Home</a> <span class="divider">/</span>
    </li>
    <li>
    <a href="grupos.andamento.php">Grupos</a> <span class="divider">/</span>
    </li>
	<li>
    <a href="participante.lista.php?idGrupo=' . $idGrupo . '">Participantes</a> <span class="divider">/</span>
    </li>
	<li class="active">Cancelar Participante</li>
    </ul>';
}
$tpl->NOME_GRUPO = $nomeGrupo;
$tpl->NOME_PARTICIPANTE = $nomePartic;
$tpl->MOEDA_GRUPO = $oParticipante->grupo->moeda->descricao;
$tpl->CIFRAO_GRUPO = $oParticipante->grupo->moeda->cifrao;
$tpl->VALOR_PAGO = $oParticipante->grupo->moeda->cifrao . " " . $oParticipante->money($valorPagamento, "atb");
$tpl->ID_PARTICIPANTE = $_REQUEST['idParticipante'];
$tpl->ID_GRUPO = $idGrupo;
$tpl->ACAO = 'Cancelar';
//carrega dados do pagamento
include "tupi.template.finalizar.php";