Beispiel #1
0
                $tpl->EMISSAO = setDateDiaMesAno($nota['emissao']);
                $tpl->LANCTO = ExplodeDateTime($nota['criado'], true);
                $tpl->VENCTO = setDateDiaMesAno($nota['vencto']);
                $tpl->SAIDA = setDateDiaMesAno($nota['saida']);
                $tpl->PAGOEM = setDateDiaMesAno($nota['pagto']);
                $tpl->CONSUMO = tratarValor($nota['consumo'], false);
                $tpl->VALOR = tratarValor($nota['valor'], true);
                $tpl->USUARIO = $nota['login'];
                $tpl->NOTAID = substr(sha1($nota['id']), 0, 5);
                $tpl->NUMERO = $nota['id'];
                $autos1 = $nota['pasta'] == 0 ? "Autos " : "Processo ";
                $autos2 = $nota['pasta'] == 0 ? number_format($nota['num'], 0, ',', '.') : $nota['num'];
                $autos3 = $nota['autos'];
                $tpl->AUTOS = $autos1 . " n°" . $autos2 . " - " . $autos3;
                $tpl->PROV = $nota['provisoria'];
                $tpl->COMPL = $nota['endereco'] == "" ? $nota['compl'] : $nota['endereco'];
                $tpl->EMPRESA = $nota['empresa'];
                $tpl->OBS = $rel->getObs($nota['desc']);
                $tpl->MESREF = getMesNome($nota['mes_ref'], true) . "/" . $nota['ano_ref'];
                $tpl->INDEX = $i;
                $i++;
                $tpl->block('EACH_NOTAS');
            }
        }
        $tpl->block("RESULT_BLOCK");
    }
}
$fim = execucao();
$tempo = number_format($fim - $inicio, 6);
$tpl->EXECTIME = "Tempo de Execução: <b>" . $tempo . "</b> segundos ";
$tpl->show();