예제 #1
0
<?php

session_start();
include_once 'class/autoload.php';
$controleur = new controleur();
$site = new page_base('L\'équipe');
if (isset($_SESSION['email']) && isset($_SESSION['type'])) {
    if ($_SESSION['type'] == 'infirmier') {
        $site = new page_base_securisee_infirmier('L\'équipe');
    }
    if ($_SESSION['type'] == 'admin') {
        $site = new page_base_securisee_admin('L\'équipe');
    }
    if ($_SESSION['type'] == 'patient') {
        $site = new page_base_securisee_patient('L\'équipe');
    }
} else {
    $site->js = 'jquery.validate.min';
    $site->js = 'messages_fr';
    $site->js = 'jquery.tooltipster.min';
    $site->css = 'tooltipster';
    $site->modal_login = $controleur->retourne_formulaire_login();
}
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_contact();
$site->affiche();
예제 #2
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_admin('Gestion des articles (suppression)');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->js = 'ckeditor/ckeditor';
$site->css = 'tooltipster';
$site->css = 'modal';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->affiche_liste_articles('Supp');
if (isset($_POST["checkbox_nom"])) {
    foreach ($_POST["checkbox_nom"] as $index => $value) {
        $site->left_sidebar = $controleur->retourne_formulaire_article('Supp', $value);
    }
}
$site->affiche();
예제 #3
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_admin('Ajout famille');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_liste_enfant();
$site->affiche();
예제 #4
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_famille('Ajout famille');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_liste_familles();
$site->affiche();
예제 #5
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_admin('Ajout famille');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_formulaire_enfant('Supp');
$site->affiche();
예제 #6
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Mot de passe oublié');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->css = 'tooltipster';
$site->css = 'modal';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
//Si l'utilisateur est déjà connecté à un compte on le renvoit sur la page d'accueil
if (isset($_SESSION['email']) && isset($_SESSION['type'])) {
    if (isset($_SESSION['type'])) {
        echo '<script>document.location.href="index.php"; </script>';
    }
} else {
    /*
     * Si l'utilisateur n'est pas connecté on crée
     * le formulaire de connexion modal
     */
    $site->modal_login = $controleur->retourne_formulaire_login();
}
if (isset($_GET['jeton'])) {
    $jeton = $_GET['jeton'];
    $jeton = str_replace(' ', '+', $jeton);
    $jeton_decrypt = Cryptage::mc_decrypt($jeton);
    $parametres = array();
    //echo 'JETON - '.$jeton.'<br>';
    //echo 'JETON_DECRYPT - '.$jeton_decrypt;
예제 #7
0
<?php

/*
 * Cette page n'est plus utilisée, connexion effectuée via une fenêtre modale
 */
include_once 'class/autoload.php';
$site = new page_base('Connect');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->css = 'tooltipster';
$site->css = 'modal';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_formulaire_login();
$site->affiche();
예제 #8
0
<?php

session_start();
?>

<?php 
include_once 'class/autoload.php';
$controleur = new controleur();
$site = new page_base('Accueil');
if (isset($_SESSION['email']) && isset($_SESSION['type'])) {
    if ($_SESSION['type'] == 'infirmier') {
        $site = new page_base_securisee_infirmier('Accueil');
    }
    if ($_SESSION['type'] == 'admin') {
        $site = new page_base_securisee_admin('Accueil');
    }
    if ($_SESSION['type'] == 'patient') {
        $site = new page_base_securisee_patient('Accueil');
    }
} else {
    $site->js = 'jquery.validate.min';
    $site->js = 'messages_fr';
    $site->js = 'jquery.tooltipster.min';
    $site->css = 'tooltipster';
    $site->modal_login = $controleur->retourne_formulaire_login();
}
if ($_SESSION['type'] == 'infirmier') {
    $site->right_sidebar = $controleur->affiche_infos_infirmier();
} else {
    $site->right_sidebar = $site->rempli_right_sidebar();
}
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_personnel('Ajout famille');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
if (isset($_SESSION['id']) && isset($_SESSION['type'])) {
    if ($_SESSION['type'] == 'famille') {
        echo 'accés refuser';
    }
    if ($_SESSION['type'] == 'personnel') {
        $site = new page_base_securisee_personnel('Accueil');
    }
    if ($_SESSION['type'] == 'admin') {
        $site = new page_base_securisee_admin('Accueil');
        echo 'accés refuser';
    }
}
$controleur = new controleur();
$site->left_sidebar = $controleur->retourne_formulaire_liste_commentaire();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->affiche();
예제 #10
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Modif enfant');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_formulaire_enfant('Modif', $_GET["id_enfant"]);
$site->affiche();
예제 #11
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_admin('Gestion des articles (modification)');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->js = 'ckeditor/ckeditor';
$site->css = 'tooltipster';
$site->css = 'modal';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
if (isset($_POST['type_article_a_modif'])) {
    $type_articles = $_POST['type_article_a_modif'];
    $site->left_sidebar = $controleur->affiche_liste_articles('Modif', $type_articles);
} else {
    if (isset($_POST["checkbox_nom"])) {
        foreach ($_POST["checkbox_nom"] as $index => $value) {
            $site->left_sidebar = $controleur->retourne_formulaire_article('Modif', $value);
        }
    } else {
        $site->left_sidebar = $controleur->affiche_selecteur_type_article();
    }
}
$site->affiche();
예제 #12
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Réglement');
if (isset($_SESSION['id']) && isset($_SESSION['type'])) {
    if ($_SESSION['type'] == 'famille') {
        $site = new page_base_securisee_famille('Accueil');
    }
    if ($_SESSION['type'] == 'admin') {
        $site = new page_base_securisee_admin('Accueil');
    }
    if ($_SESSION['type'] == 'personnel') {
        $site = new page_base_securisee_personnel('Accueil');
    }
}
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_reglement();
$site->affiche();
예제 #13
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Liste enfants');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
if ($_SESSION['type'] == 'famille') {
    $site->left_sidebar = $controleur->affiche_liste_enfant_famille();
} else {
    if ($_SESSION['type'] == 'admin') {
        $site->left_sidebar = $controleur->affiche_liste_enfant();
    }
}
$site->affiche();
예제 #14
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Ajout enfant');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_formulaire_enfant('Ajout', '');
$site->affiche();
예제 #15
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_admin('Gestion des articles (modification)');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->js = 'ckeditor/ckeditor';
$site->css = 'tooltipster';
$site->css = 'modal';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
if (isset($_POST['type_article_a_modif'])) {
    $type_articles = $_POST['type_article_a_modif'];
    $site->left_sidebar = $controleur->affiche_liste_articles('Modif ordre', $type_articles);
} else {
    if (isset($_POST["send"])) {
        foreach ($_POST["num_affichage"] as $index => $value) {
        }
    } else {
        $site->left_sidebar = $controleur->affiche_selecteur_type_article();
    }
}
$site->affiche();
예제 #16
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_admin('Ajout infirmier');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->css = 'tooltipster';
$site->css = 'modal';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_formulaire_infirmier('Ajout');
$site->affiche();
예제 #17
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Ajout famille');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_formulaire_famille('Ajout');
$site->affiche();
예제 #18
0
파일: index.php 프로젝트: nigro/PPE3
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Accueil');
if (isset($_SESSION['id']) && isset($_SESSION['type'])) {
    if ($_SESSION['type'] == 'famille') {
        $site = new page_base_securisee_famille('Accueil');
    }
    if ($_SESSION['type'] == 'admin') {
        $site = new page_base_securisee_admin('Accueil');
    }
}
$site->js = 'jssor.core';
$site->js = 'jssor.utils';
$site->js = 'jssor.slider';
$site->js = 'jssor.pbdc';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_carroussel();
$site->left_sidebar = $controleur->retourne_article_accueil();
$site->affiche();
예제 #19
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base_securisee_admin('Gestion des infirmiers (modification)');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->js = 'select2.min';
$site->css = 'tooltipster';
$site->css = 'modal';
$site->css = 'select2.min';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->affiche_liste_infirmiers('Modif');
if (isset($_POST["idinfirmier"])) {
    $idinfirmier = $_POST["idinfirmier"];
    $site->left_sidebar = $controleur->retourne_formulaire_infirmier('Modif', $idinfirmier);
}
$site->affiche();
 public function __construct()
 {
     parent::__construct();
 }
예제 #21
0
<?php

session_start();
include_once 'class/autoload.php';
$site = new page_base('Modif famille');
$site->js = 'jquery.validate.min';
$site->js = 'messages_fr';
$site->js = 'jquery.tooltipster.min';
$site->style = 'tooltipster';
$site->style = 'perso';
$controleur = new controleur();
$site->right_sidebar = $site->rempli_right_sidebar();
if ($_SESSION['type'] == "admin") {
    $site->left_sidebar = $controleur->affiche_liste_famille('Modif');
    if (isset($_POST["nom_checkbox"])) {
        foreach ($_POST["nom_checkbox"] as $index => $value) {
            $site->left_sidebar = $controleur->retourne_formulaire_famille('Modif', $value);
            $_SESSION['id_eleve'] = $value;
            break;
        }
    }
} else {
    if ($_SESSION['type'] == "famille") {
        $site->left_sidebar = $controleur->retourne_formulaire_famille('Modif', $_SESSION['id']);
    }
}
$site->affiche();
예제 #22
0
<?php

session_start();
include_once 'class/autoload.php';
$controleur = new controleur();
$site = new page_base('Témoignages');
if (isset($_SESSION['email']) && isset($_SESSION['type'])) {
    if ($_SESSION['type'] == 'infirmier') {
        $site = new page_base_securisee_infirmier('Témoignages');
    }
    if ($_SESSION['type'] == 'admin') {
        $site = new page_base_securisee_admin('Témoignages');
    }
    if ($_SESSION['type'] == 'patient') {
        $site = new page_base_securisee_patient('Témoignages');
    }
} else {
    $site->js = 'jquery.validate.min';
    $site->js = 'messages_fr';
    $site->js = 'jquery.tooltipster.min';
    $site->css = 'tooltipster';
    $site->modal_login = $controleur->retourne_formulaire_login();
}
$site->right_sidebar = $site->rempli_right_sidebar();
$site->left_sidebar = $controleur->retourne_temoignage();
$site->affiche();