Example #1
0
            $protocolo = recuperaDados("ig_protocolo", $campo['idEvento'], "ig_evento_idEvento");
            $chamado = recuperaAlteracoesEvento($campo['idEvento']);
            $instituicao = recuperaDados("ig_instituicao", $campo['idInstituicao'], "idInstituicao");
            echo "<tr>";
            echo "<td class='list_description'><a href='?perfil=detalhe&evento=" . $campo['idEvento'] . "' target='_blank'>" . $campo['idEvento'] . "</a>\n\t\t\t</td>";
            echo "<td class='list_description'>" . $campo['nomeEvento'] . " [";
            if ($chamado['numero'] == '0') {
                echo "0";
            } else {
                echo "<a href='?perfil=chamado&p=evento&id=" . $campo['idEvento'] . "' target='_blank'>" . $chamado['numero'] . "</a>";
            }
            echo "]</td>";
            echo "<td class='list_description'>" . retornaTipo($campo['ig_tipo_evento_idTipoEvento']) . "</td>";
            echo "<td class='list_description'>" . $instituicao['instituicao'] . "</td>";
            echo "<td class='list_description'>" . retornaPeriodo($campo['idEvento']) . "</td>";
            echo "<td class='list_description'>" . substr(retornaPedidos($campo['idEvento']), 7) . "</td>";
            echo "<td class='list_description'>\n\t\t\t<form method='POST' action='?perfil=administrador&p=reabertura'>\n\t\t\t<input type='hidden' name='reabertura' value='" . $campo['idEvento'] . "' >\n\t\t\t<input type ='submit' class='btn btn-theme  btn-block' value='reabrir'></td></form>";
            echo "<td class='list_description'>\n\t\t\t<form method='POST' action='?perfil=administrador&p=reabertura'>\n\t\t\t<input type='hidden' name='apagar' value='" . $campo['idEvento'] . "' >\n\t\t\t<input type ='submit' class='btn btn-theme  btn-block' value='Apagar'></td></form>";
            echo "<td class='list_description'>\n\t\t\t<form method='POST' action='?perfil=evento&p=basica' target='_blank'>\n\t\t\t<input type='hidden' name='carregar' value='" . $campo['idEvento'] . "' >\n\t\t\t<input type ='submit' class='btn btn-theme  btn-block' value='Carregar'></td></form>";
            echo "</tr>";
        }
        ?>
                        </tbody>
				</table>
			</div>
		</div>
</section>

		
<?php 
        break;
Example #2
0
function listaEventosEnviados($idUsuario)
{
    $con = bancoMysqli();
    $sql = "SELECT * FROM ig_evento WHERE (idUsuario = {$idUsuario} OR idResponsavel = {$idUsuario} OR suplente = {$idUsuario}) AND publicado = 1 AND dataEnvio IS NOT NULL";
    $query = mysqli_query($con, $sql);
    echo "<table class='table table-condensed'>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr class='list_menu'>\n\t\t\t\t\t\t\t<td>Cod. Evento</td>\n\t\t\t\t\t\t\t<td>Nome do evento</td>\n\t\t\t\t\t\t\t<td>Tipo de evento</td>\n  \t\t\t\t\t\t\t<td>Data/Período</td>\n\t\t\t\t\t\t\t<td width='10%'>Cod. Pedido Contratação</td>\n\t\t\t\t\t\t\t<td width='10%'></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>";
    while ($campo = mysqli_fetch_array($query)) {
        $protocolo = recuperaDados("ig_protocolo", $campo['idEvento'], "ig_evento_idEvento");
        $chamado = recuperaAlteracoesEvento($campo['idEvento']);
        echo "<tr>";
        echo "<td class='list_description'><a href='?perfil=detalhe&evento=" . $campo['idEvento'] . "' target='_blank'>" . $campo['idEvento'] . "</a>\n\t\t\t</td>";
        echo "<td class='list_description'>" . $campo['nomeEvento'] . " [";
        if ($chamado['numero'] == '0') {
            echo "0";
        } else {
            echo "<a href='?perfil=chamado&p=evento&id=" . $campo['idEvento'] . "' target='_blank'>" . $chamado['numero'] . "</a>";
        }
        echo "]</td>";
        echo "<td class='list_description'>" . retornaTipo($campo['ig_tipo_evento_idTipoEvento']) . "</td>";
        echo "<td class='list_description'>" . retornaPeriodo($campo['idEvento']) . "</td>";
        echo "<td class='list_description'>" . substr(retornaPedidos($campo['idEvento']), 7) . "</td>";
        echo "</tr>";
    }
    echo "\t\t\t\t\t</tbody>\n\t\t\t\t</table>";
}