예제 #1
0
<?php

error_reporting(0);
ini_set('display_errors', 0);
include_once __DIR__ . "/../../model/concurso.php";
include_once __DIR__ . "/../../controller/pw.php";
include_once __DIR__ . "/../../controller/pwctrl_competition.php";
$continue = false;
try {
    $concurso = CompetitionController::getConcurso();
} catch (Exception $e) {
    $continue = true;
}
if (!$continue) {
    header("Location: ../../view/403.php");
    exit;
}
if (!isset($_SESSION)) {
    session_start();
}
$_SESSION["installation"] = true;
?>


<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<title>Installation</title>
예제 #2
0
<?php

include_once __DIR__ . "/../resources/code/models.php";
include_once __DIR__ . "/../resources/code/lang_coverage.php";
include_once __DIR__ . "/../controller/pwctrl_competition.php";
if (!isset($_SESSION)) {
    session_start();
}
$ganadoresPopulares = CompetitionController::getConcurso()->getGanadoresPopulares();
$ganadoresProfesionales = CompetitionController::getConcurso()->getGanadoresProfesionales();
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<title><?php 
echo $l["view_admin_management"];
?>
</title>
	
	<!-- Main CSS file -->
	<link rel="stylesheet" href="../css/bootstrap.min.css" />
	<link rel="stylesheet" href="../css/owl.carousel.css" />
	<link rel="stylesheet" href="../css/font-awesome.css" />
	<link rel="stylesheet" href="../css/style.css" />
	<link rel="stylesheet" href="../css/responsive.css" />
	<link rel="stylesheet" href="../css/main.css" />
	<link rel="stylesheet" href="../css/alertify.default.css" />
예제 #3
0
<?php

include_once __DIR__ . "/../resources/code/models.php";
include_once __DIR__ . "/../resources/code/lang_coverage.php";
include_once __DIR__ . "/../controller/pwctrl_competition.php";
if (!isset($_SESSION)) {
    session_start();
}
if (!isset($_POST["search-data"])) {
    header("Location: ../view/403.php");
    exit;
}
$results = CompetitionController::search(strtolower($_POST["search-data"]));
if ($results["establishments"] == NULL) {
    $numOfEstablishments = 0;
} else {
    $numOfEstablishments = count($results["establishments"]);
}
if ($results["pinchos"] == NULL) {
    $numOfPinchos = 0;
} else {
    $numOfPinchos = count($results["pinchos"]);
}
$totalSearchElements = $numOfPinchos + $numOfEstablishments;
?>


<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
    CompetitionController::store();
});
$routes->get('/competition/new', function () {
    CompetitionController::create();
});
$routes->get('/competition/:id', function ($id) {
    CompetitionController::show($id);
});
$routes->get('/competition/:id/edit', function ($id) {
    CompetitionController::edit($id);
});
$routes->post('/competition/:id/edit', function ($id) {
    CompetitionController::update($id);
});
$routes->post('/competition/:id/destroy', function ($id) {
    CompetitionController::destroy($id);
});
$routes->get('/competition/:id/participants', function ($id) {
    ParticipantController::competition_participants($id);
});
$routes->get('/competitor/:id/participations', function ($id) {
    ParticipantController::competitor_participations($id);
});
$routes->post('/participant', function () {
    ParticipantController::store();
});
$routes->get('/competition/:id/participants/new', function ($id) {
    ParticipantController::create($id);
});
$routes->get('/participant/:id/edit', function ($id) {
    ParticipantController::edit($id);