Example #1
0
/* Object */
include "../php/MySql.php";
include "../php/LocalDefinition.php";
include "../php/Const.php";
include "../php/BaseClass.php";
include "../php/User.php";
include "../php/Session.php";
include "../php/Referee.php";
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_GENERAL, Constants::ADMIN_MENU_2_REFEREE);
include "large_menu.php";
/*include("small_menu_start.php");*/
$mySql = new MySql();
if (isset($_SESSION[Session::C_SESSION_USER])) {
    $session = new Session($_SESSION[Session::C_SESSION_USER], $_SESSION[Session::C_SESSION_PASS], $mySql);
}
if (!isset($session) or !$session->IsConnected()) {
    header('Location: index.php');
    exit;
}
?>
            <!-- MAIN SECTION -->
            <section class="main-section">
                <div class="small-12 columns">
                    <div class="row">
                        <h4>arbitre - <?php 
$referee = new Referee();
if (isset($_POST["id"])) {
    $referee->initProperty($_POST["id"], $_POST["firstName"], $_POST["lastName"]);
    $referee->PageMode = $_POST["pageMode"];
    $referee->validate($mySql);
    if (!$referee->getHasError()) {