Subversion Repositories Applications.framework

Rev

Rev 99 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 99 Rev 105
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
// declare(encoding='UTF-8');
2
/**
3
/**
3
* @category PHP
4
* @category PHP
4
* @package Framework
5
* @package Framework
5
* @author Aurelien PERONNET <aurelien@tela-botanica.org>
6
* @author Aurelien PERONNET <aurelien@tela-botanica.org>
6
* @copyright Tela-Botanica 2009
7
* @copyright Tela-Botanica 2009
7
* @link /doc/framework/
8
* @link /doc/framework/
8
* Ceci est un exemple d'application qui permet d'illustrer  le fonctionnement du framework, il montre comment
9
* Ceci est un exemple d'application qui permet d'illustrer  le fonctionnement du framework, il montre comment
9
* une application peut être dans papyrus, ou bien utilisée en stand alone.
10
* une application peut être dans papyrus, ou bien utilisée en stand alone.
10
*/
11
*/
Line 11... Line 12...
11
 
12
 
12
// La fonction autolad doit être appelée avant tout autre chose dans l'application.
13
// La fonction autolad doit être appelée avant tout autre chose dans l'application.
13
// Sinon, rien ne sera chargé.
14
// Sinon, rien ne sera chargé.
14
require_once dirname(__FILE__).'/../framework/autoload.inc.php';
15
require_once dirname(__FILE__).'/../framework/autoload.inc.php';
15
Application::setChemin(__FILE__);
16
Application::setChemin(__FILE__);
16
Application::setInfo(Config::get('info'));
17
Application::setInfo(Config::get('info'));
17
/**
18
/**
18
 * Fonction d'affichage de Papyrus, pour le corps de page
19
 * Fonction d'affichage de Papyrus, pour le corps de page
19
 */
20
 */
20
function afficherContenuCorps() {
21
function afficherContenuCorps() {
21
	// Si l'utilisateur est authentifié
22
	// Si l'utilisateur est authentifié
22
	if (Config::get('identification')) {
23
	if (Config::get('identification')) {
23
		// on renvoie la vue principale de l'application
24
		// on renvoie la vue principale de l'application
24
		$methode = '' ;
25
		$methode = '' ;
25
		if (isset($_GET['m'])) {
26
		if (isset($_GET['m'])) {
Line 78... Line 79...
78
function afficherContenuPied() {
79
function afficherContenuPied() {
79
	$controlleur = new AdminAdministrateur();
80
	$controlleur = new AdminAdministrateur();
80
	return $controlleur->adminPied();
81
	return $controlleur->adminPied();
81
}
82
}
Line 82... Line -...
82
 
-
 
83
if(!defined('PAP_VERSION')) {
83
 
84
	echo afficherContenuTete();
84
function afficherContenuNavigation() {
85
	echo afficherContenuCorps();
-
 
86
	echo afficherContenuPied();
85
    return '';
87
}
86
}
88
 /*
87
 
89
  * afficherContenuNavigation()
88
function afficherContenuMenu() {
90
  * afficherContenuMenu()
89
    return '';
-
 
90
}
91
  */
91
 
92
?>
92
?>