Ejemplo n.º 1
0
<?php

require_once "conf/top.php";
include_once "models/class.Cours.php";
include_once "models/class.Doc.php";
include_once "models/class.Year.php";
include_once "models/class.Promo.php";
include_once "models/class.DocShared.php";
$cours = new Cours();
$doc = new Doc();
$docS = new DocShared();
$promo = new Promo();
$semestre = 1;
if ($semestre == 1) {
    if ($level == 1 || $level == 2) {
        $cours_l = $cours->CoursListProfS1($userid);
        $doc_l = $docS->allyeardocProfS1($userid);
    } else {
        $promo_id = $promo->user_promo_id($userid);
        $cours_l = $cours->CoursListPS1($promo_id[0]['promo_id']);
        $doc_l = $docS->allyeardocS1($promo_id[0]['promo_id']);
    }
} else {
    if ($level == 1 || $level == 2) {
        $cours_l = $cours->CoursListProfS2($userid);
        $doc_l = $docS->allyeardocProfS2($userid);
    } else {
        $promo_id = $promo->user_promo_id($userid);
        $cours_l = $cours->CoursListPS2($promo_id[0]['promo_id']);
        $doc_l = $docS->allyeardocS2($promo_id[0]['promo_id']);
    }