コード例 #1
0
ファイル: contact.php プロジェクト: Magmasters/liemie-site
<?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
ファイル: suppr_enfant.php プロジェクト: KMenant/PPE3
<?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
ファイル: connect.php プロジェクト: Magmasters/liemie-site
<?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
ファイル: index.php プロジェクト: Magmasters/liemie-site
<?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();
}
コード例 #9
0
<?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
ファイル: modif_enfant.php プロジェクト: KMenant/PPE3
<?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
ファイル: liste_enfant.php プロジェクト: KMenant/PPE3
<?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
ファイル: ajout_enfant.php プロジェクト: KMenant/PPE3
<?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
ファイル: ajout_famille.php プロジェクト: KMenant/PPE3
<?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();
コード例 #20
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #21
0
ファイル: modif_famille.php プロジェクト: KMenant/PPE3
<?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
ファイル: temoignage.php プロジェクト: Magmasters/liemie-site
<?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();