Ejemplo n.º 1
0
<head>
	<title>Cons&oacute;rcio Troncal - Bel&eacute;m (OPR)</title>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
	<style> 
	.FonteTexto{
	font-size: 10px;
	
	}
	 </style>
</head>
<body>
	
	<?php 
if ($acompanhamento->getAno() != null) {
    foreach ($acompanhamento->getAno() as $ano) {
        $resultado = $DAO->Listar($query . " AND ano = '" . $ano . "' AND mes IN (1,2,3,4,5,6) GROUP BY mes ORDER BY ano, mes, grupo ASC");
        if ($acompanhamento->getRemuneracao() != null) {
            $serie1 = new XYDataSet();
            $serie3 = new XYDataSet();
        }
        if ($acompanhamento->getReembolso() != null) {
            $serie2 = new XYDataSet();
            $serie4 = new XYDataSet();
        }
        if ($acompanhamento->getReembolso() == null && $acompanhamento->getRemuneracao() == null) {
            $serie1 = new XYDataSet();
            $serie2 = new XYDataSet();
            $serie3 = new XYDataSet();
            $serie4 = new XYDataSet();
        }
        $ano_grafico = '';
Ejemplo n.º 2
0
 function listarFuncao($id = null)
 {
     $DAO = new AcompanhamentoDAO();
     $resultado = $DAO->Listar("SELECT * FROM " . MYSQL_BASE_CONTRATO_ITEM . " WHERE tipo = 1 ");
     foreach ($resultado as $item) {
         if ($id == $item['id']) {
             echo '<option selected="selected" value="' . $item['id'] . '">' . $item['nome'] . '</option>';
         } else {
             echo '<option value="' . $item['id'] . '">' . $item['nome'] . '</option>';
         }
     }
 }