2017-09-12 07:49:38 +00:00
|
|
|
<?php require_once '../autoloader.php';
|
|
|
|
|
2017-09-12 16:16:02 +00:00
|
|
|
use \service\Config;
|
2017-09-12 15:22:18 +00:00
|
|
|
|
2017-09-12 16:16:02 +00:00
|
|
|
|
|
|
|
/* [1] Fetch configuration
|
|
|
|
=========================================================*/
|
|
|
|
/* (1) Get config */
|
|
|
|
try{
|
|
|
|
$config = Config::load("http://sciences.univ-pau.fr/edt/_ressource.js", "http://sciences.univ-pau.fr/edt/_periode.js");
|
|
|
|
|
|
|
|
/* (2) Error management */
|
|
|
|
}catch(\Exception $e){
|
|
|
|
die("An error occured. Please contact the developers.\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (3) Get the diplome list */
|
|
|
|
$diplomes = $config->getDiplomes();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [2] Display the links
|
|
|
|
=========================================================*/
|
|
|
|
foreach($diplomes as $id=>$name){
|
|
|
|
echo "<a href='/ics/$id'>$name</a><br>";
|
|
|
|
|
|
|
|
}
|