Example #1
0
<?php

include_once dirname(__FILE__) . '/../../inc/config.inc.php';
include_once dirname(__FILE__) . '/../../inc/mensagens.inc.php';
include_once dirname(__FILE__) . '/../../model/Atividade.class.php';
include_once dirname(__FILE__) . '/../../model/Inscricao.class.php';
include_once dirname(__FILE__) . '/../../model/Participante.class.php';
include_once dirname(__FILE__) . '/../../model/TipoParticipante.class.php';
session_start();
if (!isset($_SESSION['usuario'])) {
    header("location: /" . $config['PATH'] . "/admin/form_login.php?syserror=AUTENTICACAO_NECESSARIA");
    exit;
}
$participantes = array();
if (isset($_GET['tipo_id'])) {
    $participantes = Participante::find_by_tipo($_GET['tipo_id']);
} else {
    $participantes = Participante::getAll();
}
$tipos = TipoParticipante::all();
?>

<!DOCTYPE HTML>
<html lang="pt-br">
	<head>
		<?php 
include_once dirname(__FILE__) . '/../../inc/head.inc.php';
?>
		<script type="text/javascript">
			function filtrar_participantes() {
				var tipo_id = $("#tipo_id").val();