<?php include_once dirname(__FILE__) . '/../../inc/config.inc.php'; include_once dirname(__FILE__) . '/../../model/Apresentacao.class.php'; session_start(); if (!isset($_SESSION['usuario'])) { header("location:" . $config['PATH'] . "/admin/form_login.php?syserror=AUTENTICACAO_NECESSARIA"); exit; } $apresentacao = Apresentacao::find($_GET['id']); ?> <!DOCTYPE HTML> <html lang="pt-br"> <head> <?php include_once dirname(__FILE__) . '/../../inc/head.inc.php'; ?> </head> <body> <div class="container rounded-corners"> <div class="header"> <?php $active = 'admin'; ?> <?php include_once dirname(__FILE__) . '/../../inc/header.inc.php'; ?> </div> <div class="content"> <h3>Apresentação</h3>
$tempo = $_POST['tempo']; $material = $_POST['material']; if ($titulo == "") { header("location:" . $config['PATH'] . "/showdetalentos/index.php?error=titulo_required"); exit; } if ($tipo == "") { header("location:" . $config['PATH'] . "/showdetalentos/index.php?error=tipo_required"); exit; } if ($participantes == "") { header("location:" . $config['PATH'] . "/showdetalentos/index.php?error=participantes_required"); exit; } if ($tempo == "") { header("location:" . $config['PATH'] . "/showdetalentos/index.php?error=tempo_required"); exit; } $apresentacao = new Apresentacao(); $apresentacao->titulo = $titulo; $apresentacao->tipo = $tipo; $apresentacao->participantes = $participantes; $apresentacao->tempo = $tempo; $apresentacao->material = $material; if ($apresentacao->save()) { header("location:" . $config['PATH'] . "/showdetalentos/confirmacao_inscricao.php"); exit; } else { header("location:" . $config['PATH'] . "/showdetalentos/index.php"); exit; }
<?php include_once dirname(__FILE__) . '/../../inc/config.inc.php'; include_once dirname(__FILE__) . '/../../model/Apresentacao.class.php'; include_once dirname(__FILE__) . '/../../model/Inscricao.class.php'; session_start(); if (!isset($_SESSION['usuario'])) { header("location:" . $config['PATH'] . "/admin/form_login.php?syserror=AUTENTICACAO_NECESSARIA"); exit; } $apresentacoes = Apresentacao::getAll(); ?> <!DOCTYPE HTML> <html lang="pt-br"> <head> <?php include_once dirname(__FILE__) . '/../../inc/head.inc.php'; ?> </head> <body> <div class="container rounded-corners"> <div class="header"> <?php $active = 'admin'; ?> <?php include_once dirname(__FILE__) . '/../../inc/header.inc.php'; ?> </div> <div class="content">