コード例 #1
0
ファイル: google.php プロジェクト: marcioyonamine/igsisv1
<?php 
@ini_set('display_errors', '1');
error_reporting(E_ALL);
require "../funcoes/funcoesConecta.php";
require "../funcoes/funcoesGerais.php";
require "../funcoes/funcoesSiscontrat.php";
require "../include/google/vendor/autoload.php";
require "../include/google/examples/templates/base.php";
$pedido = $_GET['pedido'];
$x = retornaParcelaPagamento($pedido);
echo "<pre>";
var_dump($x);
echo "</pre>";
$client = new Google_Client();
/************************************************
  ATTENTION: Fill in these values, or make sure you
  have set the GOOGLE_APPLICATION_CREDENTIALS
  environment variable. You can get these credentials
  by creating a new Service Account in the
  API console. Be sure to store the key file
  somewhere you can get to it - though in real
  operations you'd want to make sure it wasn't
  accessible from the webserver!
 ************************************************/
putenv("GOOGLE_APPLICATION_CREDENTIALS=service-account-credentials.json");
if ($credentials_file = checkServiceAccountCredentialsFile()) {
    // set the location manually
    $client->setAuthConfig($credentials_file);
} elseif (getenv('GOOGLE_APPLICATION_CREDENTIALS')) {
    // use the application default credentials
    $client->useApplicationDefaultCredentials();
require_once "../funcoes/funcoesSiscontrat.php";
require_once "../funcoes/funcoesFormacao.php";
//CONEXÃO COM BANCO DE DADOS
$conexao = bancoMysqli();
//CONSULTA
$id_ped = $_GET['id'];
$pedido = siscontrat($id_ped);
$id_parcela = $_GET['parcela'];
$codPed = $id_ped;
$objeto = $pedido["Objeto"];
$local = $pedido["Local"];
$justificativa = $pedido["Justificativa"];
$pedido_pessoa = siscontratDocs($pedido['IdProponente'], 1);
$nome = $pedido_pessoa["Nome"];
$cpf = $pedido_pessoa["CPF"];
$parcelamento = retornaParcelaPagamento($id_ped);
$periodoParcela = $parcelamento[$id_parcela]['periodo'];
$horas = $parcelamento[$id_parcela]['horas'];
$dataFinal = $parcelamento[$id_parcela]['vigencia_final'];
$formacao = pdfFormacao($id_ped);
$cargo = $formacao["Cargo"];
$programa = $formacao["Programa"];
$linguagem = $formacao["linguagem"];
$retornaMes = retornaMesExtenso(exibirDataMysql($dataFinal));
$dataAtual = date("d/m/Y");
$ano = date('Y');
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=Relatorio_Horas_trabalhadas_{$ano}-{$id_ped}.doc");
?>

<html>
コード例 #3
0
ファイル: parcela.php プロジェクト: marcioyonamine/igsisv1
<?php 
@ini_set('display_errors', '1');
error_reporting(E_ALL);
require "../funcoes/funcoesConecta.php";
require "../funcoes/funcoesGerais.php";
require "../funcoes/funcoesSiscontrat.php";
$pedido = $_GET['pedido'];
$x = retornaParcelaPagamento($pedido, $parcela);
echo "<pre>";
var_dump($x);
echo "</pre>";