示例#1
0
    <link rel="stylesheet" href="../css/datatable.min.css" />
    <link rel="stylesheet" href="../foundation-icons/foundation-icons.css" />
    <script src="../js/vendor/modernizr.js"></script>
    <script src="../js/jquery-1.11.3.min.js"></script>
</head>
<body>
    <?php 
/* 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">
示例#2
0
    <link rel="stylesheet" href="../css/datatable.min.css" />
    <link rel="stylesheet" href="../foundation-icons/foundation-icons.css" />
    <script src="../js/vendor/modernizr.js"></script>
    <script src="../js/jquery-1.11.3.min.js"></script>
</head>
<body>
    <?php 
/* 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/Marker.php";
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_GENERAL, Constants::ADMIN_MENU_2_MARKER);
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">
示例#3
0
								<li class="<?php 
echo LocalDef::isSecondActive(Constants::ADMIN_MENU_1_CONTENT, Constants::ADMIN_MENU_2_HOME);
?>
"><a href="content_edit.php?page=<?php 
echo Constants::PAGE_CONTENT_HOME;
?>
">Accueil</a></li>
                                <li class="<?php 
echo LocalDef::isSecondActive(Constants::ADMIN_MENU_1_CONTENT, Constants::ADMIN_MENU_2_STAFF);
?>
"><a href="content_edit.php?page=<?php 
echo Constants::PAGE_CONTENT_STAFF;
?>
">Association</a></li>
								<li class="<?php 
echo LocalDef::isSecondActive(Constants::ADMIN_MENU_1_CONTENT, Constants::ADMIN_MENU_2_JOIN);
?>
"><a href="content_edit.php?page=<?php 
echo Constants::PAGE_CONTENT_JOIN;
?>
">Nous joindre</a></li>
							</ul>
                        </li>
                    </ul>

                    <!-- Left Nav Section -->
                    <ul class="left">
                        <li>
                            <a href="#"></a>
                        </li>
                    </ul>
示例#4
0
    <?php 
/* 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/Season.php";
include "../php/Category.php";
include "../php/AwayTeam.php";
include "../php/HomeTeam.php";
include "../php/Referee.php";
include "../php/Marker.php";
include "../php/Schedule.php";
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_SCHEDULE, Constants::ADMIN_MENU_2_GAME);
$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;
}
include "large_menu.php";
/*include("small_menu_start.php");*/
?>
            <!-- MAIN SECTION -->
            <section class="main-section">
                <div class="small-12 columns">
                    <div class="row">
示例#5
0
    <link rel="stylesheet" href="../foundation-icons/foundation-icons.css" />
    <script src="../js/vendor/modernizr.js"></script>
    <script src="../js/jquery-1.11.3.min.js"></script>
</head>
<body>
    <?php 
/* 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/Category.php";
include "../php/HomeTeam.php";
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_TEAM, Constants::ADMIN_MENU_2_HOME_TEAM);
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">
示例#6
0
$content = new Content();
$content->PageMode = Constants::PAGE_MODE_EDIT;
$currentPage = Constants::ADMIN_MENU_2_HOME;
if (isset($_GET["page"])) {
    $content->initDB($_GET["page"], $mySql);
    if ($_GET["page"] == Constants::PAGE_CONTENT_JOIN) {
        $currentPage = Constants::ADMIN_MENU_2_JOIN;
    } else {
        if ($_GET["page"] == Constants::PAGE_CONTENT_STAFF) {
            $currentPage = Constants::ADMIN_MENU_2_STAFF;
        }
    }
} else {
    $content->initDB(Constants::PAGE_CONTENT_HOME, $mySql);
}
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_CONTENT, $currentPage);
include "large_menu.php";
/*include("small_menu_start.php");*/
?>
            <!-- MAIN SECTION -->
            <section class="main-section">
                <div class="small-12 columns">
                    <div class="row">
                        <h4>contenu - <?php 
if (isset($_POST["id"])) {
    $content->initProperty($_POST["id"], $currentPage, $_POST["code"]);
    $content->validate($mySql);
    if (!$content->getHasError()) {
        if ($content->PageMode == Constants::PAGE_MODE_EDIT) {
            $content->update($mySql);
        }
示例#7
0
 public static function setLevelMenu($firstLevel, $secondLevel)
 {
     self::$FirstLevelMenu = $firstLevel;
     self::$SecondLevelMenu = $secondLevel;
 }
示例#8
0
    <link rel="stylesheet" href="../foundation-icons/foundation-icons.css" />
    <script src="../js/vendor/modernizr.js"></script>
    <script src="../js/jquery-1.11.3.min.js"></script>
    <script src="../js/datatable.min.js"></script>
</head>
<body>
    <?php 
/* 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/Season.php";
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_GENERAL, Constants::ADMIN_MENU_2_SEASON);
$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;
}
include "large_menu.php";
/*include("small_menu_start.php");*/
if (isset($_GET["delete"])) {
    $mySql->execute("DELETE FROM season WHERE Year = " . $_GET["delete"]);
}
?>
            <!-- MAIN SECTION -->
示例#9
0
    <link rel="stylesheet" href="../foundation-icons/foundation-icons.css" />
    <script src="../js/vendor/modernizr.js"></script>
    <script src="../js/jquery-1.11.3.min.js"></script>
</head>
<body>
    <?php 
/* 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/HomeTeam.php";
include "../php/Coach.php";
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_GENERAL, Constants::ADMIN_MENU_2_COACH);
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">
示例#10
0
    <link rel="stylesheet" href="../css/datatable.min.css" />
    <link rel="stylesheet" href="../foundation-icons/foundation-icons.css" />
    <script src="../js/vendor/modernizr.js"></script>
    <script src="../js/jquery-1.11.3.min.js"></script>
    <script src="../js/datatable.min.js"></script>
</head>
<body>
    <?php 
/* Object */
include "../php/MySql.php";
include "../php/LocalDefinition.php";
include "../php/Const.php";
include "../php/User.php";
include "../php/BaseClass.php";
include "../php/Session.php";
LocalDef::setLevelMenu(Constants::ADMIN_MENU_1_HOME, Constants::NONE);
include "large_menu.php";
$mySql = new MySql();
if (isset($_GET["delog"]) && isset($_SESSION[Session::C_SESSION_USER])) {
    $session = new Session("", "", $mySql);
    $session->closeSession();
}
if (isset($_POST["username"])) {
    $session = new Session($_POST["username"], $_POST["password"], $mySql);
} else {
    if (isset($_SESSION[Session::C_SESSION_USER])) {
        $session = new Session($_SESSION[Session::C_SESSION_USER], $_SESSION[Session::C_SESSION_PASS], $mySql);
    } else {
        $session = new Session("", "", $mySql);
    }
}